| 774 | } |
| 775 | |
| 776 | Monitor::TreeNode* |
| 777 | Monitor::MonitorDataStorage::createQosNode( |
| 778 | const std::string& label, |
| 779 | TreeNode* node, |
| 780 | bool& created |
| 781 | ) |
| 782 | { |
| 783 | TreeNode* qosNode = 0; |
| 784 | QString qosLabel( QObject::tr( "Qos")); |
| 785 | int qosRow = node->indexOf( 0, qosLabel); |
| 786 | if( qosRow == -1) { |
| 787 | // New entry, add a reference to the actual transport node. |
| 788 | node->insertChildren( 0, 1, 2); // Always make Qos the first child. |
| 789 | qosNode = (*node)[0]; |
| 790 | qosNode->setData( 0, qosLabel); |
| 791 | qosNode->setData( 1, label.c_str()); |
| 792 | created = true; |
| 793 | |
| 794 | } else { |
| 795 | qosNode = (*node)[ qosRow]; |
| 796 | } |
| 797 | |
| 798 | if( !qosNode) { |
| 799 | ACE_ERROR((LM_ERROR, |
| 800 | ACE_TEXT("(%P|%t) ERROR: MonitorDataStorage::createQosNode() - ") |
| 801 | ACE_TEXT("unable to find place for Qos in GUI.\n") |
| 802 | )); |
| 803 | } |
| 804 | return qosNode; |
| 805 | } |
| 806 | |
| 807 | void |
| 808 | Monitor::MonitorDataStorage::manageParticipantQos( |
no test coverage detected