]> git.ipfire.org Git - thirdparty/freeswitch.git/blame - fscomm/channel.h
[Build-System] Update libks and signalwire-c requirements to 2.0
[thirdparty/freeswitch.git] / fscomm / channel.h
CommitLineData
1b919f2c
JM
1#ifndef CHANNEL_H
2#define CHANNEL_H
3
4#include <QtCore>
5
6class Channel
7{
8public:
9 Channel() {}
10 Channel(QString uuid);
11 QString getUuid() { return _uuid; }
12 void setCidName(QString cidName) { _cidName = cidName; }
13 QString getCidName() { return _cidName; }
14 void setCidNumber(QString cidNumber) { _cidNumber = cidNumber; }
15 QString getCidNumber() { return _cidNumber; }
16 void setDestinatinonNumber(QString destinationNumber) { _destinationNumber = destinationNumber; }
17 QString getDestinationNumber() { return _destinationNumber; }
18
3ed45189
JM
19 int getPaCallId() { return _paCallId; }
20 void setPaCallId(int paCallId) { _paCallId = paCallId;}
21
22 void setProgressEpoch(qulonglong time) { _progressEpoch = time/1000000; }
23 qulonglong getProgressEpoch() { return _progressEpoch; }
24 void setProgressMediaEpoch(qulonglong time) { _progressMediaEpoch = time/1000000; }
25 qulonglong getProgressMediaEpoch() { return _progressMediaEpoch; }
d3bb72db
JM
26 void setCreatedEpoch(qulonglong time) { _createdEpoch = time/1000000; }
27 qulonglong getCreatedEpoch() { return _createdEpoch; }
1b919f2c
JM
28
29private:
30 QString _uuid;
31 QString _cidName;
32 QString _cidNumber;
33 QString _destinationNumber;
3ed45189
JM
34 int _paCallId;
35 qulonglong _progressEpoch;
36 qulonglong _progressMediaEpoch;
d3bb72db 37 qulonglong _createdEpoch;
1b919f2c
JM
38};
39
40Q_DECLARE_METATYPE(Channel)
41
42#endif // CHANNEL_H