summaryrefslogtreecommitdiff
path: root/sapchannelinfo.cc
blob: 12ba5b535a53722731d7ea74ecb9395f159fc7d0 (plain)
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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
#include "sapchannelinfo.h"
#include <QSharedData>

struct SAPChannelInfoData : public QSharedData {
	unsigned short id;
	SAPChannelInfo::PayloadType payload;
	SAPChannelInfo::QoSType qosType;
	SAPChannelInfo::QoSPriority qosPriority;
	SAPChannelInfo::QoSDataRate qosDataRate;
};

SAPChannelInfo::SAPChannelInfo() : data(new SAPChannelInfoData)
{
}

SAPChannelInfo::SAPChannelInfo(const SAPChannelInfo &rhs) : data(rhs.data)
{
}

SAPChannelInfo &SAPChannelInfo::operator=(const SAPChannelInfo &rhs)
{
	if (this != &rhs)
		data.operator=(rhs.data);
	return *this;
}

SAPChannelInfo::~SAPChannelInfo()
{

}

unsigned short SAPChannelInfo::channelId() const
{
	return data->id;
}

void SAPChannelInfo::setChannelId(unsigned short id)
{
	data->id = id;
}

SAPChannelInfo::PayloadType SAPChannelInfo::payloadType() const
{
	return data->payload;
}

void SAPChannelInfo::setPayloadType(PayloadType type)
{
	data->payload = type;
}

SAPChannelInfo::QoSType SAPChannelInfo::qosType() const
{
	return data->qosType;
}

void SAPChannelInfo::setQoSType(QoSType type)
{
	data->qosType = type;
}

SAPChannelInfo::QoSPriority SAPChannelInfo::qosPriority() const
{
	return data->qosPriority;
}

void SAPChannelInfo::setQoSPriority(QoSPriority priority)
{
	data->qosPriority = priority;
}

SAPChannelInfo::QoSDataRate SAPChannelInfo::qosDataRate() const
{
	return data->qosDataRate;
}

void SAPChannelInfo::setQoSDataRate(QoSDataRate rate)
{
	data->qosDataRate = rate;
}