VirtualBox

source: vbox/trunk/src/VBox/Main/include/ParallelPortImpl.h@ 34575

Last change on this file since 34575 was 30764, checked in by vboxsync, 14 years ago

back out r63543, r63544 until windows build problems can be solved properly

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 2.6 KB
Line 
1/* $Id: ParallelPortImpl.h 30764 2010-07-09 14:12:12Z vboxsync $ */
2
3/** @file
4 * VirtualBox COM class implementation.
5 */
6
7/*
8 * Copyright (C) 2006-2007 Oracle Corporation
9 *
10 * This file is part of VirtualBox Open Source Edition (OSE), as
11 * available from http://www.virtualbox.org. This file is free software;
12 * you can redistribute it and/or modify it under the terms of the GNU
13 * General Public License (GPL) as published by the Free Software
14 * Foundation, in version 2 as it comes in the "COPYING" file of the
15 * VirtualBox OSE distribution. VirtualBox OSE is distributed in the
16 * hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
17 */
18
19#ifndef ____H_PARALLELPORTIMPL
20#define ____H_PARALLELPORTIMPL
21
22#include "VirtualBoxBase.h"
23
24namespace settings
25{
26 struct ParallelPort;
27}
28
29class ATL_NO_VTABLE ParallelPort :
30 public VirtualBoxBase,
31 VBOX_SCRIPTABLE_IMPL(IParallelPort)
32{
33public:
34 VIRTUALBOXBASE_ADD_ERRORINFO_SUPPORT(ParallelPort, IParallelPort)
35
36 DECLARE_NOT_AGGREGATABLE(ParallelPort)
37
38 DECLARE_PROTECT_FINAL_CONSTRUCT()
39
40 BEGIN_COM_MAP(ParallelPort)
41 COM_INTERFACE_ENTRY (ISupportErrorInfo)
42 COM_INTERFACE_ENTRY (IParallelPort)
43 COM_INTERFACE_ENTRY2 (IDispatch, IParallelPort)
44 END_COM_MAP()
45
46 ParallelPort() {}
47 ~ParallelPort() {}
48
49 HRESULT FinalConstruct();
50 void FinalRelease();
51
52 // public initializer/uninitializer for internal purposes only
53 HRESULT init (Machine *aParent, ULONG aSlot);
54 HRESULT init (Machine *aParent, ParallelPort *aThat);
55 HRESULT initCopy (Machine *parent, ParallelPort *aThat);
56 void uninit();
57
58 // IParallelPort properties
59 STDMETHOD(COMGETTER(Slot)) (ULONG *aSlot);
60 STDMETHOD(COMGETTER(Enabled)) (BOOL *aEnabled);
61 STDMETHOD(COMSETTER(Enabled)) (BOOL aEnabled);
62 STDMETHOD(COMGETTER(IRQ)) (ULONG *aIRQ);
63 STDMETHOD(COMSETTER(IRQ)) (ULONG aIRQ);
64 STDMETHOD(COMGETTER(IOBase)) (ULONG *aIOBase);
65 STDMETHOD(COMSETTER(IOBase)) (ULONG aIOBase);
66 STDMETHOD(COMGETTER(Path)) (BSTR *aPath);
67 STDMETHOD(COMSETTER(Path)) (IN_BSTR aPath);
68
69 // public methods only for internal purposes
70
71 HRESULT loadSettings(const settings::ParallelPort &data);
72 HRESULT saveSettings(settings::ParallelPort &data);
73
74 bool isModified();
75 void rollback();
76 void commit();
77 void copyFrom(ParallelPort *aThat);
78
79 // public methods for internal purposes only
80 // (ensure there is a caller and a read lock before calling them!)
81
82private:
83 HRESULT checkSetPath(const Utf8Str &str);
84
85 struct Data;
86 Data *m;
87};
88
89#endif // ____H_FLOPPYDRIVEIMPL
90/* vi: set tabstop=4 shiftwidth=4 expandtab: */
Note: See TracBrowser for help on using the repository browser.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette