1 #include "qnstgraphicsmapping.h"
6 setnstType(Qnst::Mapping);
10 QnstGraphicsMapping::~QnstGraphicsMapping()
15 QString QnstGraphicsMapping::getComponent()
const
20 void QnstGraphicsMapping::setComponent(QString component)
22 this->component = component;
25 QString QnstGraphicsMapping::getComponentUid()
const
30 void QnstGraphicsMapping::setComponentUid(QString componentUid)
32 this->componentUid = componentUid;
35 QString QnstGraphicsMapping::getSwitchPortUid()
const
40 void QnstGraphicsMapping::setSwitchPortUid(QString switchportUid)
42 this->switchportUid = switchportUid;
45 QString QnstGraphicsMapping::getInterface()
const
50 void QnstGraphicsMapping::setInterface(QString interface)
52 this->
interface = interface;
55 QString QnstGraphicsMapping::getInterfaceUid()
const
60 void QnstGraphicsMapping::setInterfaceUid(QString interfaceUid)
62 this->interfaceUid = interfaceUid;
65 void QnstGraphicsMapping::setProperties(
const QMap<QString, QString> &props)
67 QnstGraphicsReference::setProperties(props);
69 setComponent(props[
"component"]);
71 if (props[
"componentUid"] !=
"")
72 setComponentUid(props[
"componentUid"]);
76 setInterface(props[
"interface"]);
78 if (props[
"interfaceUid"] !=
"")
79 setInterfaceUid(props[
"interfaceUid"]);
84 void QnstGraphicsMapping::getProperties(QMap<QString, QString> &properties)
86 QnstGraphicsReference::getProperties(properties);
88 properties[
"component"] = getComponent();
89 properties[
"componentUid"] = getComponentUid();
91 properties[
"interface"] = getInterface();
92 properties[
"interfaceUid"] = getInterfaceUid();