summaryrefslogtreecommitdiff
path: root/sapchannelinfo.cc
diff options
context:
space:
mode:
authorJavier <dev.git@javispedro.com>2016-01-01 22:05:42 +0100
committerJavier <dev.git@javispedro.com>2016-01-01 22:05:42 +0100
commita45977185a485624095bff1a15024e9199eee676 (patch)
tree6cc57d085bdd01e493477c870dbe0548137998e1 /sapchannelinfo.cc
parenta24034bdfea259cdc09c74217be75d4f9de0dce5 (diff)
downloadsapd-a45977185a485624095bff1a15024e9199eee676.tar.gz
sapd-a45977185a485624095bff1a15024e9199eee676.zip
reorganize source files into SAP and agents
Diffstat (limited to 'sapchannelinfo.cc')
-rw-r--r--sapchannelinfo.cc89
1 files changed, 0 insertions, 89 deletions
diff --git a/sapchannelinfo.cc b/sapchannelinfo.cc
deleted file mode 100644
index 530341a..0000000
--- a/sapchannelinfo.cc
+++ /dev/null
@@ -1,89 +0,0 @@
-#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;
-}
-
-QDebug operator<<(QDebug debug, const SAPChannelInfo &info)
-{
- QDebugStateSaver saver(debug);
- Q_UNUSED(saver);
- debug.nospace() << "SAPChannelInfo(" << info.channelId() << ", qosType=" << info.qosType() << ", dataRate=" << info.qosDataRate() << ", priority=" << info.qosPriority()
- << ", payload=" << info.payloadType() << ")";
- return debug;
-}