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

« back to all changes in this revision

Viewing changes to src/participant_p.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
/*
 
2
 * Copyright (C) 2015 Canonical, Ltd.
 
3
 *
 
4
 * Authors:
 
5
 *  Gustavo Pichorim Boiko <gustavo.boiko@canonical.com>
 
6
 *
 
7
 * This file is part of history-service.
 
8
 *
 
9
 * history-service is free software; you can redistribute it and/or modify
 
10
 * it under the terms of the GNU General Public License as published by
 
11
 * the Free Software Foundation; version 3.
 
12
 *
 
13
 * history-service is distributed in the hope that it will be useful,
 
14
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 
15
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
16
 * GNU General Public License for more details.
 
17
 *
 
18
 * You should have received a copy of the GNU General Public License
 
19
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
20
 */
 
21
 
 
22
#ifndef HISTORY_PARTICIPANT_P_H
 
23
#define HISTORY_PARTICIPANT_P_H
 
24
 
 
25
#include <QString>
 
26
#include <QVariantMap>
 
27
 
 
28
namespace History
 
29
{
 
30
 
 
31
class Participant;
 
32
 
 
33
class ParticipantPrivate
 
34
{
 
35
public:
 
36
    explicit ParticipantPrivate();
 
37
    ParticipantPrivate(const QString &theAccountId,
 
38
                       const QString &theIdentifier,
 
39
                       const QString &theContactId = QString::null,
 
40
                       const QString &theAlias = QString::null,
 
41
                       const QString &theAvatar = QString::null,
 
42
                       const QVariantMap &theDetailProperties = QVariantMap());
 
43
    virtual ~ParticipantPrivate();
 
44
 
 
45
    QString accountId;
 
46
    QString identifier;
 
47
    QString contactId;
 
48
    QString alias;
 
49
    QString avatar;
 
50
    QVariantMap detailProperties;
 
51
};
 
52
 
 
53
}
 
54
 
 
55
#endif // HISTORY_PARTICIPANT_P_H