summaryrefslogtreecommitdiff
path: root/notificationconn.h
diff options
context:
space:
mode:
authorJavier <dev.git@javispedro.com>2014-11-23 19:53:30 +0100
committerJavier <dev.git@javispedro.com>2014-11-23 19:53:30 +0100
commit9949c02b0f814ad94a27864a5c39689f090299b6 (patch)
tree90e2893d5aafc14a020754eaf72a2df99e373efb /notificationconn.h
parent5244f7909e04b23fbd5706dc6bcadafba21f7600 (diff)
downloadsapd-9949c02b0f814ad94a27864a5c39689f090299b6.tar.gz
sapd-9949c02b0f814ad94a27864a5c39689f090299b6.zip
port to sailfish with qt 5.2
Diffstat (limited to 'notificationconn.h')
-rw-r--r--notificationconn.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/notificationconn.h b/notificationconn.h
index 9be3e20..da3e3c3 100644
--- a/notificationconn.h
+++ b/notificationconn.h
@@ -54,18 +54,20 @@ protected:
};
QByteArray packNotification(const Notification &n);
-
-private:
-
+ void sendNotification(const Notification &n);
private slots:
void handleConnected();
void handleMessageReceived();
+ void handleIncomingNotification(const QString &sender, const QIcon &icon, const QString &summary, int count, const QString &body, const QDateTime &dateTime);
void performTest();
private:
SAPConnection *_conn;
SAPSocket *_socket;
+ QHash<QString, short> _knownSenders;
+ int _lastSeqNumber;
+ int _lastNotifId;
};
#endif // NOTIFICATIONCONN_H