Changeset 7207 in vbox for trunk/src/VBox/Main/ConsoleImpl.cpp
- Timestamp:
- Feb 28, 2008 6:43:08 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/ConsoleImpl.cpp
r6895 r7207 189 189 : VMProgressTask (aConsole, aProgress, true /* aUsesVMPtr */) 190 190 , mIsSnapshot (false) 191 , mLastMachineState (MachineState_ InvalidMachineState) {}191 , mLastMachineState (MachineState_Null) {} 192 192 193 193 bool mIsSnapshot; … … 477 477 AssertComRCReturn (hrc, VERR_ACCESS_DENIED); 478 478 479 VRDPAuthType_T authType = VRDPAuthType_ VRDPAuthNull;479 VRDPAuthType_T authType = VRDPAuthType_Null; 480 480 hrc = mVRDPServer->COMGETTER(AuthType) (&authType); 481 481 AssertComRCReturn (hrc, VERR_ACCESS_DENIED); … … 492 492 LogRel (("VRDPAUTH: User: [%s]. Domain: [%s]. Authentication type: [%s]\n", 493 493 pszUser, pszDomain, 494 authType == VRDPAuthType_ VRDPAuthNull?494 authType == VRDPAuthType_Null? 495 495 "null": 496 (authType == VRDPAuthType_ VRDPAuthExternal?496 (authType == VRDPAuthType_External? 497 497 "external": 498 (authType == VRDPAuthType_ VRDPAuthGuest?498 (authType == VRDPAuthType_Guest? 499 499 "guest": 500 500 "INVALID" … … 526 526 switch (authType) 527 527 { 528 case VRDPAuthType_ VRDPAuthNull:528 case VRDPAuthType_Null: 529 529 { 530 530 result = VRDPAuthAccessGranted; … … 532 532 } 533 533 534 case VRDPAuthType_ VRDPAuthExternal:534 case VRDPAuthType_External: 535 535 { 536 536 /* Call the external library. */ … … 547 547 } /* pass through */ 548 548 549 case VRDPAuthType_ VRDPAuthGuest:549 case VRDPAuthType_Guest: 550 550 { 551 551 guestJudgement = VRDPAuthGuestNotReacted; … … 590 590 } 591 591 592 if (authType == VRDPAuthType_ VRDPAuthExternal)592 if (authType == VRDPAuthType_External) 593 593 { 594 594 LogRel(("VRDPAUTH: Guest judgement %d.\n", guestJudgement)); … … 709 709 AssertComRC (hrc); 710 710 711 VRDPAuthType_T authType = VRDPAuthType_ VRDPAuthNull;711 VRDPAuthType_T authType = VRDPAuthType_Null; 712 712 hrc = mVRDPServer->COMGETTER(AuthType) (&authType); 713 713 AssertComRC (hrc); 714 714 715 if (authType == VRDPAuthType_ VRDPAuthExternal)715 if (authType == VRDPAuthType_External) 716 716 mConsoleVRDPServer->AuthDisconnect (uuid, u32ClientId); 717 717 … … 1266 1266 switch (netattach) 1267 1267 { 1268 case NetworkAttachmentType_HostInterface NetworkAttachment:1268 case NetworkAttachmentType_HostInterface: 1269 1269 { 1270 1270 #ifdef RT_OS_WINDOWS … … 1853 1853 switch (aDeviceType) 1854 1854 { 1855 case DeviceType_Floppy Device:1855 case DeviceType_Floppy: 1856 1856 { 1857 1857 for (unsigned i = 0; i < ELEMENTS(mapFDLeds); i++) … … 1860 1860 } 1861 1861 1862 case DeviceType_DVD Device:1862 case DeviceType_DVD: 1863 1863 { 1864 1864 SumLed.u32 |= readAndClearLed(mapIDELeds[2]); … … 1866 1866 } 1867 1867 1868 case DeviceType_HardDisk Device:1868 case DeviceType_HardDisk: 1869 1869 { 1870 1870 SumLed.u32 |= readAndClearLed(mapIDELeds[0]); … … 1874 1874 } 1875 1875 1876 case DeviceType_Network Device:1876 case DeviceType_Network: 1877 1877 { 1878 1878 for (unsigned i = 0; i < ELEMENTS(mapNetworkLeds); i++) … … 1881 1881 } 1882 1882 1883 case DeviceType_USB Device:1883 case DeviceType_USB: 1884 1884 { 1885 1885 SumLed.u32 |= readAndClearLed(mapUSBLed); … … 1887 1887 } 1888 1888 1889 case DeviceType_SharedFolder Device:1889 case DeviceType_SharedFolder: 1890 1890 { 1891 1891 SumLed.u32 |= readAndClearLed(mapSharedFolderLed); … … 1902 1902 { 1903 1903 case 0: 1904 *aDeviceActivity = DeviceActivity_ DeviceIdle;1904 *aDeviceActivity = DeviceActivity_Idle; 1905 1905 break; 1906 1906 case PDMLED_READING: 1907 *aDeviceActivity = DeviceActivity_ DeviceReading;1907 *aDeviceActivity = DeviceActivity_Reading; 1908 1908 break; 1909 1909 case PDMLED_WRITING: 1910 1910 case PDMLED_READING | PDMLED_WRITING: 1911 *aDeviceActivity = DeviceActivity_ DeviceWriting;1911 *aDeviceActivity = DeviceActivity_Writing; 1912 1912 break; 1913 1913 } … … 2111 2111 CallbackList::iterator it = mCallbacks.begin(); 2112 2112 while (it != mCallbacks.end()) 2113 (*it++)->OnSharedFolderChange (Scope_Session Scope);2113 (*it++)->OnSharedFolderChange (Scope_Session); 2114 2114 } 2115 2115 … … 2170 2170 CallbackList::iterator it = mCallbacks.begin(); 2171 2171 while (it != mCallbacks.end()) 2172 (*it++)->OnSharedFolderChange (Scope_Session Scope);2172 (*it++)->OnSharedFolderChange (Scope_Session); 2173 2173 } 2174 2174 … … 2369 2369 mMachineState); 2370 2370 2371 MachineState_T machineState = MachineState_ InvalidMachineState;2371 MachineState_T machineState = MachineState_Null; 2372 2372 HRESULT rc = mControl->DiscardSnapshot (this, aId, &machineState, aProgress); 2373 2373 CheckComRCReturnRC (rc); … … 2390 2390 mMachineState); 2391 2391 2392 MachineState_T machineState = MachineState_ InvalidMachineState;2392 MachineState_T machineState = MachineState_Null; 2393 2393 HRESULT rc = mControl->DiscardCurrentState (this, &machineState, aProgress); 2394 2394 CheckComRCReturnRC (rc); … … 2411 2411 mMachineState); 2412 2412 2413 MachineState_T machineState = MachineState_ InvalidMachineState;2413 MachineState_T machineState = MachineState_Null; 2414 2414 HRESULT rc = 2415 2415 mControl->DiscardCurrentSnapshotAndState (this, &machineState, aProgress); … … 3350 3350 CallbackList::iterator it = mCallbacks.begin(); 3351 3351 while (it != mCallbacks.end()) 3352 (*it++)->OnSharedFolderChange (aGlobal ? (Scope_T) Scope_GlobalScope3353 : (Scope_T) Scope_MachineScope);3352 (*it++)->OnSharedFolderChange (aGlobal ? (Scope_T) Scope_Global 3353 : (Scope_T) Scope_Machine); 3354 3354 } 3355 3355 … … 4244 4244 * can lead to various unexpected results (like the machine state being 4245 4245 * >= MachineState_Running on the server, while the session state is 4246 * already SessionState_ SessionClosed at the same time there).4246 * already SessionState_Closed at the same time there). 4247 4247 * 4248 4248 * Cross-lock conditions should be carefully watched out: calling … … 5140 5140 NetworkAttachmentType_T attachment; 5141 5141 networkAdapter->COMGETTER(AttachmentType)(&attachment); 5142 Assert(attachment == NetworkAttachmentType_HostInterface NetworkAttachment);5142 Assert(attachment == NetworkAttachmentType_HostInterface); 5143 5143 #endif /* DEBUG */ 5144 5144 … … 5339 5339 NetworkAttachmentType_T attachment; 5340 5340 networkAdapter->COMGETTER(AttachmentType)(&attachment); 5341 Assert(attachment == NetworkAttachmentType_HostInterface NetworkAttachment);5341 Assert(attachment == NetworkAttachmentType_HostInterface); 5342 5342 #endif /* DEBUG */ 5343 5343 … … 5449 5449 NetworkAttachmentType_T attachment; 5450 5450 networkAdapter->COMGETTER(AttachmentType)(&attachment); 5451 if (attachment == NetworkAttachmentType_HostInterface NetworkAttachment)5451 if (attachment == NetworkAttachmentType_HostInterface) 5452 5452 { 5453 5453 HRESULT rc2 = detachFromHostInterface(networkAdapter); … … 6127 6127 switch (enmCtl) 6128 6128 { 6129 case DiskControllerType_IDE0 Controller:6129 case DiskControllerType_IDE0: 6130 6130 i = 0; 6131 6131 break; 6132 case DiskControllerType_IDE1 Controller:6132 case DiskControllerType_IDE1: 6133 6133 i = 2; 6134 6134 break;
Note:
See TracChangeset
for help on using the changeset viewer.