Changeset 3420 in vbox for trunk/src/VBox/Main/include
- Timestamp:
- Jul 4, 2007 4:04:02 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/include/VRDPServerImpl.h
r2981 r3420 31 31 32 32 class ATL_NO_VTABLE VRDPServer : 33 public VirtualBoxBaseNEXT, 33 34 public VirtualBoxSupportErrorInfoImpl <VRDPServer, IVRDPServer>, 34 35 public VirtualBoxSupportTranslation <VRDPServer>, 35 public VirtualBoxBase,36 36 public IVRDPServer 37 37 { … … 59 59 }; 60 60 61 VIRTUALBOXBASE_ADD_ERRORINFO_SUPPORT (VRDPServer) 62 61 63 DECLARE_NOT_AGGREGATABLE(VRDPServer) 62 64 … … 70 72 NS_DECL_ISUPPORTS 71 73 74 DECLARE_EMPTY_CTOR_DTOR (VRDPServer) 75 72 76 HRESULT FinalConstruct(); 73 77 void FinalRelease(); 74 78 75 79 // public initializer/uninitializer for internal purposes only 76 HRESULT init(Machine * parent);77 HRESULT init(Machine * parent, VRDPServer *that);78 HRESULT initCopy (Machine * parent, VRDPServer *that);80 HRESULT init(Machine *aParent); 81 HRESULT init(Machine *aParent, VRDPServer *aThat); 82 HRESULT initCopy (Machine *aParent, VRDPServer *aThat); 79 83 void uninit(); 80 84 81 85 // IVRDPServer properties 82 STDMETHOD(COMGETTER(Enabled)) (BOOL *enabled);83 STDMETHOD(COMSETTER(Enabled)) (BOOL enable);84 STDMETHOD(COMGETTER(Port)) (ULONG *port);85 STDMETHOD(COMSETTER(Port)) (ULONG port);86 STDMETHOD(COMGETTER(NetAddress)) (BSTR *address);87 STDMETHOD(COMSETTER(NetAddress)) (INPTR BSTR address);88 STDMETHOD(COMGETTER(AuthType)) (VRDPAuthType_T *type);89 STDMETHOD(COMSETTER(AuthType)) (VRDPAuthType_T type);90 STDMETHOD(COMGETTER(AuthTimeout)) (ULONG *timeout);91 STDMETHOD(COMSETTER(AuthTimeout)) (ULONG timeout);92 STDMETHOD(COMGETTER(AllowMultiConnection)) (BOOL *enabled);93 STDMETHOD(COMSETTER(AllowMultiConnection)) (BOOL enable);86 STDMETHOD(COMGETTER(Enabled)) (BOOL *aEnabled); 87 STDMETHOD(COMSETTER(Enabled)) (BOOL aEnable); 88 STDMETHOD(COMGETTER(Port)) (ULONG *aPort); 89 STDMETHOD(COMSETTER(Port)) (ULONG aPort); 90 STDMETHOD(COMGETTER(NetAddress)) (BSTR *aAddress); 91 STDMETHOD(COMSETTER(NetAddress)) (INPTR BSTR aAddress); 92 STDMETHOD(COMGETTER(AuthType)) (VRDPAuthType_T *aType); 93 STDMETHOD(COMSETTER(AuthType)) (VRDPAuthType_T aType); 94 STDMETHOD(COMGETTER(AuthTimeout)) (ULONG *aTimeout); 95 STDMETHOD(COMSETTER(AuthTimeout)) (ULONG aTimeout); 96 STDMETHOD(COMGETTER(AllowMultiConnection)) (BOOL *aAllowMultiConnection); 97 STDMETHOD(COMSETTER(AllowMultiConnection)) (BOOL aAllowMultiConnection); 94 98 95 99 // IVRDPServer methods … … 97 101 // public methods only for internal purposes 98 102 99 void loadConfig (CFGNODE node); 100 void saveConfig (CFGNODE node); 101 102 const Backupable <Data> &data() const { return mData; } 103 HRESULT loadSettings (CFGNODE aNode); 104 HRESULT saveSettings (CFGNODE aNode); 103 105 104 106 bool isModified() { AutoLock alock (this); return mData.isBackedUp(); } … … 108 110 void copyFrom (VRDPServer *aThat); 109 111 112 // public methods for internal purposes only 113 // (ensure there is a caller and a read lock before calling them!) 114 115 const Backupable <Data> &data() const { return mData; } 116 110 117 // for VirtualBoxSupportErrorInfoImpl 111 118 static const wchar_t *getComponentName() { return L"VRDPServer"; } … … 113 120 private: 114 121 115 ComObjPtr <Machine, ComWeakRef> mParent; 116 ComObjPtr <VRDPServer> mPeer; 122 const ComObjPtr <Machine, ComWeakRef> mParent; 123 const ComObjPtr <VRDPServer> mPeer; 124 117 125 Backupable <Data> mData; 118 126 };
Note:
See TracChangeset
for help on using the changeset viewer.