Changeset 77909 in vbox
- Timestamp:
- Mar 27, 2019 11:09:44 AM (6 years ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src/manager/chooser
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/manager/chooser/UIChooserAbstractModel.cpp
r77892 r77909 121 121 } 122 122 123 void UIChooserAbstractModel::sltMachineStateChanged(const QUuid &u Id, const KMachineState)123 void UIChooserAbstractModel::sltMachineStateChanged(const QUuid &uMachineId, const KMachineState) 124 124 { 125 125 /* Update machine-nodes with passed id: */ 126 invisibleRoot()->updateAllNodes(u Id);127 } 128 129 void UIChooserAbstractModel::sltMachineDataChanged(const QUuid &u Id)126 invisibleRoot()->updateAllNodes(uMachineId); 127 } 128 129 void UIChooserAbstractModel::sltMachineDataChanged(const QUuid &uMachineId) 130 130 { 131 131 /* Update machine-nodes with passed id: */ 132 invisibleRoot()->updateAllNodes(u Id);133 } 134 135 void UIChooserAbstractModel::sltMachineRegistered(const QUuid &u Id, const bool fRegistered)132 invisibleRoot()->updateAllNodes(uMachineId); 133 } 134 135 void UIChooserAbstractModel::sltMachineRegistered(const QUuid &uMachineId, const bool fRegistered) 136 136 { 137 137 /* Existing VM unregistered? */ … … 139 139 { 140 140 /* Remove machine-items with passed id: */ 141 invisibleRoot()->removeAllNodes(u Id);141 invisibleRoot()->removeAllNodes(uMachineId); 142 142 /* Wipe out empty groups: */ 143 143 wipeOutEmptyGroups(); … … 147 147 { 148 148 /* Should we show this VM? */ 149 if (gEDataManager->showMachineInVirtualBoxManagerChooser(u Id))149 if (gEDataManager->showMachineInVirtualBoxManagerChooser(uMachineId)) 150 150 { 151 151 /* Add new machine-item: */ 152 CMachine comMachine = vboxGlobal().virtualBox().FindMachine(uId.toString());152 const CMachine comMachine = vboxGlobal().virtualBox().FindMachine(uMachineId.toString()); 153 153 addMachineIntoTheTree(comMachine, true /* make it visible */); 154 154 } … … 156 156 } 157 157 158 void UIChooserAbstractModel::sltSessionStateChanged(const QUuid &u Id, const KSessionState)158 void UIChooserAbstractModel::sltSessionStateChanged(const QUuid &uMachineId, const KSessionState) 159 159 { 160 160 /* Update machine-nodes with passed id: */ 161 invisibleRoot()->updateAllNodes(u Id);162 } 163 164 void UIChooserAbstractModel::sltSnapshotChanged(const QUuid &u Id, const QUuid &)161 invisibleRoot()->updateAllNodes(uMachineId); 162 } 163 164 void UIChooserAbstractModel::sltSnapshotChanged(const QUuid &uMachineId, const QUuid &) 165 165 { 166 166 /* Update machine-nodes with passed id: */ 167 invisibleRoot()->updateAllNodes(u Id);168 } 169 170 void UIChooserAbstractModel::sltReloadMachine(const QUuid &u Id)167 invisibleRoot()->updateAllNodes(uMachineId); 168 } 169 170 void UIChooserAbstractModel::sltReloadMachine(const QUuid &uMachineId) 171 171 { 172 172 /* Remove machine-items with passed id: */ 173 invisibleRoot()->removeAllNodes(u Id);173 invisibleRoot()->removeAllNodes(uMachineId); 174 174 /* Wipe out empty groups: */ 175 175 wipeOutEmptyGroups(); 176 176 177 177 /* Should we show this VM? */ 178 if (gEDataManager->showMachineInVirtualBoxManagerChooser(u Id))178 if (gEDataManager->showMachineInVirtualBoxManagerChooser(uMachineId)) 179 179 { 180 180 /* Add new machine-item: */ 181 CMachine comMachine = vboxGlobal().virtualBox().FindMachine(uId.toString());181 const CMachine comMachine = vboxGlobal().virtualBox().FindMachine(uMachineId.toString()); 182 182 addMachineIntoTheTree(comMachine, true /* make it visible */); 183 183 } … … 429 429 /* Which position should be new node placed by definitions: */ 430 430 int iNewNodeDefinitionPosition = getDefinedNodePosition(pParentNode, enmType, strName); 431 431 432 /* If some position wanted: */ 432 433 if (iNewNodeDefinitionPosition != -1) … … 458 459 } 459 460 } 461 460 462 /* Return desired node position: */ 461 463 return iNewNodeDesiredPosition; -
trunk/src/VBox/Frontends/VirtualBox/src/manager/chooser/UIChooserAbstractModel.h
r77892 r77909 63 63 * @{ */ 64 64 /** Inits model. */ 65 v oid init();65 virtual void init(); 66 66 /** Deinits model. */ 67 v oid deinit();67 virtual void deinit(); 68 68 /** @} */ 69 69 … … 92 92 /** @name Main event handling stuff. 93 93 * @{ */ 94 /** Handles machine @a enmState change for machine with certain @a u Id. */95 virtual void sltMachineStateChanged(const QUuid &u Id, const KMachineState enmState);96 /** Handles machine data change for machine with certain @a u Id. */97 virtual void sltMachineDataChanged(const QUuid &u Id);98 /** Handles machine registering/unregistering for machine with certain @a u Id. */99 virtual void sltMachineRegistered(const QUuid &u Id, const bool fRegistered);100 /** Handles session @a enmState change for machine with certain @a u Id. */101 virtual void sltSessionStateChanged(const QUuid &u Id, const KSessionState enmState);102 /** Handles snapshot change for machine/snapshot with certain @a u Id / @a uSnapshotId. */103 virtual void sltSnapshotChanged(const QUuid &u Id, const QUuid &uSnapshotId);104 /** @} */ 105 106 /** @name Children stuff. 107 * @{ */ 108 /** Handles reload machine with certain @a u Id request. */109 virtual void sltReloadMachine(const QUuid &u Id);94 /** Handles machine @a enmState change for machine with certain @a uMachineId. */ 95 virtual void sltMachineStateChanged(const QUuid &uMachineId, const KMachineState enmState); 96 /** Handles machine data change for machine with certain @a uMachineId. */ 97 virtual void sltMachineDataChanged(const QUuid &uMachineId); 98 /** Handles machine registering/unregistering for machine with certain @a uMachineId. */ 99 virtual void sltMachineRegistered(const QUuid &uMachineId, const bool fRegistered); 100 /** Handles session @a enmState change for machine with certain @a uMachineId. */ 101 virtual void sltSessionStateChanged(const QUuid &uMachineId, const KSessionState enmState); 102 /** Handles snapshot change for machine/snapshot with certain @a uMachineId / @a uSnapshotId. */ 103 virtual void sltSnapshotChanged(const QUuid &uMachineId, const QUuid &uSnapshotId); 104 /** @} */ 105 106 /** @name Children stuff. 107 * @{ */ 108 /** Handles reload machine with certain @a uMachineId request. */ 109 virtual void sltReloadMachine(const QUuid &uMachineId); 110 110 /** @} */ 111 111 … … 210 210 signals: 211 211 212 /** Notifies about machine with certain @a u Id to be reloaded. */213 void sigReload(const QUuid &u Id);212 /** Notifies about machine with certain @a uMachineId to be reloaded. */ 213 void sigReload(const QUuid &uMachineId); 214 214 215 215 /** Notifies about task is complete. */ -
trunk/src/VBox/Frontends/VirtualBox/src/manager/chooser/UIChooserModel.h
r77891 r77909 94 94 * @{ */ 95 95 /** Inits model. */ 96 v oid init();96 virtual void init() /* override */; 97 97 /** Deinits model. */ 98 v oid deinit();98 virtual void deinit() /* override */; 99 99 100 100 /** Returns the Chooser reference. */
Note:
See TracChangeset
for help on using the changeset viewer.