NCL Composer
0.1
|
00001 #include "qnstlink.h" 00002 00003 QnstLink::QnstLink() 00004 { 00005 setnstType(Qnst::Link); 00006 } 00007 00008 QnstLink::~QnstLink() 00009 { 00010 00011 } 00012 00013 QString QnstLink::getAggregatorUID() const 00014 { 00015 return aggregatorUID; 00016 } 00017 00018 void QnstLink::setAggregatorUID(QString aggregatorUID) 00019 { 00020 this->aggregatorUID = aggregatorUID; 00021 } 00022 00023 QString QnstLink::getxConnector() const 00024 { 00025 return xconnector; 00026 } 00027 00028 void QnstLink::setxConnector(QString xconnector) 00029 { 00030 this->xconnector = xconnector; 00031 } 00032 00033 QString QnstLink::getxConnectorUID() const 00034 { 00035 return xconnectorUID; 00036 } 00037 00038 void QnstLink::setxConnectorUID(QString xconnectorUID) 00039 { 00040 this->xconnectorUID = xconnectorUID; 00041 } 00042 00043 QMap<QString, QnstBind*> QnstLink::getActions() const 00044 { 00045 return actions; 00046 } 00047 00048 void QnstLink::addAction(QnstBind* action) 00049 { 00050 if (action != NULL){ 00051 actions.insert(action->getnstUid(), action); 00052 } 00053 } 00054 00055 void QnstLink::removeAction(QnstBind* action) 00056 { 00057 if (action != NULL){ 00058 actions.remove(action->getnstUid()); 00059 } 00060 } 00061 00062 QMap<QString, QnstBind*> QnstLink::getConditions() const 00063 { 00064 return conditions; 00065 } 00066 00067 void QnstLink::addCondition(QnstBind* condition) 00068 { 00069 if (condition != NULL){ 00070 conditions.insert(condition->getnstUid(), condition); 00071 } 00072 } 00073 00074 void QnstLink::removeCondition(QnstBind* condition) 00075 { 00076 if (condition != NULL){ 00077 conditions.remove(condition->getnstUid()); 00078 } 00079 }