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

« back to all changes in this revision

Viewing changes to src/thread.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:
1
1
/*
2
 
 * Copyright (C) 2013 Canonical, Ltd.
 
2
 * Copyright (C) 2013-2015 Canonical, Ltd.
3
3
 *
4
4
 * Authors:
5
5
 *  Gustavo Pichorim Boiko <gustavo.boiko@canonical.com>
29
29
#include <QVariantMap>
30
30
#include "types.h"
31
31
#include "event.h"
 
32
#include "participant.h"
32
33
 
33
34
namespace History
34
35
{
49
50
    Thread(const QString &accountId,
50
51
           const QString &threadId,
51
52
           EventType type,
52
 
           const QStringList &participants,
 
53
           const Participants &participants,
53
54
           const Event &lastEvent = Event(),
54
55
           int count = 0,
55
56
           int unreadCount = 0,
61
62
    QString accountId() const;
62
63
    QString threadId() const;
63
64
    EventType type() const;
64
 
    QStringList participants() const;
 
65
    Participants participants() const;
65
66
    Event lastEvent() const;
66
67
    int count() const;
67
68
    int unreadCount() const;