~ci-train-bot/history-service/history-service-ubuntu-zesty-2629

« back to all changes in this revision

Viewing changes to plugins/sqlite/sqlitehistoryplugin.h

  • Committer: Bileto Bot
  • Author(s): Gustavo Pichorim Boiko
  • Date: 2017-03-23 01:28:52 UTC
  • mfrom: (230.2.35 staging)
  • Revision ID: ci-train-bot@canonical.com-20170323012852-vzmjcare13zofbna
- Adapt to support VOIP accounts.
- Improve the notifications of participants changing
- Only start saving information events about contacts joining and leaving after the self contact is in the local list of participants.
- Improve Roles management performance by caching the retrieved data.
- Mark entire conversations as read.
- Allow pass multiple fields on sort clause.
- Reduce the dbus traffic when marking messages and threads as read.
- Use a QLockFile to ensure there will be only one instance of the daemon per user. As we now delay the registration on dbus, sometimes we ended up having two instances of the daeon running (because of dbus activation). This change makes sure that won't happen.
- Do not load the participants from threads automatically. If the client really needs it, it can use the newly added API to fetch the participants.
- Make it possible to debug sqlite commands.

Approved by: system-apps-ci-bot

Show diffs side-by-side

added added

removed removed

Lines of Context:
59
59
                                      History::EventType type,
60
60
                                      const QVariantMap &properties,
61
61
                                      History::MatchFlags matchFlags = History::MatchCaseSensitive);
62
 
 
 
62
    QString threadIdForProperties(const QString &accountId,
 
63
                                  History::EventType type,
 
64
                                  const QVariantMap &properties,
 
65
                                  History::MatchFlags matchFlags = History::MatchCaseSensitive) override;
 
66
    QList<QVariantMap> participantsForThreads(const QList<QVariantMap> &threadIds) override;
63
67
    QList<QVariantMap> eventsForThread(const QVariantMap &thread);
64
68
 
65
69
    QVariantMap getSingleThread(History::EventType type, const QString &accountId, const QString &threadId, const QVariantMap &properties = QVariantMap());
73
77
    bool updateRoomParticipantsRoles(const QString &accountId, const QString &threadId, History::EventType type, const QVariantMap &participantsRoles);
74
78
    bool updateRoomInfo(const QString &accountId, const QString &threadId, History::EventType type, const QVariantMap &properties, const QStringList &invalidated = QStringList());
75
79
    bool removeThread(const QVariantMap &thread);
 
80
    QVariantMap markThreadAsRead(const QVariantMap &thread);
76
81
 
77
82
    History::EventWriteResult writeTextEvent(const QVariantMap &event);
78
83
    bool removeTextEvent(const QVariantMap &event);