Changeset 65629 in vbox for trunk/src/VBox/Frontends
- Timestamp:
- Feb 6, 2017 4:57:11 PM (8 years ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src/settings
- Files:
-
- 23 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/settings/global/UIGlobalSettingsNetwork.cpp
r65628 r65629 54 54 55 55 /* API: Get/return data to/form items: */ 56 void fetchNetworkData(const UIData NetworkNAT &data);57 void uploadNetworkData(UIData NetworkNAT &data);56 void fetchNetworkData(const UIDataSettingsGlobalNetworkNAT &data); 57 void uploadNetworkData(UIDataSettingsGlobalNetworkNAT &data); 58 58 59 59 /* API: Validation stuff: */ … … 74 74 75 75 /* Variable: Network data: */ 76 UIData NetworkNAT m_data;76 UIDataSettingsGlobalNetworkNAT m_data; 77 77 }; 78 78 … … 87 87 88 88 /* API: Get/return data to/form items: */ 89 void fetchNetworkData(const UIData NetworkHost &data);90 void uploadNetworkData(UIData NetworkHost &data);89 void fetchNetworkData(const UIDataSettingsGlobalNetworkHost &data); 90 void uploadNetworkData(UIDataSettingsGlobalNetworkHost &data); 91 91 92 92 /* API: Validation stuff: */ … … 102 102 103 103 /* Variable: Network data: */ 104 UIData NetworkHost m_data;104 UIDataSettingsGlobalNetworkHost m_data; 105 105 }; 106 106 … … 111 111 } 112 112 113 void UIItemNetworkNAT::fetchNetworkData(const UIData NetworkNAT &data)113 void UIItemNetworkNAT::fetchNetworkData(const UIDataSettingsGlobalNetworkNAT &data) 114 114 { 115 115 /* Get from cache: */ … … 120 120 } 121 121 122 void UIItemNetworkNAT::uploadNetworkData(UIData NetworkNAT &data)122 void UIItemNetworkNAT::uploadNetworkData(UIDataSettingsGlobalNetworkNAT &data) 123 123 { 124 124 /* Put to cache: */ … … 233 233 } 234 234 235 void UIItemNetworkHost::fetchNetworkData(const UIData NetworkHost &data)235 void UIItemNetworkHost::fetchNetworkData(const UIDataSettingsGlobalNetworkHost &data) 236 236 { 237 237 /* Get from cache: */ … … 242 242 } 243 243 244 void UIItemNetworkHost::uploadNetworkData(UIData NetworkHost &data)244 void UIItemNetworkHost::uploadNetworkData(UIDataSettingsGlobalNetworkHost &data) 245 245 { 246 246 /* Put to cache: */ … … 537 537 { 538 538 /* Fetch NAT networks from cache: */ 539 foreach (const UIData NetworkNAT &network, m_cache.m_networksNAT)539 foreach (const UIDataSettingsGlobalNetworkNAT &network, m_cache.m_networksNAT) 540 540 createTreeItemNetworkNAT(network); 541 541 m_pTreeNetworkNAT->sortByColumn(1, Qt::AscendingOrder); … … 544 544 545 545 /* Fetch Host networks from cache: */ 546 foreach (const UIData NetworkHost &network, m_cache.m_networksHost)546 foreach (const UIDataSettingsGlobalNetworkHost &network, m_cache.m_networksHost) 547 547 createTreeItemNetworkHost(network); 548 548 m_pTreeNetworkHost->sortByColumn(0, Qt::AscendingOrder); … … 560 560 for (int iNetworkIndex = 0; iNetworkIndex < m_pTreeNetworkNAT->topLevelItemCount(); ++iNetworkIndex) 561 561 { 562 UIData NetworkNAT data;562 UIDataSettingsGlobalNetworkNAT data; 563 563 UIItemNetworkNAT *pItem = static_cast<UIItemNetworkNAT*>(m_pTreeNetworkNAT->topLevelItem(iNetworkIndex)); 564 564 pItem->uploadNetworkData(data); … … 570 570 for (int iNetworkIndex = 0; iNetworkIndex < m_pTreeNetworkHost->topLevelItemCount(); ++iNetworkIndex) 571 571 { 572 UIData NetworkHost data;572 UIDataSettingsGlobalNetworkHost data; 573 573 UIItemNetworkHost *pItem = static_cast<UIItemNetworkHost*>(m_pTreeNetworkHost->topLevelItem(iNetworkIndex)); 574 574 pItem->uploadNetworkData(data); … … 587 587 588 588 /* Save NAT networks from cache: */ 589 foreach (const UIData NetworkNAT &data, m_cache.m_networksNAT)589 foreach (const UIDataSettingsGlobalNetworkNAT &data, m_cache.m_networksNAT) 590 590 saveCacheItemNetworkNAT(data); 591 591 592 592 /* Save Host networks from cache: */ 593 foreach (const UIData NetworkHost &data, m_cache.m_networksHost)593 foreach (const UIDataSettingsGlobalNetworkHost &data, m_cache.m_networksHost) 594 594 saveCacheItemNetworkHost(data); 595 595 … … 783 783 784 784 /* Edit current item data: */ 785 UIData NetworkNAT data;785 UIDataSettingsGlobalNetworkNAT data; 786 786 pItem->uploadNetworkData(data); 787 787 UIGlobalSettingsNetworkDetailsNAT details(this, data); … … 887 887 888 888 /* Edit current item data: */ 889 UIData NetworkHost data;889 UIDataSettingsGlobalNetworkHost data; 890 890 pItem->uploadNetworkData(data); 891 891 UIGlobalSettingsNetworkDetailsHost details(this, data); … … 953 953 } 954 954 955 UIData NetworkNAT UIGlobalSettingsNetwork::generateDataNetworkNAT(const CNATNetwork &network)955 UIDataSettingsGlobalNetworkNAT UIGlobalSettingsNetwork::generateDataNetworkNAT(const CNATNetwork &network) 956 956 { 957 957 /* Prepare data: */ 958 UIData NetworkNAT data;958 UIDataSettingsGlobalNetworkNAT data; 959 959 960 960 /* Load NAT network settings: */ … … 1019 1019 } 1020 1020 1021 void UIGlobalSettingsNetwork::saveCacheItemNetworkNAT(const UIData NetworkNAT &data)1021 void UIGlobalSettingsNetwork::saveCacheItemNetworkNAT(const UIDataSettingsGlobalNetworkNAT &data) 1022 1022 { 1023 1023 /* Make sure corresponding NAT network exists: */ … … 1055 1055 } 1056 1056 1057 void UIGlobalSettingsNetwork::createTreeItemNetworkNAT(const UIData NetworkNAT &data, bool fChooseItem)1057 void UIGlobalSettingsNetwork::createTreeItemNetworkNAT(const UIDataSettingsGlobalNetworkNAT &data, bool fChooseItem) 1058 1058 { 1059 1059 /* Add new item to the tree: */ … … 1072 1072 } 1073 1073 1074 UIData NetworkHost UIGlobalSettingsNetwork::generateDataNetworkHost(const CHostNetworkInterface &iface)1074 UIDataSettingsGlobalNetworkHost UIGlobalSettingsNetwork::generateDataNetworkHost(const CHostNetworkInterface &iface) 1075 1075 { 1076 1076 /* Prepare data: */ 1077 UIData NetworkHost data;1077 UIDataSettingsGlobalNetworkHost data; 1078 1078 1079 1079 /* Get DHCP server (create if necessary): */ … … 1114 1114 } 1115 1115 1116 void UIGlobalSettingsNetwork::saveCacheItemNetworkHost(const UIData NetworkHost &data)1116 void UIGlobalSettingsNetwork::saveCacheItemNetworkHost(const UIDataSettingsGlobalNetworkHost &data) 1117 1117 { 1118 1118 /* Make sure corresponding Host interface exists: */ … … 1185 1185 } 1186 1186 1187 void UIGlobalSettingsNetwork::createTreeItemNetworkHost(const UIData NetworkHost &data, bool fChooseItem)1187 void UIGlobalSettingsNetwork::createTreeItemNetworkHost(const UIDataSettingsGlobalNetworkHost &data, bool fChooseItem) 1188 1188 { 1189 1189 /* Add new item to the tree: */ -
trunk/src/VBox/Frontends/VirtualBox/src/settings/global/UIGlobalSettingsNetwork.h
r62493 r65629 30 30 31 31 /* Global settings / Network page / NAT network data: */ 32 struct UIData NetworkNAT32 struct UIDataSettingsGlobalNetworkNAT 33 33 { 34 34 /* NAT Network: */ … … 42 42 UIPortForwardingDataList m_ipv4rules; 43 43 UIPortForwardingDataList m_ipv6rules; 44 bool operator==(const UIData NetworkNAT &other) const44 bool operator==(const UIDataSettingsGlobalNetworkNAT &other) const 45 45 { 46 46 return m_fEnabled == other.m_fEnabled && … … 58 58 59 59 /* Global settings / Network page / Host interface data: */ 60 struct UIData NetworkHostInterface60 struct UIDataSettingsGlobalNetworkHostInterface 61 61 { 62 62 /* Host Interface: */ … … 68 68 QString m_strInterfaceAddress6; 69 69 QString m_strInterfaceMaskLength6; 70 bool operator==(const UIData NetworkHostInterface &other) const70 bool operator==(const UIDataSettingsGlobalNetworkHostInterface &other) const 71 71 { 72 72 return m_strName == other.m_strName && … … 81 81 82 82 /* Global settings / Network page / Host DHCP server data: */ 83 struct UIData NetworkDHCPServer83 struct UIDataSettingsGlobalNetworkDHCPServer 84 84 { 85 85 /* DHCP Server: */ … … 89 89 QString m_strDhcpLowerAddress; 90 90 QString m_strDhcpUpperAddress; 91 bool operator==(const UIData NetworkDHCPServer &other) const91 bool operator==(const UIDataSettingsGlobalNetworkDHCPServer &other) const 92 92 { 93 93 return m_fDhcpServerEnabled == other.m_fDhcpServerEnabled && … … 100 100 101 101 /* Global settings / Network page / Host network data: */ 102 struct UIData NetworkHost103 { 104 UIData NetworkHostInterface m_interface;105 UIData NetworkDHCPServer m_dhcpserver;106 bool operator==(const UIData NetworkHost &other) const102 struct UIDataSettingsGlobalNetworkHost 103 { 104 UIDataSettingsGlobalNetworkHostInterface m_interface; 105 UIDataSettingsGlobalNetworkDHCPServer m_dhcpserver; 106 bool operator==(const UIDataSettingsGlobalNetworkHost &other) const 107 107 { 108 108 return m_interface == other.m_interface && … … 115 115 struct UISettingsCacheGlobalNetwork 116 116 { 117 QList<UIData NetworkNAT> m_networksNAT;118 QList<UIData NetworkHost> m_networksHost;117 QList<UIDataSettingsGlobalNetworkNAT> m_networksNAT; 118 QList<UIDataSettingsGlobalNetworkHost> m_networksHost; 119 119 }; 120 120 … … 179 179 180 180 /* Helpers: NAT network cache stuff: */ 181 UIData NetworkNAT generateDataNetworkNAT(const CNATNetwork &network);182 void saveCacheItemNetworkNAT(const UIData NetworkNAT &data);181 UIDataSettingsGlobalNetworkNAT generateDataNetworkNAT(const CNATNetwork &network); 182 void saveCacheItemNetworkNAT(const UIDataSettingsGlobalNetworkNAT &data); 183 183 184 184 /* Helpers: NAT network tree stuff: */ 185 void createTreeItemNetworkNAT(const UIData NetworkNAT &data, bool fChooseItem = false);185 void createTreeItemNetworkNAT(const UIDataSettingsGlobalNetworkNAT &data, bool fChooseItem = false); 186 186 void removeTreeItemNetworkNAT(UIItemNetworkNAT *pItem); 187 187 188 188 /* Helpers: Host network cache stuff: */ 189 UIData NetworkHost generateDataNetworkHost(const CHostNetworkInterface &iface);190 void saveCacheItemNetworkHost(const UIData NetworkHost &data);189 UIDataSettingsGlobalNetworkHost generateDataNetworkHost(const CHostNetworkInterface &iface); 190 void saveCacheItemNetworkHost(const UIDataSettingsGlobalNetworkHost &data); 191 191 192 192 /* Helpers: Host network tree stuff: */ 193 void createTreeItemNetworkHost(const UIData NetworkHost &data, bool fChooseItem = false);193 void createTreeItemNetworkHost(const UIDataSettingsGlobalNetworkHost &data, bool fChooseItem = false); 194 194 void removeTreeItemNetworkHost(UIItemNetworkHost *pItem); 195 195 -
trunk/src/VBox/Frontends/VirtualBox/src/settings/global/UIGlobalSettingsNetworkDetailsHost.cpp
r65603 r65629 30 30 31 31 32 UIGlobalSettingsNetworkDetailsHost::UIGlobalSettingsNetworkDetailsHost(QWidget *pParent, UIData NetworkHost &data)32 UIGlobalSettingsNetworkDetailsHost::UIGlobalSettingsNetworkDetailsHost(QWidget *pParent, UIDataSettingsGlobalNetworkHost &data) 33 33 : QIWithRetranslateUI2<QIDialog>(pParent) 34 34 , m_data(data) -
trunk/src/VBox/Frontends/VirtualBox/src/settings/global/UIGlobalSettingsNetworkDetailsHost.h
r65603 r65629 25 25 26 26 /* Forward decalrations: */ 27 struct UIData NetworkHost;27 struct UIDataSettingsGlobalNetworkHost; 28 28 29 29 /* Global settings / Network page / Details sub-dialog: */ … … 35 35 36 36 /* Constructor: */ 37 UIGlobalSettingsNetworkDetailsHost(QWidget *pParent, UIData NetworkHost &data);37 UIGlobalSettingsNetworkDetailsHost(QWidget *pParent, UIDataSettingsGlobalNetworkHost &data); 38 38 39 39 protected: … … 65 65 66 66 /* Variable: External data reference: */ 67 UIData NetworkHost &m_data;67 UIDataSettingsGlobalNetworkHost &m_data; 68 68 }; 69 69 -
trunk/src/VBox/Frontends/VirtualBox/src/settings/global/UIGlobalSettingsNetworkDetailsNAT.cpp
r62493 r65629 31 31 32 32 33 UIGlobalSettingsNetworkDetailsNAT::UIGlobalSettingsNetworkDetailsNAT(QWidget *pParent, UIData NetworkNAT &data)33 UIGlobalSettingsNetworkDetailsNAT::UIGlobalSettingsNetworkDetailsNAT(QWidget *pParent, UIDataSettingsGlobalNetworkNAT &data) 34 34 : QIWithRetranslateUI2<QIDialog>(pParent) 35 35 , m_data(data) -
trunk/src/VBox/Frontends/VirtualBox/src/settings/global/UIGlobalSettingsNetworkDetailsNAT.h
r62493 r65629 25 25 26 26 /* Forward decalrations: */ 27 struct UIData NetworkNAT;27 struct UIDataSettingsGlobalNetworkNAT; 28 28 29 29 /* Global settings / Network page / Details sub-dialog: */ … … 35 35 36 36 /* Constructor: */ 37 UIGlobalSettingsNetworkDetailsNAT(QWidget *pParent, UIData NetworkNAT &data);37 UIGlobalSettingsNetworkDetailsNAT(QWidget *pParent, UIDataSettingsGlobalNetworkNAT &data); 38 38 39 39 protected: … … 60 60 61 61 /* Variable: External data reference: */ 62 UIData NetworkNAT &m_data;62 UIDataSettingsGlobalNetworkNAT &m_data; 63 63 }; 64 64 -
trunk/src/VBox/Frontends/VirtualBox/src/settings/machine/UIMachineSettingsAudio.h
r62493 r65629 47 47 KAudioControllerType m_audioControllerType; 48 48 }; 49 typedef UISettingsCache<UIDataSettingsMachineAudio> UI CacheSettingsMachineAudio;49 typedef UISettingsCache<UIDataSettingsMachineAudio> UISettingsCacheMachineAudio; 50 50 51 51 /* Machine settings / Audio page: */ … … 94 94 95 95 /* Cache: */ 96 UI CacheSettingsMachineAudio m_cache;96 UISettingsCacheMachineAudio m_cache; 97 97 }; 98 98 -
trunk/src/VBox/Frontends/VirtualBox/src/settings/machine/UIMachineSettingsDisplay.h
r62493 r65629 121 121 QVector<BOOL> m_screens; 122 122 }; 123 typedef UISettingsCache<UIDataSettingsMachineDisplay> UI CacheSettingsMachineDisplay;123 typedef UISettingsCache<UIDataSettingsMachineDisplay> UISettingsCacheMachineDisplay; 124 124 125 125 /* Machine settings / Display page: */ … … 238 238 239 239 /* Cache: */ 240 UI CacheSettingsMachineDisplay m_cache;240 UISettingsCacheMachineDisplay m_cache; 241 241 }; 242 242 -
trunk/src/VBox/Frontends/VirtualBox/src/settings/machine/UIMachineSettingsGeneral.h
r62493 r65629 95 95 EncryptionPasswordMap m_encryptionPasswords; 96 96 }; 97 typedef UISettingsCache<UIDataSettingsMachineGeneral> UI CacheSettingsMachineGeneral;97 typedef UISettingsCache<UIDataSettingsMachineGeneral> UISettingsCacheMachineGeneral; 98 98 99 99 /** Machine settings: General page. */ … … 172 172 173 173 /** Holds the page cache. */ 174 UI CacheSettingsMachineGeneral m_cache;174 UISettingsCacheMachineGeneral m_cache; 175 175 176 176 /** Holds whether HW virtualization extension is enabled. */ -
trunk/src/VBox/Frontends/VirtualBox/src/settings/machine/UIMachineSettingsInterface.h
r62493 r65629 112 112 #endif /* !VBOX_WS_MAC */ 113 113 }; 114 typedef UISettingsCache<UIDataSettingsMachineInterface> UI CacheSettingsMachineInterface;114 typedef UISettingsCache<UIDataSettingsMachineInterface> UISettingsCacheMachineInterface; 115 115 116 116 /* Machine settings / User Interface page: */ … … 164 164 165 165 /* Cache: */ 166 UI CacheSettingsMachineInterface m_cache;166 UISettingsCacheMachineInterface m_cache; 167 167 168 168 /** Holds the machine ID copy. */ -
trunk/src/VBox/Frontends/VirtualBox/src/settings/machine/UIMachineSettingsNetwork.cpp
r62493 r65629 91 91 } 92 92 93 void UIMachineSettingsNetwork::fetchAdapterCache(const UI CacheSettingsMachineNetworkAdapter &adapterCache)93 void UIMachineSettingsNetwork::fetchAdapterCache(const UISettingsCacheMachineNetworkAdapter &adapterCache) 94 94 { 95 95 /* Get adapter data: */ … … 130 130 } 131 131 132 void UIMachineSettingsNetwork::uploadAdapterCache(UI CacheSettingsMachineNetworkAdapter &adapterCache)132 void UIMachineSettingsNetwork::uploadAdapterCache(UISettingsCacheMachineNetworkAdapter &adapterCache) 133 133 { 134 134 /* Prepare adapter data: */ … … 966 966 { 967 967 /* Check if adapter data was changed: */ 968 const UI CacheSettingsMachineNetworkAdapter &adapterCache = m_cache.child(iSlot);968 const UISettingsCacheMachineNetworkAdapter &adapterCache = m_cache.child(iSlot); 969 969 if (adapterCache.wasChanged()) 970 970 { -
trunk/src/VBox/Frontends/VirtualBox/src/settings/machine/UIMachineSettingsNetwork.h
r62493 r65629 84 84 UIPortForwardingDataList m_redirects; 85 85 }; 86 typedef UISettingsCache<UIDataSettingsMachineNetworkAdapter> UI CacheSettingsMachineNetworkAdapter;86 typedef UISettingsCache<UIDataSettingsMachineNetworkAdapter> UISettingsCacheMachineNetworkAdapter; 87 87 88 88 /* Machine settings / Network page / Network data: */ … … 95 95 bool operator!=(const UIDataSettingsMachineNetwork& /* other */) const { return false; } 96 96 }; 97 typedef UISettingsCachePool<UIDataSettingsMachineNetwork, UI CacheSettingsMachineNetworkAdapter> UICacheSettingsMachineNetwork;97 typedef UISettingsCachePool<UIDataSettingsMachineNetwork, UISettingsCacheMachineNetworkAdapter> UISettingsCacheMachineNetwork; 98 98 99 99 /* Machine settings / Network page / Adapter tab: */ … … 108 108 109 109 /* Load / Save API: */ 110 void fetchAdapterCache(const UI CacheSettingsMachineNetworkAdapter &adapterCache);111 void uploadAdapterCache(UI CacheSettingsMachineNetworkAdapter &adapterCache);110 void fetchAdapterCache(const UISettingsCacheMachineNetworkAdapter &adapterCache); 111 void uploadAdapterCache(UISettingsCacheMachineNetworkAdapter &adapterCache); 112 112 113 113 /* API: Validation stuff: */ … … 261 261 262 262 /* Cache: */ 263 UI CacheSettingsMachineNetwork m_cache;263 UISettingsCacheMachineNetwork m_cache; 264 264 }; 265 265 -
trunk/src/VBox/Frontends/VirtualBox/src/settings/machine/UIMachineSettingsParallel.cpp
r62493 r65629 87 87 } 88 88 89 void UIMachineSettingsParallel::fetchPortData(const UI CacheSettingsMachineParallelPort &portCache)89 void UIMachineSettingsParallel::fetchPortData(const UISettingsCacheMachineParallelPort &portCache) 90 90 { 91 91 /* Get port data: */ … … 106 106 } 107 107 108 void UIMachineSettingsParallel::uploadPortData(UI CacheSettingsMachineParallelPort &portCache)108 void UIMachineSettingsParallel::uploadPortData(UISettingsCacheMachineParallelPort &portCache) 109 109 { 110 110 /* Prepare port data: */ … … 303 303 { 304 304 /* Check if port data was changed: */ 305 const UI CacheSettingsMachineParallelPort &portCache = m_cache.child(iPort);305 const UISettingsCacheMachineParallelPort &portCache = m_cache.child(iPort); 306 306 if (portCache.wasChanged()) 307 307 { -
trunk/src/VBox/Frontends/VirtualBox/src/settings/machine/UIMachineSettingsParallel.h
r62493 r65629 56 56 QString m_strPath; 57 57 }; 58 typedef UISettingsCache<UIDataSettingsMachineParallelPort> UI CacheSettingsMachineParallelPort;58 typedef UISettingsCache<UIDataSettingsMachineParallelPort> UISettingsCacheMachineParallelPort; 59 59 60 60 /* Machine settings / Parallel page / Ports data: */ … … 67 67 bool operator!=(const UIDataSettingsMachineParallel& /* other */) const { return false; } 68 68 }; 69 typedef UISettingsCachePool<UIDataSettingsMachineParallel, UI CacheSettingsMachineParallelPort> UICacheSettingsMachineParallel;69 typedef UISettingsCachePool<UIDataSettingsMachineParallel, UISettingsCacheMachineParallelPort> UISettingsCacheMachineParallel; 70 70 71 71 class UIMachineSettingsParallel : public QIWithRetranslateUI<QWidget>, … … 80 80 void polishTab(); 81 81 82 void fetchPortData(const UI CacheSettingsMachineParallelPort &portCache);83 void uploadPortData(UI CacheSettingsMachineParallelPort &portCache);82 void fetchPortData(const UISettingsCacheMachineParallelPort &portCache); 83 void uploadPortData(UISettingsCacheMachineParallelPort &portCache); 84 84 85 85 QWidget* setOrderAfter (QWidget *aAfter); … … 146 146 147 147 /* Cache: */ 148 UI CacheSettingsMachineParallel m_cache;148 UISettingsCacheMachineParallel m_cache; 149 149 }; 150 150 -
trunk/src/VBox/Frontends/VirtualBox/src/settings/machine/UIMachineSettingsSF.cpp
r64780 r65629 377 377 { 378 378 /* Check if this shared folder data was actually changed: */ 379 const UI CacheSettingsSharedFolder &sharedFolderCache = m_cache.child(iSharedFolderIndex);379 const UISettingsCacheSharedFolder &sharedFolderCache = m_cache.child(iSharedFolderIndex); 380 380 if (sharedFolderCache.wasChanged()) 381 381 { … … 749 749 } 750 750 751 bool UIMachineSettingsSF::removeSharedFolder(const UI CacheSettingsSharedFolder &folderCache)751 bool UIMachineSettingsSF::removeSharedFolder(const UISettingsCacheSharedFolder &folderCache) 752 752 { 753 753 /* Get shared folder data: */ … … 804 804 } 805 805 806 bool UIMachineSettingsSF::createSharedFolder(const UI CacheSettingsSharedFolder &folderCache)806 bool UIMachineSettingsSF::createSharedFolder(const UISettingsCacheSharedFolder &folderCache) 807 807 { 808 808 /* Get shared folder data: */ -
trunk/src/VBox/Frontends/VirtualBox/src/settings/machine/UIMachineSettingsSF.h
r62493 r65629 62 62 bool m_fWritable; 63 63 }; 64 typedef UISettingsCache<UIDataSettingsSharedFolder> UI CacheSettingsSharedFolder;64 typedef UISettingsCache<UIDataSettingsSharedFolder> UISettingsCacheSharedFolder; 65 65 66 66 /* Machine settings / Shared Folders page / Shared Folders data: */ … … 73 73 bool operator!=(const UIDataSettingsSharedFolders& /* other */) const { return false; } 74 74 }; 75 typedef UISettingsCachePool<UIDataSettingsSharedFolders, UI CacheSettingsSharedFolder> UICacheSettingsSharedFolders;75 typedef UISettingsCachePool<UIDataSettingsSharedFolders, UISettingsCacheSharedFolder> UISettingsCacheSharedFolders; 76 76 77 77 class UIMachineSettingsSF : public UISettingsPageMachine, … … 139 139 CSharedFolderVector getSharedFolders(UISharedFolderType sharedFoldersType); 140 140 141 bool removeSharedFolder(const UI CacheSettingsSharedFolder &folderCache);142 bool createSharedFolder(const UI CacheSettingsSharedFolder &folderCache);141 bool removeSharedFolder(const UISettingsCacheSharedFolder &folderCache); 142 bool createSharedFolder(const UISettingsCacheSharedFolder &folderCache); 143 143 144 144 QAction *mNewAction; … … 150 150 151 151 /* Cache: */ 152 UI CacheSettingsSharedFolders m_cache;152 UISettingsCacheSharedFolders m_cache; 153 153 }; 154 154 -
trunk/src/VBox/Frontends/VirtualBox/src/settings/machine/UIMachineSettingsSerial.cpp
r62493 r65629 101 101 } 102 102 103 void UIMachineSettingsSerial::fetchPortData(const UI CacheSettingsMachineSerialPort &portCache)103 void UIMachineSettingsSerial::fetchPortData(const UISettingsCacheMachineSerialPort &portCache) 104 104 { 105 105 /* Get port data: */ … … 122 122 } 123 123 124 void UIMachineSettingsSerial::uploadPortData(UI CacheSettingsMachineSerialPort &portCache)124 void UIMachineSettingsSerial::uploadPortData(UISettingsCacheMachineSerialPort &portCache) 125 125 { 126 126 /* Prepare port data: */ … … 344 344 { 345 345 /* Check if port data was changed: */ 346 const UI CacheSettingsMachineSerialPort &portCache = m_cache.child(iPort);346 const UISettingsCacheMachineSerialPort &portCache = m_cache.child(iPort); 347 347 if (portCache.wasChanged()) 348 348 { -
trunk/src/VBox/Frontends/VirtualBox/src/settings/machine/UIMachineSettingsSerial.h
r62493 r65629 62 62 QString m_strPath; 63 63 }; 64 typedef UISettingsCache<UIDataSettingsMachineSerialPort> UI CacheSettingsMachineSerialPort;64 typedef UISettingsCache<UIDataSettingsMachineSerialPort> UISettingsCacheMachineSerialPort; 65 65 66 66 /* Machine settings / Serial page / Ports data: */ … … 73 73 bool operator!=(const UIDataSettingsMachineSerial& /* other */) const { return false; } 74 74 }; 75 typedef UISettingsCachePool<UIDataSettingsMachineSerial, UI CacheSettingsMachineSerialPort> UICacheSettingsMachineSerial;75 typedef UISettingsCachePool<UIDataSettingsMachineSerial, UISettingsCacheMachineSerialPort> UISettingsCacheMachineSerial; 76 76 77 77 class UIMachineSettingsSerial : public QIWithRetranslateUI<QWidget>, … … 86 86 void polishTab(); 87 87 88 void fetchPortData(const UI CacheSettingsMachineSerialPort &data);89 void uploadPortData(UI CacheSettingsMachineSerialPort &data);88 void fetchPortData(const UISettingsCacheMachineSerialPort &data); 89 void uploadPortData(UISettingsCacheMachineSerialPort &data); 90 90 91 91 QWidget* setOrderAfter (QWidget *aAfter); … … 153 153 154 154 /* Cache: */ 155 UI CacheSettingsMachineSerial m_cache;155 UISettingsCacheMachineSerial m_cache; 156 156 }; 157 157 -
trunk/src/VBox/Frontends/VirtualBox/src/settings/machine/UIMachineSettingsStorage.cpp
r64796 r65629 2290 2290 { 2291 2291 /* Get storage controller cache: */ 2292 const UI CacheSettingsMachineStorageController &controllerCache = m_cache.child(iControllerIndex);2292 const UISettingsCacheMachineStorageController &controllerCache = m_cache.child(iControllerIndex); 2293 2293 /* Get storage controller data from cache: */ 2294 2294 const UIDataSettingsMachineStorageController &controllerData = controllerCache.base(); … … 2306 2306 { 2307 2307 /* Get storage attachment cache: */ 2308 const UI CacheSettingsMachineStorageAttachment &attachmentCache = controllerCache.child(iAttachmentIndex);2308 const UISettingsCacheMachineStorageAttachment &attachmentCache = controllerCache.child(iAttachmentIndex); 2309 2309 /* Get storage controller data from cache: */ 2310 2310 const UIDataSettingsMachineStorageAttachment &attachmentData = attachmentCache.base(); … … 3590 3590 { 3591 3591 /* Get controller cache: */ 3592 const UI CacheSettingsMachineStorageController &controllerCache = m_cache.child(iControllerIndex);3592 const UISettingsCacheMachineStorageController &controllerCache = m_cache.child(iControllerIndex); 3593 3593 3594 3594 /* Remove controllers marked for 'remove' and 'update' (if they can't be updated): */ … … 3605 3605 { 3606 3606 /* Get attachment cache: */ 3607 const UI CacheSettingsMachineStorageAttachment &attachmentCache = controllerCache.child(iAttachmentIndex);3607 const UISettingsCacheMachineStorageAttachment &attachmentCache = controllerCache.child(iAttachmentIndex); 3608 3608 3609 3609 /* Remove attachments marked for 'remove' and 'update' (if they can't be updated): */ … … 3618 3618 { 3619 3619 /* Get controller cache: */ 3620 const UI CacheSettingsMachineStorageController &controllerCache = m_cache.child(iControllerIndex);3620 const UISettingsCacheMachineStorageController &controllerCache = m_cache.child(iControllerIndex); 3621 3621 3622 3622 /* Create controllers marked for 'create' or 'update' (if they can't be updated): */ … … 3636 3636 } 3637 3637 3638 bool UIMachineSettingsStorage::removeStorageController(const UI CacheSettingsMachineStorageController &controllerCache)3638 bool UIMachineSettingsStorage::removeStorageController(const UISettingsCacheMachineStorageController &controllerCache) 3639 3639 { 3640 3640 /* Prepare result: */ … … 3665 3665 } 3666 3666 3667 bool UIMachineSettingsStorage::createStorageController(const UI CacheSettingsMachineStorageController &controllerCache)3667 bool UIMachineSettingsStorage::createStorageController(const UISettingsCacheMachineStorageController &controllerCache) 3668 3668 { 3669 3669 /* Prepare result: */ … … 3708 3708 { 3709 3709 /* Get storage attachment cache: */ 3710 const UI CacheSettingsMachineStorageAttachment &attachmentCache = controllerCache.child(iAttachmentIndex);3710 const UISettingsCacheMachineStorageAttachment &attachmentCache = controllerCache.child(iAttachmentIndex); 3711 3711 3712 3712 /* Create attachment if it was not just 'removed': */ … … 3721 3721 } 3722 3722 3723 bool UIMachineSettingsStorage::updateStorageController(const UI CacheSettingsMachineStorageController &controllerCache)3723 bool UIMachineSettingsStorage::updateStorageController(const UISettingsCacheMachineStorageController &controllerCache) 3724 3724 { 3725 3725 /* Prepare result: */ … … 3757 3757 { 3758 3758 /* Get storage attachment cache: */ 3759 const UI CacheSettingsMachineStorageAttachment &attachmentCache = controllerCache.child(iAttachmentIndex);3759 const UISettingsCacheMachineStorageAttachment &attachmentCache = controllerCache.child(iAttachmentIndex); 3760 3760 3761 3761 /* Create attachments marked for 'create' and 'update' (if they can't be updated): */ … … 3775 3775 } 3776 3776 3777 bool UIMachineSettingsStorage::removeStorageAttachment(const UI CacheSettingsMachineStorageController &controllerCache,3778 const UI CacheSettingsMachineStorageAttachment &attachmentCache)3777 bool UIMachineSettingsStorage::removeStorageAttachment(const UISettingsCacheMachineStorageController &controllerCache, 3778 const UISettingsCacheMachineStorageAttachment &attachmentCache) 3779 3779 { 3780 3780 /* Prepare result: */ … … 3810 3810 } 3811 3811 3812 bool UIMachineSettingsStorage::createStorageAttachment(const UI CacheSettingsMachineStorageController &controllerCache,3813 const UI CacheSettingsMachineStorageAttachment &attachmentCache)3812 bool UIMachineSettingsStorage::createStorageAttachment(const UISettingsCacheMachineStorageController &controllerCache, 3813 const UISettingsCacheMachineStorageAttachment &attachmentCache) 3814 3814 { 3815 3815 /* Prepare result: */ … … 3899 3899 } 3900 3900 3901 bool UIMachineSettingsStorage::updateStorageAttachment(const UI CacheSettingsMachineStorageController &controllerCache,3902 const UI CacheSettingsMachineStorageAttachment &attachmentCache)3901 bool UIMachineSettingsStorage::updateStorageAttachment(const UISettingsCacheMachineStorageController &controllerCache, 3902 const UISettingsCacheMachineStorageAttachment &attachmentCache) 3903 3903 { 3904 3904 /* Prepare result: */ … … 3988 3988 } 3989 3989 3990 bool UIMachineSettingsStorage::isControllerCouldBeUpdated(const UI CacheSettingsMachineStorageController &controllerCache) const3990 bool UIMachineSettingsStorage::isControllerCouldBeUpdated(const UISettingsCacheMachineStorageController &controllerCache) const 3991 3991 { 3992 3992 /* IController interface doesn't allows to change 'name' and 'bus' attributes. … … 4000 4000 } 4001 4001 4002 bool UIMachineSettingsStorage::isAttachmentCouldBeUpdated(const UI CacheSettingsMachineStorageAttachment &attachmentCache) const4002 bool UIMachineSettingsStorage::isAttachmentCouldBeUpdated(const UISettingsCacheMachineStorageAttachment &attachmentCache) const 4003 4003 { 4004 4004 /* IMediumAttachment could be indirectly updated through IMachine -
trunk/src/VBox/Frontends/VirtualBox/src/settings/machine/UIMachineSettingsStorage.h
r64796 r65629 627 627 bool m_fAttachmentHotPluggable; 628 628 }; 629 typedef UISettingsCache<UIDataSettingsMachineStorageAttachment> UI CacheSettingsMachineStorageAttachment;629 typedef UISettingsCache<UIDataSettingsMachineStorageAttachment> UISettingsCacheMachineStorageAttachment; 630 630 631 631 /* Machine settings / Storage page / Storage controller data: */ … … 658 658 bool m_fUseHostIOCache; 659 659 }; 660 typedef UISettingsCachePool<UIDataSettingsMachineStorageController, UI CacheSettingsMachineStorageAttachment> UICacheSettingsMachineStorageController;660 typedef UISettingsCachePool<UIDataSettingsMachineStorageController, UISettingsCacheMachineStorageAttachment> UISettingsCacheMachineStorageController; 661 661 662 662 /* Machine settings / Storage page / Storage data: */ … … 669 669 bool operator!=(const UIDataSettingsMachineStorage& /* other */) const { return false; } 670 670 }; 671 typedef UISettingsCachePool<UIDataSettingsMachineStorage, UI CacheSettingsMachineStorageController> UICacheSettingsMachineStorage;671 typedef UISettingsCachePool<UIDataSettingsMachineStorage, UISettingsCacheMachineStorageController> UISettingsCacheMachineStorage; 672 672 673 673 /* Machine settings / Storage page: */ … … 778 778 779 779 bool updateStorageData(); 780 bool removeStorageController(const UI CacheSettingsMachineStorageController &controllerCache);781 bool createStorageController(const UI CacheSettingsMachineStorageController &controllerCache);782 bool updateStorageController(const UI CacheSettingsMachineStorageController &controllerCache);783 bool removeStorageAttachment(const UI CacheSettingsMachineStorageController &controllerCache,784 const UI CacheSettingsMachineStorageAttachment &attachmentCache);785 bool createStorageAttachment(const UI CacheSettingsMachineStorageController &controllerCache,786 const UI CacheSettingsMachineStorageAttachment &attachmentCache);787 bool updateStorageAttachment(const UI CacheSettingsMachineStorageController &controllerCache,788 const UI CacheSettingsMachineStorageAttachment &attachmentCache);789 bool isControllerCouldBeUpdated(const UI CacheSettingsMachineStorageController &controllerCache) const;790 bool isAttachmentCouldBeUpdated(const UI CacheSettingsMachineStorageAttachment &attachmentCache) const;780 bool removeStorageController(const UISettingsCacheMachineStorageController &controllerCache); 781 bool createStorageController(const UISettingsCacheMachineStorageController &controllerCache); 782 bool updateStorageController(const UISettingsCacheMachineStorageController &controllerCache); 783 bool removeStorageAttachment(const UISettingsCacheMachineStorageController &controllerCache, 784 const UISettingsCacheMachineStorageAttachment &attachmentCache); 785 bool createStorageAttachment(const UISettingsCacheMachineStorageController &controllerCache, 786 const UISettingsCacheMachineStorageAttachment &attachmentCache); 787 bool updateStorageAttachment(const UISettingsCacheMachineStorageController &controllerCache, 788 const UISettingsCacheMachineStorageAttachment &attachmentCache); 789 bool isControllerCouldBeUpdated(const UISettingsCacheMachineStorageController &controllerCache) const; 790 bool isAttachmentCouldBeUpdated(const UISettingsCacheMachineStorageAttachment &attachmentCache) const; 791 791 792 792 /** Defines configuration access level. */ … … 826 826 827 827 /* Cache: */ 828 UI CacheSettingsMachineStorage m_cache;828 UISettingsCacheMachineStorage m_cache; 829 829 }; 830 830 -
trunk/src/VBox/Frontends/VirtualBox/src/settings/machine/UIMachineSettingsSystem.h
r62493 r65629 116 116 bool m_fEnabledNestedPaging; 117 117 }; 118 typedef UISettingsCache<UIDataSettingsMachineSystem> UI CacheSettingsMachineSystem;118 typedef UISettingsCache<UIDataSettingsMachineSystem> UISettingsCacheMachineSystem; 119 119 120 120 /* Machine settings / System page: */ … … 218 218 219 219 /* Cache: */ 220 UI CacheSettingsMachineSystem m_cache;220 UISettingsCacheMachineSystem m_cache; 221 221 }; 222 222 -
trunk/src/VBox/Frontends/VirtualBox/src/settings/machine/UIMachineSettingsUSB.cpp
r64780 r65629 512 512 { 513 513 /* Check if USB filter data really changed: */ 514 const UI CacheSettingsMachineUSBFilter &usbFilterCache = m_cache.child(iFilterIndex);514 const UISettingsCacheMachineUSBFilter &usbFilterCache = m_cache.child(iFilterIndex); 515 515 if (usbFilterCache.wasChanged()) 516 516 { -
trunk/src/VBox/Frontends/VirtualBox/src/settings/machine/UIMachineSettingsUSB.h
r64713 r65629 80 80 KUSBDeviceState m_hostUSBDeviceState; 81 81 }; 82 typedef UISettingsCache<UIDataSettingsMachineUSBFilter> UI CacheSettingsMachineUSBFilter;82 typedef UISettingsCache<UIDataSettingsMachineUSBFilter> UISettingsCacheMachineUSBFilter; 83 83 84 84 /* Common settings / USB page / USB data: */ … … 102 102 KUSBControllerType m_USBControllerType; 103 103 }; 104 typedef UISettingsCachePool<UIDataSettingsMachineUSB, UI CacheSettingsMachineUSBFilter> UICacheSettingsMachineUSB;104 typedef UISettingsCachePool<UIDataSettingsMachineUSB, UISettingsCacheMachineUSBFilter> UISettingsCacheMachineUSB; 105 105 106 106 /* Common settings / USB page: */ … … 189 189 190 190 /* Cache: */ 191 UI CacheSettingsMachineUSB m_cache;191 UISettingsCacheMachineUSB m_cache; 192 192 }; 193 193
Note:
See TracChangeset
for help on using the changeset viewer.