taskswitcherapp/tsserviceplugin/src/tsactivation.cpp
changeset 36 cdae8c6c3876
parent 35 f9ce957a272c
equal deleted inserted replaced
35:f9ce957a272c 36:cdae8c6c3876
    16 */
    16 */
    17 
    17 
    18 #include "tsactivation.h"
    18 #include "tsactivation.h"
    19 
    19 
    20 #include "tslongpresswatcher.h"
    20 #include "tslongpresswatcher.h"
       
    21 #include "tsexternalactivationwatcher.h"
    21 
    22 
       
    23 /*!
       
    24     \class TsActivation
       
    25     \ingroup group_tsserviceplugin
       
    26     \brief Activation service.
       
    27     
       
    28     Service responsible for observing all events that might show TS. When any of them
       
    29     occurs it is emiting activation signal.
       
    30 */
    22 TsActivation::TsActivation(QObject *parent) : TsActivationInterface(parent)
    31 TsActivation::TsActivation(QObject *parent) : TsActivationInterface(parent)
    23 {
    32 {
    24     TsLongPressWatcher *watcher = new TsLongPressWatcher(this);
    33     TsLongPressWatcher *longPressWatcher = new TsLongPressWatcher(this);
    25     connect(watcher, SIGNAL(applicationKeyLongPress()), this, SIGNAL(activated()));
    34     connect(longPressWatcher, SIGNAL(applicationKeyLongPress()), this, SIGNAL(activated()));
       
    35     
       
    36     TsExternalActivationWatcher *externalActivationWatcher = new TsExternalActivationWatcher(this);
       
    37     connect(externalActivationWatcher, SIGNAL(activationRequested()), this, SIGNAL(activated()));    
    26 }
    38 }