From: APTX Date: Tue, 12 Jun 2012 18:12:12 +0000 (+0200) Subject: Add specific notify* methods. X-Git-Url: https://gitweb.aptx.org/?a=commitdiff_plain;h=abc53a2378a83314efc3fd773f7a7c5997c8dc5b;p=localmylist.git Add specific notify* methods. --- diff --git a/localmylist/database.cpp b/localmylist/database.cpp index 69dea0c..c393bae 100644 --- a/localmylist/database.cpp +++ b/localmylist/database.cpp @@ -1064,6 +1064,21 @@ bool Database::notify(const QString ¬ification) 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 ¬ification) { qDebug() << "Recieved notification" << notification; diff --git a/localmylist/database.h b/localmylist/database.h index fb8db87..c2da1e9 100644 --- a/localmylist/database.h +++ b/localmylist/database.h @@ -265,6 +265,9 @@ public: bool exec(const QString &sql); bool notify(const QString ¬ification); + bool notifyNewPendingRequest(); + bool notifyNewPendingMyListUpdate(); + bool notifyRenameDataChanged(); public slots: bool connect();