Changeset 35446 in vbox for trunk/src/VBox/Frontends
- Timestamp:
- Jan 10, 2011 11:08:29 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VBoxHeadless/VBoxHeadless.cpp
r35287 r35446 5 5 6 6 /* 7 * Copyright (C) 2006-201 0Oracle Corporation7 * Copyright (C) 2006-2011 Oracle Corporation 8 8 * 9 9 * This file is part of VirtualBox Open Source Edition (OSE), as … … 102 102 } 103 103 104 STDMETHOD(HandleEvent)(VBoxEventType_T aType, IEvent * 104 STDMETHOD(HandleEvent)(VBoxEventType_T aType, IEvent *aEvent) 105 105 { 106 106 switch (aType) … … 148 148 } 149 149 150 STDMETHOD(HandleEvent)(VBoxEventType_T aType, IEvent * 150 STDMETHOD(HandleEvent)(VBoxEventType_T aType, IEvent *aEvent) 151 151 { 152 152 switch (aType) … … 255 255 } 256 256 257 STDMETHOD(HandleEvent)(VBoxEventType_T aType, IEvent * 257 STDMETHOD(HandleEvent)(VBoxEventType_T aType, IEvent *aEvent) 258 258 { 259 259 switch (aType) … … 1002 1002 CHECK_ERROR(pVirtualBoxClient, COMGETTER(EventSource)(pES.asOutParam())); 1003 1003 vboxClientListener = new VirtualBoxClientEventListenerImpl(); 1004 com::SafeArray 1004 com::SafeArray<VBoxEventType_T> eventTypes; 1005 1005 eventTypes.push_back(VBoxEventType_OnVBoxSVCAvailabilityChanged); 1006 1006 CHECK_ERROR(pES, RegisterListener(vboxClientListener, ComSafeArrayAsInParam(eventTypes), true)); … … 1012 1012 CHECK_ERROR(console, COMGETTER(EventSource)(es.asOutParam())); 1013 1013 consoleListener = new ConsoleEventListenerImpl(); 1014 com::SafeArray 1014 com::SafeArray<VBoxEventType_T> eventTypes; 1015 1015 eventTypes.push_back(VBoxEventType_OnMouseCapabilityChanged); 1016 1016 eventTypes.push_back(VBoxEventType_OnStateChanged); … … 1167 1167 CHECK_ERROR(virtualBox, COMGETTER(EventSource)(es.asOutParam())); 1168 1168 vboxListener = new VirtualBoxEventListenerImpl(); 1169 com::SafeArray 1169 com::SafeArray<VBoxEventType_T> eventTypes; 1170 1170 eventTypes.push_back(VBoxEventType_OnGuestPropertyChanged); 1171 1171 CHECK_ERROR(es, RegisterListener(vboxListener, ComSafeArrayAsInParam(eventTypes), true)); … … 1259 1259 1260 1260 /* VirtualBoxClient callback unregistration. */ 1261 if ( consoleListener)1261 if (vboxClientListener) 1262 1262 { 1263 1263 ComPtr<IEventSource> pES;
Note:
See TracChangeset
for help on using the changeset viewer.