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

« back to all changes in this revision

Viewing changes to src/manager.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:
66
66
                               const QVariantMap &properties,
67
67
                               History::MatchFlags matchFlags = History::MatchCaseSensitive,
68
68
                               bool create = false);
69
 
 
 
69
    void requestThreadParticipants(const History::Threads &threads);
70
70
    Thread getSingleThread(EventType type, const QString &accountId, const QString &threadId, const QVariantMap &properties = QVariantMap());
71
71
 
72
72
    bool writeEvents(const History::Events &events);
73
73
    bool removeThreads(const Threads &threads);
74
74
    bool removeEvents(const Events &events);
75
75
 
 
76
    void markThreadsAsRead(const History::Threads &thread);
 
77
 
76
78
    bool isServiceRunning() const;
77
79
 
78
80
Q_SIGNALS:
79
81
    void threadsAdded(const History::Threads &threads);
80
82
    void threadsModified(const History::Threads &threads);
81
83
    void threadsRemoved(const History::Threads &threads);
 
84
    void threadParticipantsChanged(const History::Thread &thread, const History::Participants &added, const History::Participants &removed, const History::Participants &modified);
82
85
 
83
86
    void eventsAdded(const History::Events &events);
84
87
    void eventsModified(const History::Events &events);