~ci-train-bot/history-service/history-service-ubuntu-zesty-2629

« back to all changes in this revision

Viewing changes to src/participant.h

  • Committer: Bileto Bot
  • Author(s): Gustavo Pichorim Boiko
  • Date: 2016-11-30 15:13:58 UTC
  • mfrom: (230.2.23 staging)
  • Revision ID: ci-train-bot@canonical.com-20161130151358-jy3mqj0ir0b6ncxe
Improve group chat support.

Approved by: Roberto Mier Escandón , Tiago Salem Herrmann

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*
2
 
 * Copyright (C) 2015 Canonical, Ltd.
 
2
 * Copyright (C) 2015-2016 Canonical, Ltd.
3
3
 *
4
4
 * Authors:
5
5
 *  Gustavo Pichorim Boiko <gustavo.boiko@canonical.com>
44
44
                const QString &contactId = QString::null,
45
45
                const QString &alias = QString::null,
46
46
                const QString &avatar = QString::null,
 
47
                uint state = 0,
 
48
                uint roles = 0,
47
49
                const QVariantMap &detailProperties = QVariantMap());
48
50
    Participant(const Participant &other);
49
51
    Participant& operator=(const Participant &other);
54
56
    QString contactId() const;
55
57
    QString alias() const;
56
58
    QString avatar() const;
 
59
    uint state() const;
 
60
    uint roles() const;
57
61
    QVariantMap detailProperties() const;
58
62
 
59
63
    bool isNull() const;
75
79
    QStringList identifiers() const;
76
80
    static Participants fromVariant(const QVariant &variant);
77
81
    static Participants fromVariantList(const QVariantList &list);
 
82
    static Participants fromStringList(const QStringList &list);
78
83
    QVariantList toVariantList() const;
79
 
 
 
84
    History::Participants filterByState(uint state) const;
80
85
};
81
86
 
82
87
const QDBusArgument &operator>>(const QDBusArgument &argument, Participants &participants);