Changeset 48431 in vbox for trunk/src/VBox/Main/include/ClientToken.h
- Timestamp:
- Sep 11, 2013 2:08:36 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/include/ClientToken.h
r47561 r48431 3 3 /** @file 4 4 * 5 * VirtualBox API client token abstraction5 * VirtualBox API client session token abstraction 6 6 */ 7 7 … … 25 25 26 26 #include "MachineImpl.h" 27 #ifdef VBOX_WITH_GENERIC_SESSION_WATCHER 28 # include "TokenImpl.h" 29 #endif /* VBOX_WITH_GENERIC_SESSION_WATCHER */ 27 30 28 31 #if defined(RT_OS_WINDOWS) … … 35 38 # define CTTOKENARG -1 36 39 # define CTTOKENTYPE int 40 #elif defined(VBOX_WITH_GENERIC_SESSION_WATCHER) 41 # define CTTOKENARG NULL 42 # define CTTOKENTYPE MachineToken * 37 43 #else 38 44 # error "Port me!" … … 49 55 * Constructor which creates a usable instance 50 56 * 51 * @param pMachine Reference to Machine object 57 * @param pMachine Reference to Machine object 58 * @param pSessionMachine Reference to corresponding SessionMachine object 52 59 */ 53 ClientToken(const ComObjPtr<Machine> &pMachine );60 ClientToken(const ComObjPtr<Machine> &pMachine, SessionMachine *pSessionMachine); 54 61 55 62 /** … … 74 81 CTTOKENTYPE getToken(); 75 82 83 #ifndef VBOX_WITH_GENERIC_SESSION_WATCHER 76 84 /** 77 85 * Release token now. Returns information if the client has terminated. 78 86 */ 79 87 bool release(); 88 #endif /* !VBOX_WITH_GENERIC_SESSION_WATCHER */ 80 89 81 90 private: … … 88 97 CTTOKENTYPE mClientToken; 89 98 Utf8Str mClientTokenId; 99 #ifdef VBOX_WITH_GENERIC_SESSION_WATCHER 100 bool mClientTokenPassed; 101 #endif 90 102 }; 91 103
Note:
See TracChangeset
for help on using the changeset viewer.