taskswitcherapp/tsserviceplugin/src/tsactivation.cpp
changeset 36 cdae8c6c3876
parent 35 f9ce957a272c
--- a/taskswitcherapp/tsserviceplugin/src/tsactivation.cpp	Fri Mar 19 09:27:44 2010 +0200
+++ b/taskswitcherapp/tsserviceplugin/src/tsactivation.cpp	Fri Apr 16 14:54:01 2010 +0300
@@ -18,9 +18,21 @@
 #include "tsactivation.h"
 
 #include "tslongpresswatcher.h"
+#include "tsexternalactivationwatcher.h"
 
+/*!
+    \class TsActivation
+    \ingroup group_tsserviceplugin
+    \brief Activation service.
+    
+    Service responsible for observing all events that might show TS. When any of them
+    occurs it is emiting activation signal.
+*/
 TsActivation::TsActivation(QObject *parent) : TsActivationInterface(parent)
 {
-    TsLongPressWatcher *watcher = new TsLongPressWatcher(this);
-    connect(watcher, SIGNAL(applicationKeyLongPress()), this, SIGNAL(activated()));
+    TsLongPressWatcher *longPressWatcher = new TsLongPressWatcher(this);
+    connect(longPressWatcher, SIGNAL(applicationKeyLongPress()), this, SIGNAL(activated()));
+    
+    TsExternalActivationWatcher *externalActivationWatcher = new TsExternalActivationWatcher(this);
+    connect(externalActivationWatcher, SIGNAL(activationRequested()), this, SIGNAL(activated()));    
 }