~ci-train-bot/history-service/history-service-ubuntu-yakkety-landing-052

« back to all changes in this revision

Viewing changes to Ubuntu/History/historymodel.h

Request contact information for all known participants on history-daemon initialization, and use this cached information on the models.
Approved by: Tiago Salem Herrmann, PS Jenkins bot

Show diffs side-by-side

added added

removed removed

Lines of Context:
112
112
    bool matchContacts() const;
113
113
    void setMatchContacts(bool value);
114
114
 
 
115
    Q_INVOKABLE QVariantMap threadForParticipants(const QString &accountId,
 
116
                                                  int eventType,
 
117
                                                  const QStringList &participants,
 
118
                                                  int matchFlags = (int)History::MatchCaseSensitive,
 
119
                                                  bool create = false);
115
120
    Q_INVOKABLE QString threadIdForParticipants(const QString &accountId,
116
121
                                                int eventType,
117
122
                                                const QStringList &participants,
140
145
    void triggerQueryUpdate();
141
146
    virtual void updateQuery() = 0;
142
147
    void onContactInfoChanged(const QString &accountId, const QString &identifier, const QVariantMap &contactInfo);
 
148
    void watchContactInfo(const QString &accountId, const QString &identifier, const QVariantMap &currentInfo);
143
149
 
144
150
protected:
145
151
    virtual void timerEvent(QTimerEvent *event);