forked from 2600hz/kazoo-popup
-
Notifications
You must be signed in to change notification settings - Fork 0
/
caller.cpp
63 lines (52 loc) · 1.18 KB
/
caller.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
#include "caller.h"
Caller::Caller()
{
}
Caller::Caller(const QString &callerIdName,
const QString &callerIdNumber,
const QString &callerDialed,
const QString &callerUrl) :
m_callerIdName(callerIdName),
m_callerIdNumber(callerIdNumber),
m_callerDialed(callerDialed),
m_callerUrl(callerUrl)
{
}
void Caller::setCallerIdName(const QString &callerIdName)
{
m_callerIdName = callerIdName;
}
QString Caller::callerIdName() const
{
return m_callerIdName;
}
void Caller::setCallerIdNumber(const QString &callerIdNumber)
{
m_callerIdNumber = callerIdNumber;
}
QString Caller::callerIdNumber() const
{
return m_callerIdNumber;
}
void Caller::setCallerDialed(const QString &callerInfo)
{
m_callerDialed = callerInfo;
}
QString Caller::callerDialed() const
{
return m_callerDialed;
}
void Caller::setCallerUrl(const QString &callerUrl)
{
m_callerUrl = callerUrl;
}
QString Caller::callerUrl() const
{
return m_callerUrl;
}
QString Caller::callerInfo() const
{
return "Caller name: " + m_callerIdName
+ "\nCaller number: " + m_callerIdNumber
+ "\nCaller dialed: " + m_callerDialed;
}