Changeset 45426 in vbox for trunk/src/VBox/Main
- Timestamp:
- Apr 9, 2013 9:30:55 AM (12 years ago)
- svn:sync-xref-src-repo-rev:
- 84855
- Location:
- trunk/src/VBox/Main
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/idl/VirtualBox.xidl
r45422 r45426 9750 9750 </desc> 9751 9751 </attribute> 9752 9753 9752 <attribute name="domain" type="wstring" readonly="yes"> 9754 9753 <desc>Returns the domain name used by this session to impersonate … … 9756 9755 </desc> 9757 9756 </attribute> 9758 9759 9757 <attribute name="name" type="wstring" readonly="yes"> 9760 9758 <desc>Returns the session's friendly name.</desc> 9761 9759 </attribute> 9762 9763 9760 <attribute name="id" type="unsigned long" readonly="yes"> 9764 9761 <desc>Returns the internal session ID.</desc> 9765 9762 </attribute> 9766 9767 9763 <attribute name="timeout" type="unsigned long"> 9768 9764 <desc> … … 9773 9769 </desc> 9774 9770 </attribute> 9775 9776 9771 <attribute name="status" type="GuestSessionStatus" readonly="yes"> 9777 9772 <desc>Returns the current session status.</desc> 9778 9773 </attribute> 9779 9780 9774 <attribute name="environment" type="wstring" safearray="yes"> 9781 9775 <desc> … … 9783 9777 </desc> 9784 9778 </attribute> 9785 9786 9779 <attribute name="processes" type="IGuestProcess" readonly="yes" safearray="yes"> 9787 9780 <desc> … … 9789 9782 </desc> 9790 9783 </attribute> 9791 9792 9784 <attribute name="directories" type="IGuestDirectory" readonly="yes" safearray="yes"> 9793 9785 <desc> … … 9795 9787 </desc> 9796 9788 </attribute> 9797 9798 9789 <attribute name="files" type="IGuestFile" readonly="yes" safearray="yes"> 9799 9790 <desc> … … 9801 9792 </desc> 9802 9793 </attribute> 9803 9804 9794 <attribute name="eventSource" type="IEventSource" readonly="yes"> 9805 9795 <desc> … … 10582 10572 <interface 10583 10573 name="IProcess" extends="$unknown" 10584 uuid=" 08864d56-96ab-418b-adbc-5a679532aeb0"10574 uuid="5a4fe06d-8cb1-40ff-ac9e-9676e32f706e" 10585 10575 wsmap="managed" 10586 10576 > … … 10588 10578 Abstract parent interface for processes handled by VirtualBox. 10589 10579 </desc> 10580 10581 <attribute name="arguments" type="wstring" readonly="yes" safearray="yes"> 10582 <desc> 10583 The arguments this process is using for execution. 10584 </desc> 10585 </attribute> 10586 <attribute name="environment" type="wstring" readonly="yes" safearray="yes"> 10587 <desc> 10588 The environment block this process is using during execution. 10589 </desc> 10590 </attribute> 10591 <attribute name="eventSource" type="IEventSource" readonly="yes"> 10592 <desc> 10593 Event source for VirtualBox events. 10594 </desc> 10595 </attribute> 10596 <attribute name="executablePath" type="wstring" readonly="yes"> 10597 <desc>Full path of the actual executable image.</desc> 10598 </attribute> 10599 <attribute name="exitCode" type="long" readonly="yes"> 10600 <desc> 10601 The exit code. Only available when the process has been 10602 terminated normally. 10603 </desc> 10604 </attribute> 10605 <attribute name="name" type="wstring" readonly="yes"> 10606 <desc> 10607 The friendly name of this process. 10608 </desc> 10609 </attribute> 10590 10610 <attribute name="PID" type="unsigned long" readonly="yes"> 10591 10611 <desc> … … 10599 10619 </desc> 10600 10620 </attribute> 10601 <attribute name="exitCode" type="long" readonly="yes"> 10602 <desc> 10603 The exit code. Only available when the process has been 10604 terminated normally. 10605 </desc> 10606 </attribute> 10607 <attribute name="environment" type="wstring" readonly="yes" safearray="yes"> 10608 <desc> 10609 The environment block this process is using during execution. 10610 </desc> 10611 </attribute> 10612 <attribute name="arguments" type="wstring" readonly="yes" safearray="yes"> 10613 <desc> 10614 The arguments this process is using for execution. 10615 </desc> 10616 </attribute> 10617 <attribute name="executablePath" type="wstring" readonly="yes"> 10618 <desc>Full path of the actual executable image.</desc> 10619 </attribute> 10620 <attribute name="name" type="wstring" readonly="yes"> 10621 <desc>The friendly name of this process.</desc> 10622 </attribute> 10623 10621 10624 10622 <method name="waitFor"> 10625 10623 <desc> … … 10824 10822 <interface 10825 10823 name="IFile" extends="$unknown" 10826 uuid=" 0b45a95f-6267-499e-a7f2-efa5f8e081f2"10824 uuid="ceb895d7-8b2d-4a39-8f7c-7d2270f341d5" 10827 10825 wsmap="managed" 10828 10826 > … … 10830 10828 Abstract parent interface for files handled by VirtualBox. 10831 10829 </desc> 10830 <attribute name="creationMode" type="unsigned long" readonly="yes"> 10831 <desc> 10832 The creation mode. 10833 </desc> 10834 </attribute> 10835 <attribute name="disposition" type="unsigned long" readonly="yes"> 10836 <desc> 10837 The disposition mode. 10838 </desc> 10839 </attribute> 10840 <attribute name="eventSource" type="IEventSource" readonly="yes"> 10841 <desc> 10842 Event source for guest session events. 10843 </desc> 10844 </attribute> 10845 <attribute name="fileName" type="wstring" readonly="yes"> 10846 <desc> 10847 Full path of the actual file name of this file. 10848 </desc> 10849 </attribute> 10850 <attribute name="initialSize" type="long long" readonly="yes"> 10851 <desc> 10852 The initial size in bytes when opened. 10853 </desc> 10854 </attribute> 10855 <attribute name="openMode" type="unsigned long" readonly="yes"> 10856 <desc> 10857 The open mode. 10858 </desc> 10859 </attribute> 10860 <attribute name="offset" type="long long" readonly="yes"> 10861 <desc> 10862 Current read/write offset in bytes. 10863 </desc> 10864 </attribute> 10832 10865 <attribute name="status" type="FileStatus" readonly="yes"> 10833 10866 <desc> 10834 10867 TODO 10835 </desc>10836 </attribute>10837 <attribute name="creationMode" type="unsigned long" readonly="yes">10838 <desc>10839 The creation mode.10840 </desc>10841 </attribute>10842 <attribute name="disposition" type="unsigned long" readonly="yes">10843 <desc>10844 The disposition mode.10845 </desc>10846 </attribute>10847 <attribute name="fileName" type="wstring" readonly="yes">10848 <desc>10849 Full path of the actual file name of this file.10850 </desc>10851 </attribute>10852 <attribute name="initialSize" type="long long" readonly="yes">10853 <desc>10854 The initial size in bytes when opened.10855 </desc>10856 </attribute>10857 <attribute name="openMode" type="unsigned long" readonly="yes">10858 <desc>10859 The open mode.10860 </desc>10861 </attribute>10862 <attribute name="offset" type="long long" readonly="yes">10863 <desc>10864 Current read/write offset in bytes.10865 10868 </desc> 10866 10869 </attribute> … … 18696 18699 <enum 18697 18700 name="VBoxEventType" 18698 uuid=" 83c03e4b-ffe5-421c-a0fb-0b27b2d56753"18701 uuid="c51645b3-7108-4dce-b5a3-bbf5e4f69ed2" 18699 18702 > 18700 18703 … … 19024 19027 </desc> 19025 19028 </const> 19026 <const name="OnGuestFile StateChanged" value="86">19029 <const name="OnGuestFileRegistered" value="86"> 19027 19030 <desc> 19028 19031 TODO 19029 19032 </desc> 19030 19033 </const> 19031 <const name="OnGuestFile OffsetChanged" value="87">19034 <const name="OnGuestFileStateChanged" value="87"> 19032 19035 <desc> 19033 19036 TODO 19034 19037 </desc> 19035 19038 </const> 19036 <const name="OnGuestFileRead" value="88"> 19039 <const name="OnGuestFileOffsetChanged" value="88"> 19040 <desc> 19041 TODO 19042 </desc> 19043 </const> 19044 <const name="OnGuestFileRead" value="89"> 19037 19045 <desc> 19038 19046 For performance reasons ... TODO 19039 19047 </desc> 19040 19048 </const> 19041 <const name="OnGuestFileWrite" value=" 89">19049 <const name="OnGuestFileWrite" value="90"> 19042 19050 <desc> 19043 19051 For performance reasons ... TODO … … 19045 19053 </const> 19046 19054 <!-- Last event marker --> 19047 <const name="Last" value="9 0">19055 <const name="Last" value="91"> 19048 19056 <desc> 19049 19057 Must be last event, used for iterations and structures relying on numerical event values. … … 20100 20108 </interface> 20101 20109 20110 <interface 20111 name="IGuestFileRegisteredEvent" extends="IGuestFileEvent" 20112 uuid="d0d93830-70a2-487e-895e-d3fc9679f7b3" 20113 wsmap="managed" autogen="VBoxEvent" id="OnGuestFileRegistered" 20114 > 20115 <desc> 20116 TODO 20117 </desc> 20118 20119 <attribute name="registered" type="boolean" readonly="yes"> 20120 <desc> 20121 TODO 20122 </desc> 20123 </attribute> 20124 20125 </interface> 20126 20102 20127 <interface 20103 20128 name="IGuestFileStateChangedEvent" extends="IGuestFileEvent" -
trunk/src/VBox/Main/include/GuestFileImpl.h
r45415 r45426 60 60 STDMETHOD(COMGETTER(CreationMode))(ULONG *aCreationMode); 61 61 STDMETHOD(COMGETTER(Disposition))(ULONG *aDisposition); 62 STDMETHOD(COMGETTER(EventSource))(IEventSource ** aEventSource); 62 63 STDMETHOD(COMGETTER(FileName))(BSTR *aFileName); 63 64 STDMETHOD(COMGETTER(InitialSize))(LONG64 *aInitialSize); -
trunk/src/VBox/Main/include/GuestImpl.h
r45415 r45426 81 81 STDMETHOD(COMGETTER(AdditionsVersion))(BSTR *a_pbstrAdditionsVersion); 82 82 STDMETHOD(COMGETTER(AdditionsRevision))(ULONG *a_puAdditionsRevision); 83 STDMETHOD(COMGETTER(EventSource))(IEventSource ** aEventSource); 83 84 STDMETHOD(COMGETTER(Facilities)) (ComSafeArrayOut(IAdditionsFacility *, aFacilities)); 84 85 STDMETHOD(COMGETTER(Sessions)) (ComSafeArrayOut(IGuestSession *, aSessions)); … … 101 102 STDMETHOD(DragGHDropped)(IN_BSTR strFormat, DragAndDropAction_T action, IProgress **ppProgress); 102 103 STDMETHOD(DragGHGetData)(ComSafeArrayOut(BYTE, data)); 104 // Guest control. 105 STDMETHOD(CreateSession)(IN_BSTR aUser, IN_BSTR aPassword, IN_BSTR aDomain, IN_BSTR aSessionName, IGuestSession **aGuestSession); 106 STDMETHOD(FindSession)(IN_BSTR aSessionName, ComSafeArrayOut(IGuestSession *, aSessions)); 103 107 // Misc stuff 104 108 STDMETHOD(InternalGetStatistics)(ULONG *aCpuUser, ULONG *aCpuKernel, ULONG *aCpuIdle, … … 106 110 ULONG *aPageTotal, ULONG *aMemAllocTotal, ULONG *aMemFreeTotal, ULONG *aMemBalloonTotal, ULONG *aMemSharedTotal); 107 111 STDMETHOD(UpdateGuestAdditions)(IN_BSTR aSource, ComSafeArrayIn(AdditionsUpdateFlag_T, aFlags), IProgress **aProgress); 108 STDMETHOD(CreateSession)(IN_BSTR aUser, IN_BSTR aPassword, IN_BSTR aDomain, IN_BSTR aSessionName, IGuestSession **aGuestSession);109 STDMETHOD(FindSession)(IN_BSTR aSessionName, ComSafeArrayOut(IGuestSession *, aSessions));110 112 111 113 public: -
trunk/src/VBox/Main/include/GuestProcessImpl.h
r45415 r45426 56 56 STDMETHOD(COMGETTER(Arguments))(ComSafeArrayOut(BSTR, aArguments)); 57 57 STDMETHOD(COMGETTER(Environment))(ComSafeArrayOut(BSTR, aEnvironment)); 58 STDMETHOD(COMGETTER(EventSource))(IEventSource ** aEventSource); 58 59 STDMETHOD(COMGETTER(ExecutablePath))(BSTR *aExecutablePath); 59 60 STDMETHOD(COMGETTER(ExitCode))(LONG *aExitCode); -
trunk/src/VBox/Main/src-client/GuestFileImpl.cpp
r45418 r45426 169 169 return S_OK; 170 170 #endif /* VBOX_WITH_GUEST_CONTROL */ 171 } 172 173 STDMETHODIMP GuestFile::COMGETTER(EventSource)(IEventSource ** aEventSource) 174 { 175 CheckComArgOutPointerValid(aEventSource); 176 177 AutoCaller autoCaller(this); 178 if (FAILED(autoCaller.rc())) return autoCaller.rc(); 179 180 // no need to lock - lifetime constant 181 mEventSource.queryInterfaceTo(aEventSource); 182 183 return S_OK; 171 184 } 172 185 -
trunk/src/VBox/Main/src-client/GuestImpl.cpp
r45415 r45426 489 489 } 490 490 491 STDMETHODIMP Guest::COMGETTER(EventSource)(IEventSource ** aEventSource) 492 { 493 #ifndef VBOX_WITH_GUEST_CONTROL 494 ReturnComNotImplemented(); 495 #else 496 LogFlowThisFuncEnter(); 497 498 CheckComArgOutPointerValid(aEventSource); 499 500 AutoCaller autoCaller(this); 501 if (FAILED(autoCaller.rc())) return autoCaller.rc(); 502 503 // no need to lock - lifetime constant 504 mEventSource.queryInterfaceTo(aEventSource); 505 506 LogFlowFuncLeaveRC(S_OK); 507 return S_OK; 508 #endif /* VBOX_WITH_GUEST_CONTROL */ 509 } 510 491 511 STDMETHODIMP Guest::COMGETTER(Facilities)(ComSafeArrayOut(IAdditionsFacility *, aFacilities)) 492 512 { -
trunk/src/VBox/Main/src-client/GuestProcessImpl.cpp
r45415 r45426 90 90 { 91 91 LogFlowThisFuncEnter(); 92 93 mData.mExitCode = 0;94 mData.mPID = 0;95 mData.mRC = VINF_SUCCESS;96 mData.mStatus = ProcessStatus_Undefined;97 98 92 return BaseFinalConstruct(); 99 93 } … … 123 117 AssertReturn(autoInitSpan.isOk(), VERR_OBJECT_DESTROYED); 124 118 119 #ifndef VBOX_WITH_GUEST_CONTROL 120 autoInitSpan.setSucceeded(); 121 return VINF_SUCCESS; 122 #else 125 123 int vrc = bindToSession(aConsole, aSession, aProcessID /* Object ID */); 126 124 if (RT_SUCCESS(vrc)) … … 136 134 { 137 135 mData.mProcess = aProcInfo; 136 mData.mExitCode = 0; 137 mData.mPID = 0; 138 mData.mRC = VINF_SUCCESS; 139 mData.mStatus = ProcessStatus_Undefined; 138 140 /* Everything else will be set by the actual starting routine. */ 139 141 … … 146 148 autoInitSpan.setFailed(); 147 149 return vrc; 150 #endif 148 151 } 149 152 … … 226 229 arguments.detachTo(ComSafeArrayOutArg(aEnvironment)); 227 230 231 return S_OK; 232 #endif /* VBOX_WITH_GUEST_CONTROL */ 233 } 234 235 STDMETHODIMP GuestProcess::COMGETTER(EventSource)(IEventSource ** aEventSource) 236 { 237 #ifndef VBOX_WITH_GUEST_CONTROL 238 ReturnComNotImplemented(); 239 #else 240 LogFlowThisFuncEnter(); 241 242 CheckComArgOutPointerValid(aEventSource); 243 244 AutoCaller autoCaller(this); 245 if (FAILED(autoCaller.rc())) return autoCaller.rc(); 246 247 // no need to lock - lifetime constant 248 mEventSource.queryInterfaceTo(aEventSource); 249 250 LogFlowFuncLeaveRC(S_OK); 228 251 return S_OK; 229 252 #endif /* VBOX_WITH_GUEST_CONTROL */ -
trunk/src/VBox/Main/src-client/GuestSessionImpl.cpp
r45418 r45426 92 92 { 93 93 LogFlowThisFunc(("\n")); 94 95 mData.mRC = VINF_SUCCESS;96 mData.mStatus = GuestSessionStatus_Undefined;97 98 94 return BaseFinalConstruct(); 99 95 } … … 123 119 pGuest, &ssInfo, &guestCreds)); 124 120 125 AssertPtrReturn(pGuest, VERR_INVALID_POINTER);126 127 121 /* Enclose the state transition NotReady->InInit->Ready. */ 128 122 AutoInitSpan autoInitSpan(this); 129 123 AssertReturn(autoInitSpan.isOk(), VERR_OBJECT_DESTROYED); 124 125 #ifndef VBOX_WITH_GUEST_CONTROL 126 autoInitSpan.setSucceeded(); 127 return VINF_SUCCESS; 128 #else 129 AssertPtrReturn(pGuest, VERR_INVALID_POINTER); 130 130 131 131 mParent = pGuest; … … 144 144 mData.mCredentials.mDomain = guestCreds.mDomain; 145 145 146 mData.mRC = VINF_SUCCESS; 146 147 mData.mStatus = GuestSessionStatus_Undefined; 147 148 mData.mNumObjects = 0; … … 167 168 LogFlowFuncLeaveRC(rc); 168 169 return rc; 170 #endif /* VBOX_WITH_GUEST_CONTROL */ 169 171 } 170 172 … … 495 497 STDMETHODIMP GuestSession::COMGETTER(EventSource)(IEventSource ** aEventSource) 496 498 { 499 #ifndef VBOX_WITH_GUEST_CONTROL 500 ReturnComNotImplemented(); 501 #else 502 LogFlowThisFuncEnter(); 503 497 504 CheckComArgOutPointerValid(aEventSource); 498 505 … … 503 510 mEventSource.queryInterfaceTo(aEventSource); 504 511 512 LogFlowFuncLeaveRC(S_OK); 505 513 return S_OK; 514 #endif /* VBOX_WITH_GUEST_CONTROL */ 506 515 } 507 516
Note:
See TracChangeset
for help on using the changeset viewer.