Changeset 66176 in vbox
- Timestamp:
- Mar 21, 2017 11:25:20 AM (8 years ago)
- svn:sync-xref-src-repo-rev:
- 114088
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src/settings/machine
- Files:
-
- 11 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/settings/machine/UIMachineSettingsAudio.h
r66163 r66176 5 5 6 6 /* 7 * Copyright (C) 2006-201 6Oracle Corporation7 * Copyright (C) 2006-2017 Oracle Corporation 8 8 * 9 9 * This file is part of VirtualBox Open Source Edition (OSE), as … … 16 16 */ 17 17 18 #ifndef __ UIMachineSettingsAudio_h__19 #define __ UIMachineSettingsAudio_h__18 #ifndef ___UIMachineSettingsAudio_h___ 19 #define ___UIMachineSettingsAudio_h___ 20 20 21 21 /* GUI includes: */ … … 23 23 #include "UIMachineSettingsAudio.gen.h" 24 24 25 /* Machine settings / Audio page / Data: */ 25 26 /** Machine settings: Audio page data structure. */ 26 27 struct UIDataSettingsMachineAudio 27 28 { 28 /* Constructor:*/29 /** Constructs data. */ 29 30 UIDataSettingsMachineAudio() 30 31 : m_fAudioEnabled(false) 31 32 , m_audioDriverType(KAudioDriverType_Null) 32 , m_audioControllerType(KAudioControllerType_AC97) {} 33 , m_audioControllerType(KAudioControllerType_AC97) 34 {} 33 35 34 /* Helpers: Compare functions/operators:*/36 /** Returns whether the @a other passed data is equal to this one. */ 35 37 bool equal(const UIDataSettingsMachineAudio &other) const 36 38 { 37 return (m_fAudioEnabled == other.m_fAudioEnabled) && 38 (m_audioDriverType == other.m_audioDriverType) && 39 (m_audioControllerType == other.m_audioControllerType); 39 return true 40 && (m_fAudioEnabled == other.m_fAudioEnabled) 41 && (m_audioDriverType == other.m_audioDriverType) 42 && (m_audioControllerType == other.m_audioControllerType) 43 ; 40 44 } 45 46 /** Returns whether the @a other passed data is equal to this one. */ 41 47 bool operator==(const UIDataSettingsMachineAudio &other) const { return equal(other); } 48 /** Returns whether the @a other passed data is different from this one. */ 42 49 bool operator!=(const UIDataSettingsMachineAudio &other) const { return !equal(other); } 43 50 44 /* Variables: */ 45 bool m_fAudioEnabled; 46 KAudioDriverType m_audioDriverType; 47 KAudioControllerType m_audioControllerType; 51 /** Holds whether the audio is enabled. */ 52 bool m_fAudioEnabled; 53 /** Holds the audio driver type. */ 54 KAudioDriverType m_audioDriverType; 55 /** Holds the audio controller type. */ 56 KAudioControllerType m_audioControllerType; 48 57 }; 49 58 typedef UISettingsCache<UIDataSettingsMachineAudio> UISettingsCacheMachineAudio; 50 59 51 /* Machine settings / Audio page: */ 52 class UIMachineSettingsAudio : public UISettingsPageMachine, public Ui::UIMachineSettingsAudio 60 61 /** Machine settings: Audio page. */ 62 class UIMachineSettingsAudio : public UISettingsPageMachine, 63 public Ui::UIMachineSettingsAudio 53 64 { 54 65 Q_OBJECT; … … 97 108 }; 98 109 99 #endif / / __UIMachineSettingsAudio_h__110 #endif /* !___UIMachineSettingsAudio_h___ */ 100 111 -
trunk/src/VBox/Frontends/VirtualBox/src/settings/machine/UIMachineSettingsDisplay.h
r66163 r66176 5 5 6 6 /* 7 * Copyright (C) 2008-201 6Oracle Corporation7 * Copyright (C) 2008-2017 Oracle Corporation 8 8 * 9 9 * This file is part of VirtualBox Open Source Edition (OSE), as … … 16 16 */ 17 17 18 #ifndef __ UIMachineSettingsDisplay_h__19 #define __ UIMachineSettingsDisplay_h__18 #ifndef ___UIMachineSettingsDisplay_h___ 19 #define ___UIMachineSettingsDisplay_h___ 20 20 21 21 /* GUI includes: */ … … 29 29 class UIActionPool; 30 30 31 /* Machine settings / Display page / Data: */ 31 32 /** Machine settings: Display page data structure. */ 32 33 struct UIDataSettingsMachineDisplay 33 34 { 34 /* Constructor:*/35 /** Constructs data. */ 35 36 UIDataSettingsMachineDisplay() 36 37 : m_iCurrentVRAM(0) … … 59 60 {} 60 61 61 /* Functions:*/62 /** Returns whether the @a other passed data is equal to this one. */ 62 63 bool equal(const UIDataSettingsMachineDisplay &other) const 63 64 { 64 return (m_iCurrentVRAM == other.m_iCurrentVRAM) && 65 (m_cGuestScreenCount == other.m_cGuestScreenCount) && 66 (m_dScaleFactor == other.m_dScaleFactor) && 65 return true 66 && (m_iCurrentVRAM == other.m_iCurrentVRAM) 67 && (m_cGuestScreenCount == other.m_cGuestScreenCount) 68 && (m_dScaleFactor == other.m_dScaleFactor) 67 69 #ifdef VBOX_WS_MAC 68 (m_fUseUnscaledHiDPIOutput == other.m_fUseUnscaledHiDPIOutput) &&70 && (m_fUseUnscaledHiDPIOutput == other.m_fUseUnscaledHiDPIOutput) 69 71 #endif /* VBOX_WS_MAC */ 70 (m_f3dAccelerationEnabled == other.m_f3dAccelerationEnabled) && 71 #ifdef VBOX_WITH_VIDEOHWACCEL 72 (m_f2dAccelerationEnabled == other.m_f2dAccelerationEnabled) && 73 #endif /* VBOX_WITH_VIDEOHWACCEL */ 74 (m_fRemoteDisplayServerSupported == other.m_fRemoteDisplayServerSupported) && 75 (m_fRemoteDisplayServerEnabled == other.m_fRemoteDisplayServerEnabled) && 76 (m_strRemoteDisplayPort == other.m_strRemoteDisplayPort) && 77 (m_remoteDisplayAuthType == other.m_remoteDisplayAuthType) && 78 (m_uRemoteDisplayTimeout == other.m_uRemoteDisplayTimeout) && 79 (m_fRemoteDisplayMultiConnAllowed == other.m_fRemoteDisplayMultiConnAllowed) && 80 (m_fVideoCaptureEnabled == other.m_fVideoCaptureEnabled) && 81 (m_strVideoCaptureFilePath == other.m_strVideoCaptureFilePath) && 82 (m_iVideoCaptureFrameWidth == other.m_iVideoCaptureFrameWidth) && 83 (m_iVideoCaptureFrameHeight == other.m_iVideoCaptureFrameHeight) && 84 (m_iVideoCaptureFrameRate == other.m_iVideoCaptureFrameRate) && 85 (m_iVideoCaptureBitRate == other.m_iVideoCaptureBitRate) && 86 (m_screens == other.m_screens); 72 && (m_f3dAccelerationEnabled == other.m_f3dAccelerationEnabled) 73 #ifdef VBOX_WITH_VIDEOHWACCEL 74 && (m_f2dAccelerationEnabled == other.m_f2dAccelerationEnabled) 75 #endif /* VBOX_WITH_VIDEOHWACCEL */ 76 && (m_fRemoteDisplayServerSupported == other.m_fRemoteDisplayServerSupported) 77 && (m_fRemoteDisplayServerEnabled == other.m_fRemoteDisplayServerEnabled) 78 && (m_strRemoteDisplayPort == other.m_strRemoteDisplayPort) 79 && (m_remoteDisplayAuthType == other.m_remoteDisplayAuthType) 80 && (m_uRemoteDisplayTimeout == other.m_uRemoteDisplayTimeout) 81 && (m_fRemoteDisplayMultiConnAllowed == other.m_fRemoteDisplayMultiConnAllowed) 82 && (m_fVideoCaptureEnabled == other.m_fVideoCaptureEnabled) 83 && (m_strVideoCaptureFilePath == other.m_strVideoCaptureFilePath) 84 && (m_iVideoCaptureFrameWidth == other.m_iVideoCaptureFrameWidth) 85 && (m_iVideoCaptureFrameHeight == other.m_iVideoCaptureFrameHeight) 86 && (m_iVideoCaptureFrameRate == other.m_iVideoCaptureFrameRate) 87 && (m_iVideoCaptureBitRate == other.m_iVideoCaptureBitRate) 88 && (m_screens == other.m_screens) 89 ; 87 90 } 88 91 89 /* Operators:*/92 /** Returns whether the @a other passed data is equal to this one. */ 90 93 bool operator==(const UIDataSettingsMachineDisplay &other) const { return equal(other); } 94 /** Returns whether the @a other passed data is different from this one. */ 91 95 bool operator!=(const UIDataSettingsMachineDisplay &other) const { return !equal(other); } 92 96 93 /* Variables: Video stuff: */ 94 int m_iCurrentVRAM; 95 int m_cGuestScreenCount; 96 double m_dScaleFactor; 97 /** Holds the video RAM amount. */ 98 int m_iCurrentVRAM; 99 /** Holds the guest screen count. */ 100 int m_cGuestScreenCount; 101 /** Holds the guest screen scale-factor. */ 102 double m_dScaleFactor; 97 103 #ifdef VBOX_WS_MAC 98 bool m_fUseUnscaledHiDPIOutput; 104 /** Holds whether automatic Retina scaling is disabled. */ 105 bool m_fUseUnscaledHiDPIOutput; 99 106 #endif /* VBOX_WS_MAC */ 100 bool m_f3dAccelerationEnabled; 101 #ifdef VBOX_WITH_VIDEOHWACCEL 102 bool m_f2dAccelerationEnabled; 103 #endif /* VBOX_WITH_VIDEOHWACCEL */ 104 105 /* Variables: Remote Display stuff: */ 106 bool m_fRemoteDisplayServerSupported; 107 bool m_fRemoteDisplayServerEnabled; 108 QString m_strRemoteDisplayPort; 109 KAuthType m_remoteDisplayAuthType; 110 ulong m_uRemoteDisplayTimeout; 111 bool m_fRemoteDisplayMultiConnAllowed; 112 113 /* Variables: Video Capture stuff: */ 107 /** Holds whether the 3D acceleration is enabled. */ 108 bool m_f3dAccelerationEnabled; 109 #ifdef VBOX_WITH_VIDEOHWACCEL 110 /** Holds whether the 2D video acceleration is enabled. */ 111 bool m_f2dAccelerationEnabled; 112 #endif /* VBOX_WITH_VIDEOHWACCEL */ 113 114 /** Holds whether the remote display server is supported. */ 115 bool m_fRemoteDisplayServerSupported; 116 /** Holds whether the remote display server is enabled. */ 117 bool m_fRemoteDisplayServerEnabled; 118 /** Holds the remote display server port. */ 119 QString m_strRemoteDisplayPort; 120 /** Holds the remote display server auth type. */ 121 KAuthType m_remoteDisplayAuthType; 122 /** Holds the remote display server timeout. */ 123 ulong m_uRemoteDisplayTimeout; 124 /** Holds whether the remote display server allows multiple connections. */ 125 bool m_fRemoteDisplayMultiConnAllowed; 126 127 /** Holds whether the video capture is enabled. */ 114 128 bool m_fVideoCaptureEnabled; 129 /** Holds the video capture folder. */ 115 130 QString m_strVideoCaptureFolder; 131 /** Holds the video capture file path. */ 116 132 QString m_strVideoCaptureFilePath; 133 /** Holds the video capture frame width. */ 117 134 int m_iVideoCaptureFrameWidth; 135 /** Holds the video capture frame height. */ 118 136 int m_iVideoCaptureFrameHeight; 137 /** Holds the video capture frame rate. */ 119 138 int m_iVideoCaptureFrameRate; 139 /** Holds the video capture bit rate. */ 120 140 int m_iVideoCaptureBitRate; 141 /** Holds which of the guest screens should be captured. */ 121 142 QVector<BOOL> m_screens; 122 143 }; 123 144 typedef UISettingsCache<UIDataSettingsMachineDisplay> UISettingsCacheMachineDisplay; 124 145 125 /* Machine settings / Display page: */ 146 147 /** Machine settings: Display page. */ 126 148 class UIMachineSettingsDisplay : public UISettingsPageMachine, 127 149 public Ui::UIMachineSettingsDisplay … … 241 263 }; 242 264 243 #endif / / __UIMachineSettingsDisplay_h__244 265 #endif /* !___UIMachineSettingsDisplay_h___ */ 266 -
trunk/src/VBox/Frontends/VirtualBox/src/settings/machine/UIMachineSettingsGeneral.h
r65629 r66176 5 5 6 6 /* 7 * Copyright (C) 2006-201 6Oracle Corporation7 * Copyright (C) 2006-2017 Oracle Corporation 8 8 * 9 9 * This file is part of VirtualBox Open Source Edition (OSE), as … … 24 24 #include "UIAddDiskEncryptionPasswordDialog.h" 25 25 26 /** Machine settings: General page: Data structure. */ 26 27 /** Machine settings: General page data structure. */ 27 28 struct UIDataSettingsMachineGeneral 28 29 { 29 /** Construct or. */30 /** Constructs data. */ 30 31 UIDataSettingsMachineGeneral() 31 32 : m_strName(QString()) … … 43 44 {} 44 45 45 /** Returns whether passed @a other is equal to this. */46 /** Returns whether the @a other passed data is equal to this one. */ 46 47 bool equal(const UIDataSettingsMachineGeneral &other) const 47 48 { 48 return (m_strName == other.m_strName) && 49 (m_strGuestOsTypeId == other.m_strGuestOsTypeId) && 50 (m_strSnapshotsFolder == other.m_strSnapshotsFolder) && 51 (m_strSnapshotsHomeDir == other.m_strSnapshotsHomeDir) && 52 (m_clipboardMode == other.m_clipboardMode) && 53 (m_dndMode == other.m_dndMode) && 54 (m_strDescription == other.m_strDescription) && 55 (m_fEncryptionEnabled == other.m_fEncryptionEnabled) && 56 (m_fEncryptionCipherChanged == other.m_fEncryptionCipherChanged) && 57 (m_fEncryptionPasswordChanged == other.m_fEncryptionPasswordChanged); 49 return true 50 && (m_strName == other.m_strName) 51 && (m_strGuestOsTypeId == other.m_strGuestOsTypeId) 52 && (m_strSnapshotsFolder == other.m_strSnapshotsFolder) 53 && (m_strSnapshotsHomeDir == other.m_strSnapshotsHomeDir) 54 && (m_clipboardMode == other.m_clipboardMode) 55 && (m_dndMode == other.m_dndMode) 56 && (m_strDescription == other.m_strDescription) 57 && (m_fEncryptionEnabled == other.m_fEncryptionEnabled) 58 && (m_fEncryptionCipherChanged == other.m_fEncryptionCipherChanged) 59 && (m_fEncryptionPasswordChanged == other.m_fEncryptionPasswordChanged) 60 ; 58 61 } 59 62 60 /** Operator== implementation which returns whether passed @a other is equal to this. */63 /** Returns whether the @a other passed data is equal to this one. */ 61 64 bool operator==(const UIDataSettingsMachineGeneral &other) const { return equal(other); } 62 /** Operator!= implementation which returns whether passed @a other is differs from this. */65 /** Returns whether the @a other passed data is different from this one. */ 63 66 bool operator!=(const UIDataSettingsMachineGeneral &other) const { return !equal(other); } 64 67 65 68 /** Holds the VM name. */ 66 QString m_strName;69 QString m_strName; 67 70 /** Holds the VM OS type ID. */ 68 QString m_strGuestOsTypeId;71 QString m_strGuestOsTypeId; 69 72 70 73 /** Holds the VM snapshot folder. */ 71 QString m_strSnapshotsFolder;74 QString m_strSnapshotsFolder; 72 75 /** Holds the default VM snapshot folder. */ 73 QString m_strSnapshotsHomeDir;76 QString m_strSnapshotsHomeDir; 74 77 /** Holds the VM shared clipboard mode. */ 75 KClipboardMode m_clipboardMode;78 KClipboardMode m_clipboardMode; 76 79 /** Holds the VM drag&drop mode. */ 77 KDnDMode m_dndMode;80 KDnDMode m_dndMode; 78 81 79 82 /** Holds the VM description. */ 80 QString m_strDescription;83 QString m_strDescription; 81 84 82 85 /** Holds whether the encryption is enabled. */ 83 bool m_fEncryptionEnabled;86 bool m_fEncryptionEnabled; 84 87 /** Holds whether the encryption cipher was changed. */ 85 bool m_fEncryptionCipherChanged;88 bool m_fEncryptionCipherChanged; 86 89 /** Holds whether the encryption password was changed. */ 87 bool m_fEncryptionPasswordChanged;90 bool m_fEncryptionPasswordChanged; 88 91 /** Holds the encryption cipher index. */ 89 int m_iEncryptionCipherIndex;92 int m_iEncryptionCipherIndex; 90 93 /** Holds the encryption password. */ 91 QString m_strEncryptionPassword;94 QString m_strEncryptionPassword; 92 95 /** Holds the encrypted medium ids. */ 93 EncryptedMediumMap m_encryptedMediums;96 EncryptedMediumMap m_encryptedMediums; 94 97 /** Holds the encryption passwords. */ 95 EncryptionPasswordMap m_encryptionPasswords;98 EncryptionPasswordMap m_encryptionPasswords; 96 99 }; 97 100 typedef UISettingsCache<UIDataSettingsMachineGeneral> UISettingsCacheMachineGeneral; 101 98 102 99 103 /** Machine settings: General page. */ … … 192 196 193 197 #endif /* !___UIMachineSettingsGeneral_h___ */ 198 -
trunk/src/VBox/Frontends/VirtualBox/src/settings/machine/UIMachineSettingsInterface.h
r66163 r66176 5 5 6 6 /* 7 * Copyright (C) 2008-201 6Oracle Corporation7 * Copyright (C) 2008-2017 Oracle Corporation 8 8 * 9 9 * This file is part of VirtualBox Open Source Edition (OSE), as … … 26 26 class UIActionPool; 27 27 28 /* Machine settings / User Interface page / Data: */ 28 29 /** Machine settings: User Interface page data structure. */ 29 30 struct UIDataSettingsMachineInterface 30 31 { 31 /* Constructor:*/32 /** Constructs data. */ 32 33 UIDataSettingsMachineInterface() 33 34 : m_fStatusBarEnabled(false) … … 54 55 {} 55 56 56 /* Functions:*/57 /** Returns whether the @a other passed data is equal to this one. */ 57 58 bool equal(const UIDataSettingsMachineInterface &other) const 58 59 { 59 return (m_fStatusBarEnabled == other.m_fStatusBarEnabled) 60 return true 61 && (m_fStatusBarEnabled == other.m_fStatusBarEnabled) 60 62 && (m_statusBarRestrictions == other.m_statusBarRestrictions) 61 63 && (m_statusBarOrder == other.m_statusBarOrder) … … 83 85 } 84 86 85 /* Operators:*/87 /** Returns whether the @a other passed data is equal to this one. */ 86 88 bool operator==(const UIDataSettingsMachineInterface &other) const { return equal(other); } 89 /** Returns whether the @a other passed data is different from this one. */ 87 90 bool operator!=(const UIDataSettingsMachineInterface &other) const { return !equal(other); } 88 91 89 /* Variables: */ 90 bool m_fStatusBarEnabled; 91 QList<IndicatorType> m_statusBarRestrictions; 92 QList<IndicatorType> m_statusBarOrder; 92 /** Holds whether the status-bar is enabled. */ 93 bool m_fStatusBarEnabled; 94 /** Holds the status-bar indicator restrictions. */ 95 QList<IndicatorType> m_statusBarRestrictions; 96 /** Holds the status-bar indicator order. */ 97 QList<IndicatorType> m_statusBarOrder; 98 93 99 #ifndef VBOX_WS_MAC 94 bool m_fMenuBarEnabled; 100 /** Holds whether the menu-bar is enabled. */ 101 bool m_fMenuBarEnabled; 95 102 #endif /* !VBOX_WS_MAC */ 96 UIExtraDataMetaDefs::MenuType m_restrictionsOfMenuBar; 97 UIExtraDataMetaDefs::MenuApplicationActionType m_restrictionsOfMenuApplication; 98 UIExtraDataMetaDefs::RuntimeMenuMachineActionType m_restrictionsOfMenuMachine; 99 UIExtraDataMetaDefs::RuntimeMenuViewActionType m_restrictionsOfMenuView; 100 UIExtraDataMetaDefs::RuntimeMenuInputActionType m_restrictionsOfMenuInput; 101 UIExtraDataMetaDefs::RuntimeMenuDevicesActionType m_restrictionsOfMenuDevices; 103 /** Holds the menu-bar menu restrictions. */ 104 UIExtraDataMetaDefs::MenuType m_restrictionsOfMenuBar; 105 /** Holds the Application menu restrictions. */ 106 UIExtraDataMetaDefs::MenuApplicationActionType m_restrictionsOfMenuApplication; 107 /** Holds the Machine menu restrictions. */ 108 UIExtraDataMetaDefs::RuntimeMenuMachineActionType m_restrictionsOfMenuMachine; 109 /** Holds the View menu restrictions. */ 110 UIExtraDataMetaDefs::RuntimeMenuViewActionType m_restrictionsOfMenuView; 111 /** Holds the Input menu restrictions. */ 112 UIExtraDataMetaDefs::RuntimeMenuInputActionType m_restrictionsOfMenuInput; 113 /** Holds the Devices menu restrictions. */ 114 UIExtraDataMetaDefs::RuntimeMenuDevicesActionType m_restrictionsOfMenuDevices; 102 115 #ifdef VBOX_WITH_DEBUGGER_GUI 103 UIExtraDataMetaDefs::RuntimeMenuDebuggerActionType m_restrictionsOfMenuDebug; 116 /** Holds the Debug menu restrictions. */ 117 UIExtraDataMetaDefs::RuntimeMenuDebuggerActionType m_restrictionsOfMenuDebug; 104 118 #endif /* VBOX_WITH_DEBUGGER_GUI */ 105 119 #ifdef VBOX_WS_MAC 106 UIExtraDataMetaDefs::MenuWindowActionType m_restrictionsOfMenuWindow; 120 /** Holds the Window menu restrictions. */ 121 UIExtraDataMetaDefs::MenuWindowActionType m_restrictionsOfMenuWindow; 107 122 #endif /* VBOX_WS_MAC */ 108 UIExtraDataMetaDefs::MenuHelpActionType m_restrictionsOfMenuHelp; 123 /** Holds the Help menu restrictions. */ 124 UIExtraDataMetaDefs::MenuHelpActionType m_restrictionsOfMenuHelp; 125 109 126 #ifndef VBOX_WS_MAC 110 bool m_fShowMiniToolBar; 111 bool m_fMiniToolBarAtTop; 127 /** Holds whether the mini-toolbar is enabled. */ 128 bool m_fShowMiniToolBar; 129 /** Holds whether the mini-toolbar should be aligned at top of screen. */ 130 bool m_fMiniToolBarAtTop; 112 131 #endif /* !VBOX_WS_MAC */ 113 132 }; 114 133 typedef UISettingsCache<UIDataSettingsMachineInterface> UISettingsCacheMachineInterface; 115 134 116 /* Machine settings / User Interface page: */ 135 136 /** Machine settings: User Interface page. */ 117 137 class UIMachineSettingsInterface : public UISettingsPageMachine, 118 138 public Ui::UIMachineSettingsInterface … … 172 192 }; 173 193 174 #endif // ___UIMachineSettingsInterface_h___ 194 #endif /* !___UIMachineSettingsInterface_h___ */ 195 -
trunk/src/VBox/Frontends/VirtualBox/src/settings/machine/UIMachineSettingsNetwork.h
r66163 r66176 5 5 6 6 /* 7 * Copyright (C) 2008-201 6Oracle Corporation7 * Copyright (C) 2008-2017 Oracle Corporation 8 8 * 9 9 * This file is part of VirtualBox Open Source Edition (OSE), as … … 16 16 */ 17 17 18 #ifndef __ UIMachineSettingsNetwork_h__19 #define __ UIMachineSettingsNetwork_h__20 21 /* Localincludes: */18 #ifndef ___UIMachineSettingsNetwork_h___ 19 #define ___UIMachineSettingsNetwork_h___ 20 21 /* GUI includes: */ 22 22 #include "UISettingsPage.h" 23 23 #include "UIMachineSettingsNetwork.gen.h" … … 28 28 class QITabWidget; 29 29 30 /* Machine settings / Network page / Adapter data: */ 30 31 /** Machine settings: Network Adapter data structure. */ 31 32 struct UIDataSettingsMachineNetworkAdapter 32 33 { 33 /* Default constructor:*/34 /** Constructs data. */ 34 35 UIDataSettingsMachineNetworkAdapter() 35 36 : m_iSlot(0) … … 46 47 , m_strMACAddress(QString()) 47 48 , m_fCableConnected(false) 48 , m_redirects(UIPortForwardingDataList()) {} 49 /* Functions: */ 49 , m_redirects(UIPortForwardingDataList()) 50 {} 51 52 /** Returns whether the @a other passed data is equal to this one. */ 50 53 bool equal(const UIDataSettingsMachineNetworkAdapter &other) const 51 54 { 52 return (m_iSlot == other.m_iSlot) && 53 (m_fAdapterEnabled == other.m_fAdapterEnabled) && 54 (m_adapterType == other.m_adapterType) && 55 (m_attachmentType == other.m_attachmentType) && 56 (m_promiscuousMode == other.m_promiscuousMode) && 57 (m_strBridgedAdapterName == other.m_strBridgedAdapterName) && 58 (m_strInternalNetworkName == other.m_strInternalNetworkName) && 59 (m_strHostInterfaceName == other.m_strHostInterfaceName) && 60 (m_strGenericDriverName == other.m_strGenericDriverName) && 61 (m_strGenericProperties == other.m_strGenericProperties) && 62 (m_strNATNetworkName == other.m_strNATNetworkName) && 63 (m_strMACAddress == other.m_strMACAddress) && 64 (m_fCableConnected == other.m_fCableConnected) && 65 (m_redirects == other.m_redirects); 55 return true 56 && (m_iSlot == other.m_iSlot) 57 && (m_fAdapterEnabled == other.m_fAdapterEnabled) 58 && (m_adapterType == other.m_adapterType) 59 && (m_attachmentType == other.m_attachmentType) 60 && (m_promiscuousMode == other.m_promiscuousMode) 61 && (m_strBridgedAdapterName == other.m_strBridgedAdapterName) 62 && (m_strInternalNetworkName == other.m_strInternalNetworkName) 63 && (m_strHostInterfaceName == other.m_strHostInterfaceName) 64 && (m_strGenericDriverName == other.m_strGenericDriverName) 65 && (m_strGenericProperties == other.m_strGenericProperties) 66 && (m_strNATNetworkName == other.m_strNATNetworkName) 67 && (m_strMACAddress == other.m_strMACAddress) 68 && (m_fCableConnected == other.m_fCableConnected) 69 && (m_redirects == other.m_redirects) 70 ; 66 71 } 67 /* Operators: */ 72 73 /** Returns whether the @a other passed data is equal to this one. */ 68 74 bool operator==(const UIDataSettingsMachineNetworkAdapter &other) const { return equal(other); } 75 /** Returns whether the @a other passed data is different from this one. */ 69 76 bool operator!=(const UIDataSettingsMachineNetworkAdapter &other) const { return !equal(other); } 70 /* Variables: */ 71 int m_iSlot; 72 bool m_fAdapterEnabled; 73 KNetworkAdapterType m_adapterType; 74 KNetworkAttachmentType m_attachmentType; 75 KNetworkAdapterPromiscModePolicy m_promiscuousMode; 76 QString m_strBridgedAdapterName; 77 QString m_strInternalNetworkName; 78 QString m_strHostInterfaceName; 79 QString m_strGenericDriverName; 80 QString m_strGenericProperties; 81 QString m_strNATNetworkName; 82 QString m_strMACAddress; 83 bool m_fCableConnected; 84 UIPortForwardingDataList m_redirects; 77 78 /** Holds the network adapter slot number. */ 79 int m_iSlot; 80 /** Holds whether the network adapter is enabled. */ 81 bool m_fAdapterEnabled; 82 /** Holds the network adapter type. */ 83 KNetworkAdapterType m_adapterType; 84 /** Holds the network attachment type. */ 85 KNetworkAttachmentType m_attachmentType; 86 /** Holds the network promiscuous mode policy. */ 87 KNetworkAdapterPromiscModePolicy m_promiscuousMode; 88 /** Holds the bridged adapter name. */ 89 QString m_strBridgedAdapterName; 90 /** Holds the internal network name. */ 91 QString m_strInternalNetworkName; 92 /** Holds the host interface name. */ 93 QString m_strHostInterfaceName; 94 /** Holds the generic driver name. */ 95 QString m_strGenericDriverName; 96 /** Holds the generic driver properties. */ 97 QString m_strGenericProperties; 98 /** Holds the NAT network name. */ 99 QString m_strNATNetworkName; 100 /** Holds the network adapter MAC address. */ 101 QString m_strMACAddress; 102 /** Holds whether the network adapter is connected. */ 103 bool m_fCableConnected; 104 /** Holds the set of network redirection rules. */ 105 UIPortForwardingDataList m_redirects; 85 106 }; 86 107 typedef UISettingsCache<UIDataSettingsMachineNetworkAdapter> UISettingsCacheMachineNetworkAdapter; 87 108 88 /* Machine settings / Network page / Network data: */ 109 110 /** Machine settings: Network page data structure. */ 89 111 struct UIDataSettingsMachineNetwork 90 112 { 91 /* Default constructor:*/113 /** Constructs data. */ 92 114 UIDataSettingsMachineNetwork() {} 93 /* Operators: */ 94 bool operator==(const UIDataSettingsMachineNetwork& /* other */) const { return true; } 95 bool operator!=(const UIDataSettingsMachineNetwork& /* other */) const { return false; } 115 116 /** Returns whether the @a other passed data is equal to this one. */ 117 bool operator==(const UIDataSettingsMachineNetwork & /* other */) const { return true; } 118 /** Returns whether the @a other passed data is different from this one. */ 119 bool operator!=(const UIDataSettingsMachineNetwork & /* other */) const { return false; } 96 120 }; 97 121 typedef UISettingsCachePool<UIDataSettingsMachineNetwork, UISettingsCacheMachineNetworkAdapter> UISettingsCacheMachineNetwork; 98 122 99 /* Machine settings / Network page / Adapter tab: */ 100 class UIMachineSettingsNetwork : public QIWithRetranslateUI<QWidget>, public Ui::UIMachineSettingsNetwork 123 124 /** Machine settings: Network Adapter tab. */ 125 class UIMachineSettingsNetwork : public QIWithRetranslateUI<QWidget>, 126 public Ui::UIMachineSettingsNetwork 101 127 { 102 128 Q_OBJECT; … … 180 206 }; 181 207 182 /* Machine settings / Network page: */ 208 209 /** Machine settings: Network page. */ 183 210 class UIMachineSettingsNetworkPage : public UISettingsPageMachine 184 211 { … … 264 291 }; 265 292 266 #endif / / __UIMachineSettingsNetwork_h__267 293 #endif /* !___UIMachineSettingsNetwork_h___ */ 294 -
trunk/src/VBox/Frontends/VirtualBox/src/settings/machine/UIMachineSettingsParallel.h
r66163 r66176 5 5 6 6 /* 7 * Copyright (C) 2006-201 6Oracle Corporation7 * Copyright (C) 2006-2017 Oracle Corporation 8 8 * 9 9 * This file is part of VirtualBox Open Source Edition (OSE), as … … 16 16 */ 17 17 18 #ifndef __ UIMachineSettingsParallel_h__19 #define __ UIMachineSettingsParallel_h__18 #ifndef ___UIMachineSettingsParallel_h___ 19 #define ___UIMachineSettingsParallel_h___ 20 20 21 21 /* GUI includes: */ … … 27 27 class QITabWidget; 28 28 29 /* Machine settings / Parallel page / Port data: */ 29 30 /** Machine settings: Parallel Port tab data structure. */ 30 31 struct UIDataSettingsMachineParallelPort 31 32 { 32 /* Default constructor:*/33 /** Constructs data. */ 33 34 UIDataSettingsMachineParallelPort() 34 35 : m_iSlot(-1) … … 36 37 , m_uIRQ(0) 37 38 , m_uIOBase(0) 38 , m_strPath(QString()) {} 39 /* Functions: */ 39 , m_strPath(QString()) 40 {} 41 42 /** Returns whether the @a other passed data is equal to this one. */ 40 43 bool equal(const UIDataSettingsMachineParallelPort &other) const 41 44 { 42 return (m_iSlot == other.m_iSlot) && 43 (m_fPortEnabled == other.m_fPortEnabled) && 44 (m_uIRQ == other.m_uIRQ) && 45 (m_uIOBase == other.m_uIOBase) && 46 (m_strPath == other.m_strPath); 45 return true 46 && (m_iSlot == other.m_iSlot) 47 && (m_fPortEnabled == other.m_fPortEnabled) 48 && (m_uIRQ == other.m_uIRQ) 49 && (m_uIOBase == other.m_uIOBase) 50 && (m_strPath == other.m_strPath) 51 ; 47 52 } 48 /* Operators: */ 53 54 /** Returns whether the @a other passed data is equal to this one. */ 49 55 bool operator==(const UIDataSettingsMachineParallelPort &other) const { return equal(other); } 56 /** Returns whether the @a other passed data is different from this one. */ 50 57 bool operator!=(const UIDataSettingsMachineParallelPort &other) const { return !equal(other); } 51 /* Variables: */ 52 int m_iSlot; 53 bool m_fPortEnabled; 54 ulong m_uIRQ; 55 ulong m_uIOBase; 56 QString m_strPath; 58 59 /** Holds the parallel port slot number. */ 60 int m_iSlot; 61 /** Holds whether the parallel port is enabled. */ 62 bool m_fPortEnabled; 63 /** Holds the parallel port IRQ. */ 64 ulong m_uIRQ; 65 /** Holds the parallel port IO base. */ 66 ulong m_uIOBase; 67 /** Holds the parallel port path. */ 68 QString m_strPath; 57 69 }; 58 70 typedef UISettingsCache<UIDataSettingsMachineParallelPort> UISettingsCacheMachineParallelPort; 59 71 60 /* Machine settings / Parallel page / Ports data: */ 72 73 /** Machine settings: Parallel page data structure. */ 61 74 struct UIDataSettingsMachineParallel 62 75 { 63 /* Default constructor:*/76 /** Constructs data. */ 64 77 UIDataSettingsMachineParallel() {} 65 /* Operators: */ 66 bool operator==(const UIDataSettingsMachineParallel& /* other */) const { return true; } 67 bool operator!=(const UIDataSettingsMachineParallel& /* other */) const { return false; } 78 79 /** Returns whether the @a other passed data is equal to this one. */ 80 bool operator==(const UIDataSettingsMachineParallel & /* other */) const { return true; } 81 /** Returns whether the @a other passed data is different from this one. */ 82 bool operator!=(const UIDataSettingsMachineParallel & /* other */) const { return false; } 68 83 }; 69 84 typedef UISettingsCachePool<UIDataSettingsMachineParallel, UISettingsCacheMachineParallelPort> UISettingsCacheMachineParallel; 70 85 86 87 /** Machine settings: Parallel Port tab. */ 71 88 class UIMachineSettingsParallel : public QIWithRetranslateUI<QWidget>, 72 public Ui::UIMachineSettingsParallel89 public Ui::UIMachineSettingsParallel 73 90 { 74 91 Q_OBJECT; … … 106 123 }; 107 124 108 /* Machine settings / Parallel page: */ 125 126 /** Machine settings: Parallel page. */ 109 127 class UIMachineSettingsParallelPage : public UISettingsPageMachine 110 128 { … … 150 168 }; 151 169 152 #endif / / __UIMachineSettingsParallel_h__170 #endif /* !___UIMachineSettingsParallel_h___ */ 153 171 -
trunk/src/VBox/Frontends/VirtualBox/src/settings/machine/UIMachineSettingsSF.h
r66163 r66176 5 5 6 6 /* 7 * Copyright (C) 2008-201 6Oracle Corporation7 * Copyright (C) 2008-2017 Oracle Corporation 8 8 * 9 9 * This file is part of VirtualBox Open Source Edition (OSE), as … … 16 16 */ 17 17 18 #ifndef __ UIMachineSettingsSF_h__19 #define __ UIMachineSettingsSF_h__18 #ifndef ___UIMachineSettingsSF_h___ 19 #define ___UIMachineSettingsSF_h___ 20 20 21 21 /* GUI includes: */ … … 33 33 typedef QList <SFolderName> SFoldersNameList; 34 34 35 /* Machine settings / Shared Folders page / Shared Folder data: */ 35 36 /** Machine settings: Shared Folder data structure. */ 36 37 struct UIDataSettingsSharedFolder 37 38 { 38 /* Default constructor:*/39 /** Constructs data. */ 39 40 UIDataSettingsSharedFolder() 40 41 : m_type(MachineType) … … 42 43 , m_strHostPath(QString()) 43 44 , m_fAutoMount(false) 44 , m_fWritable(false) {} 45 /* Functions: */ 45 , m_fWritable(false) 46 {} 47 48 /** Returns whether the @a other passed data is equal to this one. */ 46 49 bool equal(const UIDataSettingsSharedFolder &other) const 47 50 { 48 return (m_type == other.m_type) && 49 (m_strName == other.m_strName) && 50 (m_strHostPath == other.m_strHostPath) && 51 (m_fAutoMount == other.m_fAutoMount) && 52 (m_fWritable == other.m_fWritable); 51 return true 52 && (m_type == other.m_type) 53 && (m_strName == other.m_strName) 54 && (m_strHostPath == other.m_strHostPath) 55 && (m_fAutoMount == other.m_fAutoMount) 56 && (m_fWritable == other.m_fWritable) 57 ; 53 58 } 54 /* Operators: */ 59 60 /** Returns whether the @a other passed data is equal to this one. */ 55 61 bool operator==(const UIDataSettingsSharedFolder &other) const { return equal(other); } 62 /** Returns whether the @a other passed data is different from this one. */ 56 63 bool operator!=(const UIDataSettingsSharedFolder &other) const { return !equal(other); } 57 /* Variables: */ 58 UISharedFolderType m_type; 59 QString m_strName; 60 QString m_strHostPath; 61 bool m_fAutoMount; 62 bool m_fWritable; 64 65 /** Holds the shared folder type. */ 66 UISharedFolderType m_type; 67 /** Holds the shared folder name. */ 68 QString m_strName; 69 /** Holds the shared folder path. */ 70 QString m_strHostPath; 71 /** Holds whether the shared folder should be auto-mounted at startup. */ 72 bool m_fAutoMount; 73 /** Holds whether the shared folder should be writeable. */ 74 bool m_fWritable; 63 75 }; 64 76 typedef UISettingsCache<UIDataSettingsSharedFolder> UISettingsCacheSharedFolder; 65 77 66 /* Machine settings / Shared Folders page / Shared Folders data: */ 78 79 /** Machine settings: Shared Folders page data structure. */ 67 80 struct UIDataSettingsSharedFolders 68 81 { 69 /* Default constructor:*/82 /** Constructs data. */ 70 83 UIDataSettingsSharedFolders() {} 71 /* Operators: */ 72 bool operator==(const UIDataSettingsSharedFolders& /* other */) const { return true; } 73 bool operator!=(const UIDataSettingsSharedFolders& /* other */) const { return false; } 84 85 /** Returns whether the @a other passed data is equal to this one. */ 86 bool operator==(const UIDataSettingsSharedFolders & /* other */) const { return true; } 87 /** Returns whether the @a other passed data is different from this one. */ 88 bool operator!=(const UIDataSettingsSharedFolders & /* other */) const { return false; } 74 89 }; 75 90 typedef UISettingsCachePool<UIDataSettingsSharedFolders, UISettingsCacheSharedFolder> UISettingsCacheSharedFolders; 76 91 92 93 /** Machine settings: Shared Folders page. */ 77 94 class UIMachineSettingsSF : public UISettingsPageMachine, 78 public Ui::UIMachineSettingsSF95 public Ui::UIMachineSettingsSF 79 96 { 80 97 Q_OBJECT; … … 157 174 }; 158 175 159 #endif / / __UIMachineSettingsSF_h__176 #endif /* !___UIMachineSettingsSF_h___ */ 160 177 -
trunk/src/VBox/Frontends/VirtualBox/src/settings/machine/UIMachineSettingsSerial.h
r66163 r66176 5 5 6 6 /* 7 * Copyright (C) 2006-201 6Oracle Corporation7 * Copyright (C) 2006-2017 Oracle Corporation 8 8 * 9 9 * This file is part of VirtualBox Open Source Edition (OSE), as … … 16 16 */ 17 17 18 #ifndef __ UIMachineSettingsSerial_h__19 #define __ UIMachineSettingsSerial_h__18 #ifndef ___UIMachineSettingsSerial_h___ 19 #define ___UIMachineSettingsSerial_h___ 20 20 21 21 /* GUI includes: */ … … 23 23 #include "UIMachineSettingsSerial.gen.h" 24 24 25 /* Forward declarations */25 /* Forward declarations: */ 26 26 class UIMachineSettingsSerialPage; 27 27 class QITabWidget; 28 28 29 /* Machine settings / Serial page / Port data: */ 29 30 /** Machine settings: Serial Port tab data structure. */ 30 31 struct UIDataSettingsMachineSerialPort 31 32 { 32 /* Default constructor:*/33 /** Constructs data. */ 33 34 UIDataSettingsMachineSerialPort() 34 35 : m_iSlot(-1) … … 38 39 , m_hostMode(KPortMode_Disconnected) 39 40 , m_fServer(false) 40 , m_strPath(QString()) {} 41 /* Functions: */ 41 , m_strPath(QString()) 42 {} 43 44 /** Returns whether the @a other passed data is equal to this one. */ 42 45 bool equal(const UIDataSettingsMachineSerialPort &other) const 43 46 { 44 return (m_iSlot == other.m_iSlot) && 45 (m_fPortEnabled == other.m_fPortEnabled) && 46 (m_uIRQ == other.m_uIRQ) && 47 (m_uIOBase == other.m_uIOBase) && 48 (m_hostMode == other.m_hostMode) && 49 (m_fServer == other.m_fServer) && 50 (m_strPath == other.m_strPath); 47 return true 48 && (m_iSlot == other.m_iSlot) 49 && (m_fPortEnabled == other.m_fPortEnabled) 50 && (m_uIRQ == other.m_uIRQ) 51 && (m_uIOBase == other.m_uIOBase) 52 && (m_hostMode == other.m_hostMode) 53 && (m_fServer == other.m_fServer) 54 && (m_strPath == other.m_strPath) 55 ; 51 56 } 52 /* Operators: */ 57 58 /** Returns whether the @a other passed data is equal to this one. */ 53 59 bool operator==(const UIDataSettingsMachineSerialPort &other) const { return equal(other); } 60 /** Returns whether the @a other passed data is different from this one. */ 54 61 bool operator!=(const UIDataSettingsMachineSerialPort &other) const { return !equal(other); } 55 /* Variables: */ 56 int m_iSlot; 57 bool m_fPortEnabled; 58 ulong m_uIRQ; 59 ulong m_uIOBase; 60 KPortMode m_hostMode; 61 bool m_fServer; 62 QString m_strPath; 62 63 /** Holds the serial port slot number. */ 64 int m_iSlot; 65 /** Holds whether the serial port is enabled. */ 66 bool m_fPortEnabled; 67 /** Holds the serial port IRQ. */ 68 ulong m_uIRQ; 69 /** Holds the serial port IO base. */ 70 ulong m_uIOBase; 71 /** Holds the serial port host mode. */ 72 KPortMode m_hostMode; 73 /** Holds whether the serial port is server. */ 74 bool m_fServer; 75 /** Holds the serial port path. */ 76 QString m_strPath; 63 77 }; 64 78 typedef UISettingsCache<UIDataSettingsMachineSerialPort> UISettingsCacheMachineSerialPort; 65 79 66 /* Machine settings / Serial page / Ports data: */ 80 81 /** Machine settings: Serial page data structure. */ 67 82 struct UIDataSettingsMachineSerial 68 83 { 69 /* Default constructor:*/84 /** Constructs data. */ 70 85 UIDataSettingsMachineSerial() {} 71 /* Operators: */ 72 bool operator==(const UIDataSettingsMachineSerial& /* other */) const { return true; } 73 bool operator!=(const UIDataSettingsMachineSerial& /* other */) const { return false; } 86 87 /** Returns whether the @a other passed data is equal to this one. */ 88 bool operator==(const UIDataSettingsMachineSerial & /* other */) const { return true; } 89 /** Returns whether the @a other passed data is different from this one. */ 90 bool operator!=(const UIDataSettingsMachineSerial & /* other */) const { return false; } 74 91 }; 75 92 typedef UISettingsCachePool<UIDataSettingsMachineSerial, UISettingsCacheMachineSerialPort> UISettingsCacheMachineSerial; 76 93 94 95 /** Machine settings: Serial Port tab. */ 77 96 class UIMachineSettingsSerial : public QIWithRetranslateUI<QWidget>, 78 public Ui::UIMachineSettingsSerial97 public Ui::UIMachineSettingsSerial 79 98 { 80 99 Q_OBJECT; … … 113 132 }; 114 133 115 /* Machine settings / Serial page: */ 134 135 /** Machine settings: Serial page. */ 116 136 class UIMachineSettingsSerialPage : public UISettingsPageMachine 117 137 { … … 157 177 }; 158 178 159 #endif / / __UIMachineSettingsSerial_h__179 #endif /* !___UIMachineSettingsSerial_h___ */ 160 180 -
trunk/src/VBox/Frontends/VirtualBox/src/settings/machine/UIMachineSettingsStorage.h
r66163 r66176 5 5 6 6 /* 7 * Copyright (C) 2006-201 6Oracle Corporation7 * Copyright (C) 2006-2017 Oracle Corporation 8 8 * 9 9 * This file is part of VirtualBox Open Source Edition (OSE), as … … 16 16 */ 17 17 18 #ifndef __ UIMachineSettingsStorage_h__19 #define __ UIMachineSettingsStorage_h__18 #ifndef ___UIMachineSettingsStorage_h___ 19 #define ___UIMachineSettingsStorage_h___ 20 20 21 21 /* Qt includes: */ … … 588 588 }; 589 589 590 /* Machine settings / Storage page / Storage attachment data: */ 590 591 /** Machine settings: Storage Attachment data structure. */ 591 592 struct UIDataSettingsMachineStorageAttachment 592 593 { 593 /* Default constructor:*/594 /** Constructs data. */ 594 595 UIDataSettingsMachineStorageAttachment() 595 596 : m_attachmentType(KDeviceType_Null) … … 602 603 , m_fAttachmentHotPluggable(false) 603 604 {} 604 /* Functions: */ 605 606 /** Returns whether the @a other passed data is equal to this one. */ 605 607 bool equal(const UIDataSettingsMachineStorageAttachment &other) const 606 608 { 607 return (m_attachmentType == other.m_attachmentType) && 608 (m_iAttachmentPort == other.m_iAttachmentPort) && 609 (m_iAttachmentDevice == other.m_iAttachmentDevice) && 610 (m_strAttachmentMediumId == other.m_strAttachmentMediumId) && 611 (m_fAttachmentPassthrough == other.m_fAttachmentPassthrough) && 612 (m_fAttachmentTempEject == other.m_fAttachmentTempEject) && 613 (m_fAttachmentNonRotational == other.m_fAttachmentNonRotational) && 614 (m_fAttachmentHotPluggable == other.m_fAttachmentHotPluggable); 609 return true 610 && (m_attachmentType == other.m_attachmentType) 611 && (m_iAttachmentPort == other.m_iAttachmentPort) 612 && (m_iAttachmentDevice == other.m_iAttachmentDevice) 613 && (m_strAttachmentMediumId == other.m_strAttachmentMediumId) 614 && (m_fAttachmentPassthrough == other.m_fAttachmentPassthrough) 615 && (m_fAttachmentTempEject == other.m_fAttachmentTempEject) 616 && (m_fAttachmentNonRotational == other.m_fAttachmentNonRotational) 617 && (m_fAttachmentHotPluggable == other.m_fAttachmentHotPluggable) 618 ; 615 619 } 616 /* Operators: */ 620 621 /** Returns whether the @a other passed data is equal to this one. */ 617 622 bool operator==(const UIDataSettingsMachineStorageAttachment &other) const { return equal(other); } 623 /** Returns whether the @a other passed data is different from this one. */ 618 624 bool operator!=(const UIDataSettingsMachineStorageAttachment &other) const { return !equal(other); } 619 /* Variables: */ 620 KDeviceType m_attachmentType; 621 LONG m_iAttachmentPort; 622 LONG m_iAttachmentDevice; 623 QString m_strAttachmentMediumId; 624 bool m_fAttachmentPassthrough; 625 bool m_fAttachmentTempEject; 626 bool m_fAttachmentNonRotational; 627 bool m_fAttachmentHotPluggable; 625 626 /** Holds the attachment type. */ 627 KDeviceType m_attachmentType; 628 /** Holds the attachment port. */ 629 LONG m_iAttachmentPort; 630 /** Holds the attachment device. */ 631 LONG m_iAttachmentDevice; 632 /** Holds the attachment medium ID. */ 633 QString m_strAttachmentMediumId; 634 /** Holds whether the attachment being passed through. */ 635 bool m_fAttachmentPassthrough; 636 /** Holds whether the attachment being temporarily eject. */ 637 bool m_fAttachmentTempEject; 638 /** Holds whether the attachment is solid-state. */ 639 bool m_fAttachmentNonRotational; 640 /** Holds whether the attachment is hot-pluggable. */ 641 bool m_fAttachmentHotPluggable; 628 642 }; 629 643 typedef UISettingsCache<UIDataSettingsMachineStorageAttachment> UISettingsCacheMachineStorageAttachment; 630 644 631 /* Machine settings / Storage page / Storage controller data: */ 645 646 /** Machine settings: Storage Controller data structure. */ 632 647 struct UIDataSettingsMachineStorageController 633 648 { 634 /* Default constructor:*/649 /** Constructs data. */ 635 650 UIDataSettingsMachineStorageController() 636 651 : m_strControllerName(QString()) … … 638 653 , m_controllerType(KStorageControllerType_Null) 639 654 , m_uPortCount(0) 640 , m_fUseHostIOCache(false) {} 641 /* Functions: */ 655 , m_fUseHostIOCache(false) 656 {} 657 658 /** Returns whether the @a other passed data is equal to this one. */ 642 659 bool equal(const UIDataSettingsMachineStorageController &other) const 643 660 { 644 return (m_strControllerName == other.m_strControllerName) && 645 (m_controllerBus == other.m_controllerBus) && 646 (m_controllerType == other.m_controllerType) && 647 (m_uPortCount == other.m_uPortCount) && 648 (m_fUseHostIOCache == other.m_fUseHostIOCache); 661 return true 662 && (m_strControllerName == other.m_strControllerName) 663 && (m_controllerBus == other.m_controllerBus) 664 && (m_controllerType == other.m_controllerType) 665 && (m_uPortCount == other.m_uPortCount) 666 && (m_fUseHostIOCache == other.m_fUseHostIOCache) 667 ; 649 668 } 650 /* Operators: */ 669 670 /** Returns whether the @a other passed data is equal to this one. */ 651 671 bool operator==(const UIDataSettingsMachineStorageController &other) const { return equal(other); } 672 /** Returns whether the @a other passed data is different from this one. */ 652 673 bool operator!=(const UIDataSettingsMachineStorageController &other) const { return !equal(other); } 653 /* Variables: */ 654 QString m_strControllerName; 655 KStorageBus m_controllerBus; 656 KStorageControllerType m_controllerType; 657 uint m_uPortCount; 658 bool m_fUseHostIOCache; 674 675 /** Holds the controller name. */ 676 QString m_strControllerName; 677 /** Holds the controller bus. */ 678 KStorageBus m_controllerBus; 679 /** Holds the controller type. */ 680 KStorageControllerType m_controllerType; 681 /** Holds the controller port count. */ 682 uint m_uPortCount; 683 /** Holds whether the controller uses host IO cache. */ 684 bool m_fUseHostIOCache; 659 685 }; 660 686 typedef UISettingsCachePool<UIDataSettingsMachineStorageController, UISettingsCacheMachineStorageAttachment> UISettingsCacheMachineStorageController; 661 687 662 /* Machine settings / Storage page / Storage data: */ 688 689 /** Machine settings: Storage page data structure. */ 663 690 struct UIDataSettingsMachineStorage 664 691 { 665 /* Default constructor:*/692 /** Constructs data. */ 666 693 UIDataSettingsMachineStorage() {} 667 /* Operators: */ 694 695 /** Returns whether the @a other passed data is equal to this one. */ 668 696 bool operator==(const UIDataSettingsMachineStorage& /* other */) const { return true; } 697 /** Returns whether the @a other passed data is different from this one. */ 669 698 bool operator!=(const UIDataSettingsMachineStorage& /* other */) const { return false; } 670 699 }; 671 700 typedef UISettingsCachePool<UIDataSettingsMachineStorage, UISettingsCacheMachineStorageController> UISettingsCacheMachineStorage; 672 701 673 /* Machine settings / Storage page: */ 702 703 /** Machine settings: Storage page. */ 674 704 class UIMachineSettingsStorage : public UISettingsPageMachine, 675 public Ui::UIMachineSettingsStorage705 public Ui::UIMachineSettingsStorage 676 706 { 677 707 Q_OBJECT; … … 831 861 }; 832 862 833 #endif / / __UIMachineSettingsStorage_h__834 863 #endif /* !___UIMachineSettingsStorage_h___ */ 864 -
trunk/src/VBox/Frontends/VirtualBox/src/settings/machine/UIMachineSettingsSystem.h
r66163 r66176 5 5 6 6 /* 7 * Copyright (C) 2008-201 6Oracle Corporation7 * Copyright (C) 2008-2017 Oracle Corporation 8 8 * 9 9 * This file is part of VirtualBox Open Source Edition (OSE), as … … 16 16 */ 17 17 18 #ifndef __ UIMachineSettingsSystem_h__19 #define __ UIMachineSettingsSystem_h__18 #ifndef ___UIMachineSettingsSystem_h___ 19 #define ___UIMachineSettingsSystem_h___ 20 20 21 21 /* GUI includes: */ … … 23 23 #include "UIMachineSettingsSystem.gen.h" 24 24 25 /* Machine settings / System page / Data / Boot item: */ 25 26 /** Machine settings: System Boot data structure. */ 26 27 struct UIBootItemData 27 28 { 28 /* Constructor: */ 29 UIBootItemData() : m_type(KDeviceType_Null), m_fEnabled(false) {} 30 31 /* Operator==: */ 29 /** Constructs data. */ 30 UIBootItemData() 31 : m_type(KDeviceType_Null) 32 , m_fEnabled(false) 33 {} 34 35 /** Returns whether the @a other passed data is equal to this one. */ 32 36 bool operator==(const UIBootItemData &other) const 33 37 { 34 return (m_type == other.m_type) && 35 (m_fEnabled == other.m_fEnabled); 38 return true 39 && (m_type == other.m_type) 40 && (m_fEnabled == other.m_fEnabled) 41 ; 36 42 } 37 43 38 /* Variables:*/44 /** Holds the boot device type. */ 39 45 KDeviceType m_type; 46 /** Holds whether the boot device enabled. */ 40 47 bool m_fEnabled; 41 48 }; 42 49 43 /* Machine settings / System page / Data: */ 50 51 /** Machine settings: System page data structure. */ 44 52 struct UIDataSettingsMachineSystem 45 53 { 46 /* Constructor:*/54 /** Constructs data. */ 47 55 UIDataSettingsMachineSystem() 48 56 /* Support flags: */ … … 67 75 {} 68 76 69 /* Functions:*/77 /** Returns whether the @a other passed data is equal to this one. */ 70 78 bool equal(const UIDataSettingsMachineSystem &other) const 71 79 { 72 return /* Support flags: */ 73 (m_fSupportedPAE == other.m_fSupportedPAE) && 74 (m_fSupportedHwVirtEx == other.m_fSupportedHwVirtEx) && 80 return true 81 /* Support flags: */ 82 && (m_fSupportedPAE == other.m_fSupportedPAE) 83 && (m_fSupportedHwVirtEx == other.m_fSupportedHwVirtEx) 75 84 /* Motherboard data: */ 76 (m_iMemorySize == other.m_iMemorySize) &&77 (m_bootItems == other.m_bootItems) &&78 (m_chipsetType == other.m_chipsetType) &&79 (m_pointingHIDType == other.m_pointingHIDType) &&80 (m_fEnabledIoApic == other.m_fEnabledIoApic) &&81 (m_fEnabledEFI == other.m_fEnabledEFI) &&82 (m_fEnabledUTC == other.m_fEnabledUTC) &&85 && (m_iMemorySize == other.m_iMemorySize) 86 && (m_bootItems == other.m_bootItems) 87 && (m_chipsetType == other.m_chipsetType) 88 && (m_pointingHIDType == other.m_pointingHIDType) 89 && (m_fEnabledIoApic == other.m_fEnabledIoApic) 90 && (m_fEnabledEFI == other.m_fEnabledEFI) 91 && (m_fEnabledUTC == other.m_fEnabledUTC) 83 92 /* CPU data: */ 84 (m_cCPUCount == other.m_cCPUCount) && 85 (m_iCPUExecCap == other.m_iCPUExecCap) && 86 (m_fEnabledPAE == other.m_fEnabledPAE) && 87 /* Acceleration data: */ 88 (m_paravirtProvider == other.m_paravirtProvider) && 89 (m_fEnabledHwVirtEx == other.m_fEnabledHwVirtEx) && 90 (m_fEnabledNestedPaging == other.m_fEnabledNestedPaging); 93 && (m_cCPUCount == other.m_cCPUCount) 94 && (m_iCPUExecCap == other.m_iCPUExecCap) 95 && (m_fEnabledPAE == other.m_fEnabledPAE) 96 /* Acceleration data: */ 97 && (m_paravirtProvider == other.m_paravirtProvider) 98 && (m_fEnabledHwVirtEx == other.m_fEnabledHwVirtEx) 99 && (m_fEnabledNestedPaging == other.m_fEnabledNestedPaging) 100 ; 91 101 } 92 102 93 /* Operators:*/103 /** Returns whether the @a other passed data is equal to this one. */ 94 104 bool operator==(const UIDataSettingsMachineSystem &other) const { return equal(other); } 105 /** Returns whether the @a other passed data is different from this one. */ 95 106 bool operator!=(const UIDataSettingsMachineSystem &other) const { return !equal(other); } 96 107 97 /* Variables: Support flags: */ 98 bool m_fSupportedPAE; 99 bool m_fSupportedHwVirtEx; 100 101 /* Variables: Motherboard data: */ 102 int m_iMemorySize; 103 QList<UIBootItemData> m_bootItems; 104 KChipsetType m_chipsetType; 105 KPointingHIDType m_pointingHIDType; 106 bool m_fEnabledIoApic; 107 bool m_fEnabledEFI; 108 bool m_fEnabledUTC; 109 /* Variables: CPU data: */ 110 int m_cCPUCount; 111 int m_iCPUExecCap; 112 bool m_fEnabledPAE; 113 /* Variables: Acceleration data: */ 114 KParavirtProvider m_paravirtProvider; 115 bool m_fEnabledHwVirtEx; 116 bool m_fEnabledNestedPaging; 108 /** Holds whether the PAE is supported. */ 109 bool m_fSupportedPAE; 110 /** Holds whether the HW Virt Ex is supported. */ 111 bool m_fSupportedHwVirtEx; 112 113 /** Holds the RAM size. */ 114 int m_iMemorySize; 115 /** Holds the boot items. */ 116 QList<UIBootItemData> m_bootItems; 117 /** Holds the chipset type. */ 118 KChipsetType m_chipsetType; 119 /** Holds the pointing HID type. */ 120 KPointingHIDType m_pointingHIDType; 121 /** Holds whether the IO APIC is enabled. */ 122 bool m_fEnabledIoApic; 123 /** Holds whether the EFI is enabled. */ 124 bool m_fEnabledEFI; 125 /** Holds whether the UTC is enabled. */ 126 bool m_fEnabledUTC; 127 128 /** Holds the CPU count. */ 129 int m_cCPUCount; 130 /** Holds the CPU execution cap. */ 131 int m_iCPUExecCap; 132 /** Holds whether the PAE is enabled. */ 133 bool m_fEnabledPAE; 134 135 /** Holds the paravirtualization provider. */ 136 KParavirtProvider m_paravirtProvider; 137 /** Holds whether the HW Virt Ex is enabled. */ 138 bool m_fEnabledHwVirtEx; 139 /** Holds whether the Nested Paging is enabled. */ 140 bool m_fEnabledNestedPaging; 117 141 }; 118 142 typedef UISettingsCache<UIDataSettingsMachineSystem> UISettingsCacheMachineSystem; 119 143 120 /* Machine settings / System page: */ 144 145 /** Machine settings: System page. */ 121 146 class UIMachineSettingsSystem : public UISettingsPageMachine, 122 147 public Ui::UIMachineSettingsSystem … … 221 246 }; 222 247 223 #endif // __UIMachineSettingsSystem_h__ 248 #endif /* !___UIMachineSettingsSystem_h___ */ 249 -
trunk/src/VBox/Frontends/VirtualBox/src/settings/machine/UIMachineSettingsUSB.h
r66163 r66176 5 5 6 6 /* 7 * Copyright (C) 2006-201 6Oracle Corporation7 * Copyright (C) 2006-2017 Oracle Corporation 8 8 * 9 9 * This file is part of VirtualBox Open Source Edition (OSE), as … … 16 16 */ 17 17 18 #ifndef __ UIMachineSettingsUSB_h__19 #define __ UIMachineSettingsUSB_h__18 #ifndef ___UIMachineSettingsUSB_h___ 19 #define ___UIMachineSettingsUSB_h___ 20 20 21 21 /* GUI includes: */ … … 27 27 class UIToolBar; 28 28 29 /* Common settings / USB page / USB filter data: */ 29 30 /** Machine settings: USB filter data structure. */ 30 31 struct UIDataSettingsMachineUSBFilter 31 32 { 32 /* Default constructor:*/33 /** Constructs data. */ 33 34 UIDataSettingsMachineUSBFilter() 34 35 : m_fActive(false) … … 44 45 , m_action(KUSBDeviceFilterAction_Null) 45 46 , m_fHostUSBDevice(false) 46 , m_hostUSBDeviceState(KUSBDeviceState_NotSupported) {} 47 /* Functions: */ 47 , m_hostUSBDeviceState(KUSBDeviceState_NotSupported) 48 {} 49 50 /** Returns whether the @a other passed data is equal to this one. */ 48 51 bool equal(const UIDataSettingsMachineUSBFilter &other) const 49 52 { 50 return (m_fActive == other.m_fActive) && 51 (m_strName == other.m_strName) && 52 (m_strVendorId == other.m_strVendorId) && 53 (m_strProductId == other.m_strProductId) && 54 (m_strRevision == other.m_strRevision) && 55 (m_strManufacturer == other.m_strManufacturer) && 56 (m_strProduct == other.m_strProduct) && 57 (m_strSerialNumber == other.m_strSerialNumber) && 58 (m_strPort == other.m_strPort) && 59 (m_strRemote == other.m_strRemote) && 60 (m_action == other.m_action) && 61 (m_hostUSBDeviceState == other.m_hostUSBDeviceState); 53 return true 54 && (m_fActive == other.m_fActive) 55 && (m_strName == other.m_strName) 56 && (m_strVendorId == other.m_strVendorId) 57 && (m_strProductId == other.m_strProductId) 58 && (m_strRevision == other.m_strRevision) 59 && (m_strManufacturer == other.m_strManufacturer) 60 && (m_strProduct == other.m_strProduct) 61 && (m_strSerialNumber == other.m_strSerialNumber) 62 && (m_strPort == other.m_strPort) 63 && (m_strRemote == other.m_strRemote) 64 && (m_action == other.m_action) 65 && (m_hostUSBDeviceState == other.m_hostUSBDeviceState) 66 ; 62 67 } 63 /* Operators: */ 68 69 /** Returns whether the @a other passed data is equal to this one. */ 64 70 bool operator==(const UIDataSettingsMachineUSBFilter &other) const { return equal(other); } 71 /** Returns whether the @a other passed data is different from this one. */ 65 72 bool operator!=(const UIDataSettingsMachineUSBFilter &other) const { return !equal(other); } 66 /* Common variables: */ 67 bool m_fActive; 68 QString m_strName; 69 QString m_strVendorId; 70 QString m_strProductId; 71 QString m_strRevision; 72 QString m_strManufacturer; 73 QString m_strProduct; 74 QString m_strSerialNumber; 75 QString m_strPort; 76 QString m_strRemote; 77 /* Host only variables: */ 78 KUSBDeviceFilterAction m_action; 79 bool m_fHostUSBDevice; 80 KUSBDeviceState m_hostUSBDeviceState; 73 74 /** Holds whether the USB filter is enabled. */ 75 bool m_fActive; 76 /** Holds the USB filter name. */ 77 QString m_strName; 78 /** Holds the USB filter vendor ID. */ 79 QString m_strVendorId; 80 /** Holds the USB filter product ID. */ 81 QString m_strProductId; 82 /** Holds the USB filter revision. */ 83 QString m_strRevision; 84 /** Holds the USB filter manufacturer. */ 85 QString m_strManufacturer; 86 /** Holds the USB filter product. */ 87 QString m_strProduct; 88 /** Holds the USB filter serial number. */ 89 QString m_strSerialNumber; 90 /** Holds the USB filter port. */ 91 QString m_strPort; 92 /** Holds the USB filter remote. */ 93 QString m_strRemote; 94 95 /** Holds the USB filter action. */ 96 KUSBDeviceFilterAction m_action; 97 /** Holds whether the USB filter is host USB device. */ 98 bool m_fHostUSBDevice; 99 /** Holds the USB device state. */ 100 KUSBDeviceState m_hostUSBDeviceState; 81 101 }; 82 102 typedef UISettingsCache<UIDataSettingsMachineUSBFilter> UISettingsCacheMachineUSBFilter; 83 103 84 /* Common settings / USB page / USB data: */ 104 105 /** Machine settings: USB page data structure. */ 85 106 struct UIDataSettingsMachineUSB 86 107 { 87 /* Default constructor:*/108 /** Constructs data. */ 88 109 UIDataSettingsMachineUSB() 89 110 : m_fUSBEnabled(false) 90 , m_USBControllerType(KUSBControllerType_Null) {} 91 /* Functions: */ 111 , m_USBControllerType(KUSBControllerType_Null) 112 {} 113 114 /** Returns whether the @a other passed data is equal to this one. */ 92 115 bool equal(const UIDataSettingsMachineUSB &other) const 93 116 { 94 return (m_fUSBEnabled == other.m_fUSBEnabled) && 95 (m_USBControllerType == other.m_USBControllerType); 117 return true 118 && (m_fUSBEnabled == other.m_fUSBEnabled) 119 && (m_USBControllerType == other.m_USBControllerType) 120 ; 96 121 } 97 /* Operators: */ 122 123 /** Returns whether the @a other passed data is equal to this one. */ 98 124 bool operator==(const UIDataSettingsMachineUSB &other) const { return equal(other); } 125 /** Returns whether the @a other passed data is different from this one. */ 99 126 bool operator!=(const UIDataSettingsMachineUSB &other) const { return !equal(other); } 100 /* Variables: */ 127 128 /** Holds whether the USB is enabled. */ 101 129 bool m_fUSBEnabled; 130 /** Holds the USB controller type. */ 102 131 KUSBControllerType m_USBControllerType; 103 132 }; 104 133 typedef UISettingsCachePool<UIDataSettingsMachineUSB, UISettingsCacheMachineUSBFilter> UISettingsCacheMachineUSB; 105 134 106 /* Common settings / USB page: */ 135 136 /** Machine settings: USB page. */ 107 137 class UIMachineSettingsUSB : public UISettingsPageMachine, 108 138 public Ui::UIMachineSettingsUSB … … 195 225 }; 196 226 197 #endif / / __UIMachineSettingsUSB_h__198 227 #endif /* !___UIMachineSettingsUSB_h___ */ 228
Note:
See TracChangeset
for help on using the changeset viewer.