Changeset 49871 in vbox for trunk/src/VBox/Main/include/ParallelPortImpl.h
- Timestamp:
- Dec 10, 2013 4:49:59 PM (11 years ago)
- svn:sync-xref-src-repo-rev:
- 91233
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/include/ParallelPortImpl.h
r41214 r49871 6 6 7 7 /* 8 * Copyright (C) 2006-201 2Oracle Corporation8 * Copyright (C) 2006-2013 Oracle Corporation 9 9 * 10 10 * This file is part of VirtualBox Open Source Edition (OSE), as … … 20 20 #define ____H_PARALLELPORTIMPL 21 21 22 #include " VirtualBoxBase.h"22 #include "ParallelPortWrap.h" 23 23 24 24 namespace settings … … 28 28 29 29 class ATL_NO_VTABLE ParallelPort : 30 public VirtualBoxBase, 31 VBOX_SCRIPTABLE_IMPL(IParallelPort) 30 public ParallelPortWrap 32 31 { 33 32 public: 34 VIRTUALBOXBASE_ADD_ERRORINFO_SUPPORT(ParallelPort, IParallelPort)35 33 36 DECLARE_NOT_AGGREGATABLE(ParallelPort) 37 38 DECLARE_PROTECT_FINAL_CONSTRUCT() 39 40 BEGIN_COM_MAP(ParallelPort) 41 VBOX_DEFAULT_INTERFACE_ENTRIES (IParallelPort) 42 END_COM_MAP() 43 44 ParallelPort() {} 45 ~ParallelPort() {} 34 DECLARE_EMPTY_CTOR_DTOR(ParallelPort) 46 35 47 36 HRESULT FinalConstruct(); … … 54 43 void uninit(); 55 44 56 // IParallelPort properties 57 STDMETHOD(COMGETTER(Slot)) (ULONG *aSlot); 58 STDMETHOD(COMGETTER(Enabled)) (BOOL *aEnabled); 59 STDMETHOD(COMSETTER(Enabled)) (BOOL aEnabled); 60 STDMETHOD(COMGETTER(IRQ)) (ULONG *aIRQ); 61 STDMETHOD(COMSETTER(IRQ)) (ULONG aIRQ); 62 STDMETHOD(COMGETTER(IOBase)) (ULONG *aIOBase); 63 STDMETHOD(COMSETTER(IOBase)) (ULONG aIOBase); 64 STDMETHOD(COMGETTER(Path)) (BSTR *aPath); 65 STDMETHOD(COMSETTER(Path)) (IN_BSTR aPath); 45 HRESULT i_loadSettings(const settings::ParallelPort &data); 46 HRESULT i_saveSettings(settings::ParallelPort &data); 66 47 67 48 // public methods only for internal purposes 68 69 HRESULT loadSettings(const settings::ParallelPort &data); 70 HRESULT saveSettings(settings::ParallelPort &data); 71 72 bool isModified(); 73 void rollback(); 74 void commit(); 75 void copyFrom(ParallelPort *aThat); 76 77 // public methods for internal purposes only 78 // (ensure there is a caller and a read lock before calling them!) 49 bool i_isModified(); 50 void i_rollback(); 51 void i_commit(); 52 void i_copyFrom(ParallelPort *aThat); 79 53 80 54 private: 81 HRESULT checkSetPath(const Utf8Str &str); 55 56 // Wrapped IParallelPort properties 57 HRESULT getEnabled(BOOL *aEnabled); 58 HRESULT setEnabled(BOOL aEnabled); 59 HRESULT getSlot(ULONG *aSlot); 60 HRESULT getIRQ(ULONG *aIRQ); 61 HRESULT setIRQ(ULONG aIRQ); 62 HRESULT getIOBase(ULONG *aIOBase); 63 HRESULT setIOBase(ULONG aIOBase); 64 HRESULT getPath(com::Utf8Str &aPath); 65 HRESULT setPath(const com::Utf8Str &aPath); 66 67 HRESULT i_checkSetPath(const Utf8Str &str); 82 68 83 69 struct Data;
Note:
See TracChangeset
for help on using the changeset viewer.