diff options
Diffstat (limited to 'daemon')
| -rw-r--r-- | daemon/watchconnector.cpp | 10 | ||||
| -rw-r--r-- | daemon/watchconnector.h | 4 |
2 files changed, 14 insertions, 0 deletions
diff --git a/daemon/watchconnector.cpp b/daemon/watchconnector.cpp index 63e476f..7e70b50 100644 --- a/daemon/watchconnector.cpp +++ b/daemon/watchconnector.cpp @@ -266,6 +266,16 @@ void WatchConnector::sendSMSNotification(QString sender, QString data) sendNotification(leadSMS, sender, data, ""); } +void WatchConnector::sendFaceBookNotification(QString sender, QString data) +{ + sendNotification(leadFACEBOOK, sender, data, ""); +} + +void WatchConnector::sendTwitterNotification(QString sender, QString data) +{ + sendNotification(leadTWITTER, sender, data, ""); +} + void WatchConnector::sendEmailNotification(QString sender, QString data, QString subject) { sendNotification(leadEMAIL, sender, data, subject); diff --git a/daemon/watchconnector.h b/daemon/watchconnector.h index 936deff..d09a8e3 100644 --- a/daemon/watchconnector.h +++ b/daemon/watchconnector.h @@ -102,6 +102,8 @@ public: enum { leadEMAIL = 0, leadSMS = 1, + leadFACEBOOK = 2, + leadTWITTER = 3, leadNOW_PLAYING_DATA = 16 }; enum { @@ -148,6 +150,8 @@ public slots: void sendNotification(uint lead, QString sender, QString data, QString subject); void sendSMSNotification(QString sender, QString data); void sendEmailNotification(QString sender, QString data, QString subject); + void sendFaceBookNotification(QString sender, QString data); + void sendTwitterNotification(QString sender, QString data); void sendMusicNowPlaying(QString track, QString album, QString artist); void sendPhoneVersion(); |
