Changeset 71524 in vbox
- Timestamp:
- Mar 27, 2018 2:57:29 PM (7 years ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src/settings
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/settings/UISettingsDefs.cpp
r66610 r71524 5 5 6 6 /* 7 * Copyright (C) 2011-201 7Oracle Corporation7 * Copyright (C) 2011-2018 Oracle Corporation 8 8 * 9 9 * This file is part of VirtualBox Open Source Edition (OSE), as … … 29 29 using namespace UISettingsDefs; 30 30 31 ConfigurationAccessLevel UISettingsDefs::configurationAccessLevel(KSessionState sessionState, KMachineState machineState)31 ConfigurationAccessLevel UISettingsDefs::configurationAccessLevel(KSessionState enmSessionState, KMachineState enmMachineState) 32 32 { 33 33 /* Depending on passed arguments: */ 34 switch ( machineState)34 switch (enmMachineState) 35 35 { 36 36 case KMachineState_PoweredOff: 37 37 case KMachineState_Teleported: 38 case KMachineState_Aborted: return sessionState == KSessionState_Unlocked ?38 case KMachineState_Aborted: return enmSessionState == KSessionState_Unlocked ? 39 39 ConfigurationAccessLevel_Full : 40 40 ConfigurationAccessLevel_Partial_PoweredOff; -
trunk/src/VBox/Frontends/VirtualBox/src/settings/UISettingsDefs.h
r66611 r71524 5 5 6 6 /* 7 * Copyright (C) 2011-201 7Oracle Corporation7 * Copyright (C) 2011-2018 Oracle Corporation 8 8 * 9 9 * This file is part of VirtualBox Open Source Edition (OSE), as … … 46 46 }; 47 47 48 /** Determines configuration access level for passed @a sessionState and @a machineState. */ 49 ConfigurationAccessLevel configurationAccessLevel(KSessionState sessionState, KMachineState machineState); 48 /** Determines configuration access level for passed @a enmSessionState and @a enmMachineState. */ 49 ConfigurationAccessLevel configurationAccessLevel(KSessionState enmSessionState, 50 KMachineState enmMachineState); 50 51 } 51 52 … … 122 123 int childCount() const { return m_children.size(); } 123 124 /** Returns the modifiable REFERENCE to the child cached data. */ 124 ChildCacheData &child(const QString &strChildKey) { return m_children[strChildKey]; }125 ChildCacheData &child(const QString &strChildKey) { return m_children[strChildKey]; } 125 126 /** Wraps method above to return the modifiable REFERENCE to the child cached data. */ 126 ChildCacheData &child(int iIndex) { return child(indexToKey(iIndex)); }127 ChildCacheData &child(int iIndex) { return child(indexToKey(iIndex)); } 127 128 /** Returns the NON-modifiable COPY to the child cached data. */ 128 129 const ChildCacheData child(const QString &strChildKey) const { return m_children[strChildKey]; } … … 281 282 }; 282 283 284 283 285 #endif /* !___UISettingsDefs_h___ */ 284 286
Note:
See TracChangeset
for help on using the changeset viewer.