// define SystemSuspendPrivate SystemSuspendPrivate::SystemSuspendPrivate(QObject *parent) : SystemSuspend(parent), handlersValid(false), waitingOn(0) { SuspendService *s = new SuspendService(this); QObject::connect(s, SIGNAL(doSuspend()), this, SLOT(suspendSystem())); QtopiaInputEvents::addKeyboardFilter(this); #ifdef Q_WS_QWS QtopiaServerApplication::instance()->installQWSEventFilter(this); #endif }
bool KJob::suspend() { Q_D(KJob); if ( !d->suspended ) { if ( doSuspend() ) { d->suspended = true; emit suspended(this); return true; } } return false; }
/*! Enter the suspend state. This slot corresponds to the QCop service message \c {Suspend::suspend()}. */ void SuspendService::suspend() { emit doSuspend(); }