X-Git-Url: https://git.quassel-irc.org/?a=blobdiff_plain;f=src%2Fcore%2Fsqlitestorage.h;h=a710b630eafd4088b14bf02e3473dc011b83a739;hb=eb9c5e7ed502b6f01311ecb5d3066a3ac31ec24d;hp=4c133e6c0b248acccc973efa8cfe850361f28c17;hpb=bd1a18355495899b5ce3003599a67e1ea7ca01cc;p=quassel.git diff --git a/src/core/sqlitestorage.h b/src/core/sqlitestorage.h index 4c133e6c..a710b630 100644 --- a/src/core/sqlitestorage.h +++ b/src/core/sqlitestorage.h @@ -56,6 +56,13 @@ public slots: virtual bool updateNetwork(UserId user, const NetworkInfo &info); virtual bool removeNetwork(UserId user, const NetworkId &networkId); virtual QList networks(UserId user); + virtual QList connectedNetworks(UserId user); + virtual void setNetworkConnected(UserId user, const NetworkId &networkId, bool isConnected); + + /* persistent channels */ + virtual QHash persistentChannels(UserId user, const NetworkId &networkId); + virtual void setChannelPersistent(UserId user, const NetworkId &networkId, const QString &channel, bool isJoined); + virtual void setPersistentChannelKey(UserId user, const NetworkId &networkId, const QString &channel, const QString &key); /* Buffer handling */ virtual BufferInfo getBufferInfo(UserId user, const NetworkId &networkId, BufferInfo::Type type, const QString &buffer = ""); @@ -77,6 +84,8 @@ protected: inline virtual QString driverName() { return "QSQLITE"; } inline virtual QString databaseName() { return backlogFile(); } virtual int installedSchemaVersion(); + + virtual bool init(const QVariantMap &settings = QVariantMap()); // only needed for migration private: static QString backlogFile();