summaryrefslogtreecommitdiff
path: root/ckitcallnotification/ckitcallprovider.h
diff options
context:
space:
mode:
authorJavier S. Pedro <maemo@javispedro.com>2011-09-24 00:31:46 +0200
committerJavier S. Pedro <maemo@javispedro.com>2011-09-24 00:31:46 +0200
commitcba26597f1c09764d37be0d13863ec5d5c340da0 (patch)
tree5559b1274c228673e2bd519135de8de596c7e91b /ckitcallnotification/ckitcallprovider.h
parentb414dbdb28d839c9755b1832f27f61d1ec9e7863 (diff)
downloadsowatch-cba26597f1c09764d37be0d13863ec5d5c340da0.tar.gz
sowatch-cba26597f1c09764d37be0d13863ec5d5c340da0.zip
new partially working incoming call plugin
Diffstat (limited to 'ckitcallnotification/ckitcallprovider.h')
-rw-r--r--ckitcallnotification/ckitcallprovider.h34
1 files changed, 34 insertions, 0 deletions
diff --git a/ckitcallnotification/ckitcallprovider.h b/ckitcallnotification/ckitcallprovider.h
new file mode 100644
index 0000000..49d83a3
--- /dev/null
+++ b/ckitcallnotification/ckitcallprovider.h
@@ -0,0 +1,34 @@
+#ifndef CKITCALLPROVIDER_H
+#define CKITCALLPROVIDER_H
+
+#include <sowatch.h>
+
+class ContextProperty;
+
+namespace sowatch
+{
+
+class CKitCallProvider : public NotificationProvider
+{
+ Q_OBJECT
+public:
+ explicit CKitCallProvider(QObject *parent = 0);
+ ~CKitCallProvider();
+
+ int getCount(Notification::Type type);
+
+signals:
+ void incomingCall(const QString &displayName);
+ void endIncomingCall();
+
+protected:
+ bool _inCall;
+ ContextProperty *_activeCall;
+
+protected slots:
+ void activeCallChanged();
+};
+
+}
+
+#endif // CKITCALLPROVIDER_H