~phablet-team/telephony-service/trunk

« back to all changes in this revision

Viewing changes to libtelephonyservice/participant.h

  • Committer: Tiago Salem Herrmann
  • Date: 2016-12-06 16:45:01 UTC
  • mfrom: (1212.1.6 fix-hardcoded-paths)
  • mto: This revision was merged to the branch mainline in revision 1222.
  • Revision ID: tiago.herrmann@canonical.com-20161206164501-rw041bjz35wq9t17
merge parent branch

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 * Copyright (C) 2013-2016 Canonical, Ltd.
 
3
 *
 
4
 * Authors:
 
5
 *  Gustavo Pichorim Boiko <gustavo.boiko@canonical.com>
 
6
 *  Tiago Salem Herrmann <tiago.herrmann@canonical.com>
 
7
 *
 
8
 * This file is part of telephony-service.
 
9
 *
 
10
 * telephony-service is free software; you can redistribute it and/or modify
 
11
 * it under the terms of the GNU General Public License as published by
 
12
 * the Free Software Foundation; version 3.
 
13
 *
 
14
 * telephony-service is distributed in the hope that it will be useful,
 
15
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 
16
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
17
 * GNU General Public License for more details.
 
18
 *
 
19
 * You should have received a copy of the GNU General Public License
 
20
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
21
 */
 
22
 
 
23
#ifndef PARTICIPANT_H
 
24
#define PARTICIPANT_H
 
25
 
 
26
#include "contactwatcher.h"
 
27
 
 
28
class Participant : public ContactWatcher
 
29
{
 
30
    Q_OBJECT
 
31
    Q_PROPERTY(uint roles READ roles NOTIFY rolesChanged)
 
32
public:
 
33
    explicit Participant(const QString &identifier, uint roles, uint handle, QObject *parent = 0);
 
34
    explicit Participant(QObject *parent = 0);
 
35
    explicit Participant(const Participant &other);
 
36
    ~Participant();
 
37
 
 
38
    void setRoles(uint roles);
 
39
    uint roles() const;
 
40
    uint handle() const;
 
41
 
 
42
Q_SIGNAL
 
43
    void rolesChanged();
 
44
 
 
45
private:
 
46
    uint mRoles;
 
47
    uint mHandle;
 
48
};
 
49
 
 
50
#endif // PARTICIPANT_H