~phablet-team/telephony-service/qml-start-chat

« back to all changes in this revision

Viewing changes to libtelephonyservice/participant.cpp

Updated roles management using Roles interface client and events received from messaging framework.

Show diffs side-by-side

added added

removed removed

Lines of Context:
22
22
 
23
23
#include "participant.h"
24
24
 
25
 
Participant::Participant(const QString &identifier, uint roles, QObject *parent)
26
 
: ContactWatcher(parent), mRoles(roles)
 
25
Participant::Participant(const QString &identifier, uint roles, uint handle, QObject *parent)
 
26
: ContactWatcher(parent), mRoles(roles), mHandle(handle)
27
27
{
28
28
    classBegin();
29
29
    setIdentifier(identifier);
47
47
{
48
48
}
49
49
 
 
50
void Participant::setRoles(uint roles)
 
51
{
 
52
    mRoles = roles;
 
53
}
 
54
 
50
55
uint Participant::roles() const
51
56
{
52
57
    return mRoles;
53
58
}
 
59
 
 
60
uint Participant::handle() const
 
61
{
 
62
    return mHandle;
 
63
}