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

« back to all changes in this revision

Viewing changes to plugins/sqlite/sqlitehistoryplugin.h

Store threads' timestamps in UTC in the cache, and convert only when returning to the client, so that it has the most up-to-date local time.
Approved by: PS Jenkins bot

Show diffs side-by-side

added added

removed removed

Lines of Context:
95
95
    void updateDisplayedThread(const QString &displayedThreadKey);
96
96
    void addThreadsToCache(const QList<QVariantMap> &threads);
97
97
    void removeThreadFromCache(const QVariantMap &thread);
 
98
    QVariantMap cachedThreadProperties(const History::Thread &thread) const;
98
99
    QMap<QString, History::Threads> mConversationsCache;
99
100
    QMap<QString, QString> mConversationsCacheKeys;
100
101
    bool mInitialised;