VirtualBox

Ignore:
Timestamp:
Dec 10, 2013 4:49:59 PM (11 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
91233
Message:

6813 - User server side API wrapper code in all interfaces.. stage 4 rev 1

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/include/ParallelPortImpl.h

    r41214 r49871  
    66
    77/*
    8  * Copyright (C) 2006-2012 Oracle Corporation
     8 * Copyright (C) 2006-2013 Oracle Corporation
    99 *
    1010 * This file is part of VirtualBox Open Source Edition (OSE), as
     
    2020#define ____H_PARALLELPORTIMPL
    2121
    22 #include "VirtualBoxBase.h"
     22#include "ParallelPortWrap.h"
    2323
    2424namespace settings
     
    2828
    2929class ATL_NO_VTABLE ParallelPort :
    30     public VirtualBoxBase,
    31     VBOX_SCRIPTABLE_IMPL(IParallelPort)
     30    public ParallelPortWrap
    3231{
    3332public:
    34     VIRTUALBOXBASE_ADD_ERRORINFO_SUPPORT(ParallelPort, IParallelPort)
    3533
    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)
    4635
    4736    HRESULT FinalConstruct();
     
    5443    void uninit();
    5544
    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);
    6647
    6748    // 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);
    7953
    8054private:
    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);
    8268
    8369    struct Data;
Note: See TracChangeset for help on using the changeset viewer.

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