Changeset 77587 in vbox for trunk/src/VBox/Main/include
- Timestamp:
- Mar 6, 2019 4:40:18 PM (6 years ago)
- Location:
- trunk/src/VBox/Main/include
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/include/GuestCtrlImplPrivate.h
r77116 r77587 1152 1152 class GuestObject : public GuestBase 1153 1153 { 1154 friend GuestSession; 1154 1155 1155 1156 public: … … 1164 1165 protected: 1165 1166 1166 virtual int i_onRemove(void) = 0; 1167 /** 1168 * Called by IGuestSession when the session status has been changed. 1169 * 1170 * @returns VBox status code. 1171 * @param enmSessionStatus New session status. 1172 */ 1173 virtual int i_onSessionStatusChange(GuestSessionStatus_T enmSessionStatus) = 0; 1174 1175 /** 1176 * Called by IGuestSession right before this object gets 1177 * unregistered (removed) from the public object list. 1178 */ 1179 virtual int i_onUnregister(void) = 0; 1167 1180 1168 1181 /** Callback dispatcher -- must be implemented by the actual object. */ -
trunk/src/VBox/Main/include/GuestDirectoryImpl.h
r76562 r77587 48 48 49 49 public: 50 /** @name Implemented virtual methods from GuestObject. 51 * @{ */ 52 int i_callbackDispatcher(PVBOXGUESTCTRLHOSTCBCTX pCbCtx, PVBOXGUESTCTRLHOSTCALLBACK pSvcCb); 53 int i_onUnregister(void); 54 int i_onSessionStatusChange(GuestSessionStatus_T enmSessionStatus); 55 /** @} */ 56 57 public: 50 58 /** @name Public internal methods. 51 59 * @{ */ 52 int i_callbackDispatcher(PVBOXGUESTCTRLHOSTCBCTX pCbCtx, PVBOXGUESTCTRLHOSTCALLBACK pSvcCb);53 int i_onRemove(void);54 55 60 int i_closeInternal(int *pGuestRc); 56 61 int i_readInternal(ComObjPtr<GuestFsObjInfo> &fsObjInfo, int *pGuestRc); -
trunk/src/VBox/Main/include/GuestFileImpl.h
r77387 r77587 49 49 50 50 public: 51 /** @name Implemented virtual methods from GuestObject. 52 * @{ */ 53 int i_callbackDispatcher(PVBOXGUESTCTRLHOSTCBCTX pCbCtx, PVBOXGUESTCTRLHOSTCALLBACK pSvcCb); 54 int i_onUnregister(void); 55 int i_onSessionStatusChange(GuestSessionStatus_T enmSessionStatus); 56 /** @} */ 57 58 public: 51 59 /** @name Public internal methods. 52 60 * @{ */ 53 int i_callbackDispatcher(PVBOXGUESTCTRLHOSTCBCTX pCbCtx, PVBOXGUESTCTRLHOSTCALLBACK pSvcCb);54 61 int i_closeFile(int *pGuestRc); 55 62 EventSource *i_getEventSource(void) { return mEventSource; } … … 57 64 int i_onFileNotify(PVBOXGUESTCTRLHOSTCBCTX pCbCtx, PVBOXGUESTCTRLHOSTCALLBACK pSvcCbData); 58 65 int i_onGuestDisconnected(PVBOXGUESTCTRLHOSTCBCTX pCbCtx, PVBOXGUESTCTRLHOSTCALLBACK pSvcCbData); 59 int i_onRemove(void);60 66 int i_openFile(uint32_t uTimeoutMS, int *pGuestRc); 61 67 int i_queryInfo(GuestFsObjData &objData, int *prcGuest); -
trunk/src/VBox/Main/include/GuestProcessImpl.h
r77074 r77587 51 51 52 52 public: 53 /** @name Implemented virtual methods from GuestObject. 54 * @{ */ 55 int i_callbackDispatcher(PVBOXGUESTCTRLHOSTCBCTX pCbCtx, PVBOXGUESTCTRLHOSTCALLBACK pSvcCb); 56 int i_onUnregister(void); 57 int i_onSessionStatusChange(GuestSessionStatus_T enmSessionStatus); 58 /** @} */ 59 60 public: 53 61 /** @name Public internal methods. 54 62 * @{ */ 55 int i_callbackDispatcher(PVBOXGUESTCTRLHOSTCBCTX pCbCtx, PVBOXGUESTCTRLHOSTCALLBACK pSvcCb);56 63 inline int i_checkPID(uint32_t uPID); 57 int i_onRemove(void);58 64 int i_readData(uint32_t uHandle, uint32_t uSize, uint32_t uTimeoutMS, void *pvData, size_t cbData, uint32_t *pcbRead, int *pGuestRc); 59 65 int i_startProcess(uint32_t cMsTimeout, int *pGuestRc); -
trunk/src/VBox/Main/include/GuestSessionImpl.h
r77582 r77587 263 263 /** The object type. */ 264 264 SESSIONOBJECTTYPE enmType; 265 /** Weak pointer to the object itself. */ 266 GuestObject *pObject; 265 267 }; 266 268 … … 309 311 bool i_isStarted(void) const; 310 312 HRESULT i_isStartedExternal(void); 313 static bool i_isTerminated(GuestSessionStatus_T enmStatus); 311 314 bool i_isTerminated(void) const; 312 315 int i_onRemove(void); … … 318 321 Guest *i_getParent(void) { return mParent; } 319 322 uint32_t i_getProtocolVersion(void) { return mData.mProtocolVersion; } 320 int i_objectRegister( SESSIONOBJECTTYPE enmType, uint32_t *pidObject);323 int i_objectRegister(GuestObject *pObject, SESSIONOBJECTTYPE enmType, uint32_t *pidObject); 321 324 int i_objectUnregister(uint32_t uObjectID); 325 int i_objectsUnregister(void); 326 int i_objectsNotifyAboutStatusChange(GuestSessionStatus_T enmSessionStatus); 322 327 int i_pathRename(const Utf8Str &strSource, const Utf8Str &strDest, uint32_t uFlags, int *pGuestRc); 323 328 int i_pathUserDocuments(Utf8Str &strPath, int *prcGuest);
Note:
See TracChangeset
for help on using the changeset viewer.