diff options
| author | Xavier Del Campo Romero <xavi.dcr@tutanota.com> | 2023-08-10 00:07:47 +0200 |
|---|---|---|
| committer | Xavier Del Campo Romero <xavi.dcr@tutanota.com> | 2023-08-10 00:08:24 +0200 |
| commit | 37c205999f77fc175d70bf0d286ebe5c77b540f1 (patch) | |
| tree | ec20f4365fd6b938cb234997f7989c629aae347b /jiddb.h | |
| parent | 05b2584fa4d773f5a88ed3ce98f5dd8304e11c34 (diff) | |
Make some errors non-fatal
Diffstat (limited to 'jiddb.h')
| -rw-r--r-- | jiddb.h | 12 |
1 files changed, 7 insertions, 5 deletions
@@ -36,17 +36,19 @@ public: public Q_SLOTS: QList<Conversation> getConversations() const; - QList<Message> getMessages(const QString &jid, int tail = -1) const; - void storeMessage(const Message &msg) const; - void addToRoster(const QString &jid); - void addToRoster(const QStringList &roster); + QList<Message> getMessages(const QString &jid, + int tail = -1) const; + int storeMessage(const Message &msg) const; + int addToRoster(const QString &jid); + int addToRoster(const QStringList &roster); Q_SIGNALS: void addedToRoster(QString jid); private: QSqlDatabase db; - void ensureContactDb(const QString &jid) const; + int ensureContactDb(const QString &jid) const; + QStringList tables() const; }; #endif |
