aboutsummaryrefslogtreecommitdiff
path: root/jiddb.h
diff options
context:
space:
mode:
authorXavier Del Campo Romero <xavi.dcr@tutanota.com>2023-08-10 00:07:47 +0200
committerXavier Del Campo Romero <xavi.dcr@tutanota.com>2023-08-10 00:08:24 +0200
commit37c205999f77fc175d70bf0d286ebe5c77b540f1 (patch)
treeec20f4365fd6b938cb234997f7989c629aae347b /jiddb.h
parent05b2584fa4d773f5a88ed3ce98f5dd8304e11c34 (diff)
Make some errors non-fatal
Diffstat (limited to 'jiddb.h')
-rw-r--r--jiddb.h12
1 files changed, 7 insertions, 5 deletions
diff --git a/jiddb.h b/jiddb.h
index aba351a..86e0028 100644
--- a/jiddb.h
+++ b/jiddb.h
@@ -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