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

« back to all changes in this revision

Viewing changes to src/manager.cpp

Initial cache implementation for grouped conversations.
Approved by: PS Jenkins bot, Gustavo Pichorim Boiko

Show diffs side-by-side

added added

removed removed

Lines of Context:
84
84
 
85
85
ThreadViewPtr Manager::queryThreads(EventType type,
86
86
                                    const Sort &sort,
87
 
                                    const Filter &filter)
 
87
                                    const Filter &filter,
 
88
                                    const QVariantMap &properties)
88
89
{
89
 
    return ThreadViewPtr(new ThreadView(type, sort, filter));
 
90
    return ThreadViewPtr(new ThreadView(type, sort, filter, properties));
90
91
}
91
92
 
92
93
EventViewPtr Manager::queryEvents(EventType type,
115
116
    return d->dbus->threadForParticipants(accountId, type, participants, matchFlags, create);
116
117
}
117
118
 
118
 
Thread Manager::getSingleThread(EventType type, const QString &accountId, const QString &threadId)
 
119
Thread Manager::getSingleThread(EventType type, const QString &accountId, const QString &threadId, const QVariantMap &properties)
119
120
{
120
121
    Q_D(Manager);
121
122
 
122
 
    Thread thread = d->dbus->getSingleThread(type, accountId, threadId);
 
123
    Thread thread = d->dbus->getSingleThread(type, accountId, threadId, properties);
123
124
    return thread;
124
125
}
125
126