]> Some of my projects - localmylist.git/commitdiff
Add specific notify* methods.
authorAPTX <marek321@gmail.com>
Tue, 12 Jun 2012 18:12:12 +0000 (20:12 +0200)
committerAPTX <marek321@gmail.com>
Tue, 12 Jun 2012 18:12:12 +0000 (20:12 +0200)
localmylist/database.cpp
localmylist/database.h

index 69dea0cb7cc54edc8c460f1cc631bf3c60d7df28..c393bae0ac5c16b89feff4d2765f3d218f526e1f 100644 (file)
@@ -1064,6 +1064,21 @@ bool Database::notify(const QString &notification)
        return exec("NOTIFY " + notification);
 }
 
+bool Database::notifyNewPendingRequest()
+{
+       return notify("new_pending_request");
+}
+
+bool Database::notifyNewPendingMyListUpdate()
+{
+       return notify("new_pending_mylist_update");
+}
+
+bool Database::notifyRenameDataChanged()
+{
+       return notify("rename_data_changed");
+}
+
 void Database::handleNotification(const QString &notification)
 {
        qDebug() << "Recieved notification" << notification;
index fb8db87f8abacd1e0f315435fea32d541b4e0f6a..c2da1e96b1970fe9b9cb9558eac3352122efd618 100644 (file)
@@ -265,6 +265,9 @@ public:
        bool exec(const QString &sql);
 
        bool notify(const QString &notification);
+       bool notifyNewPendingRequest();
+       bool notifyNewPendingMyListUpdate();
+       bool notifyRenameDataChanged();
 
 public slots:
        bool connect();