VirtualBox

source: vbox/trunk/src/VBox/Main/include/AudioAdapterImpl.h@ 86672

Last change on this file since 86672 was 82968, checked in by vboxsync, 5 years ago

Copyright year updates by scm.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 2.6 KB
Line 
1/* $Id: AudioAdapterImpl.h 82968 2020-02-04 10:35:17Z vboxsync $ */
2
3/** @file
4 *
5 * VirtualBox COM class implementation
6 */
7
8/*
9 * Copyright (C) 2006-2020 Oracle Corporation
10 *
11 * This file is part of VirtualBox Open Source Edition (OSE), as
12 * available from http://www.virtualbox.org. This file is free software;
13 * you can redistribute it and/or modify it under the terms of the GNU
14 * General Public License (GPL) as published by the Free Software
15 * Foundation, in version 2 as it comes in the "COPYING" file of the
16 * VirtualBox OSE distribution. VirtualBox OSE is distributed in the
17 * hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
18 */
19
20#ifndef MAIN_INCLUDED_AudioAdapterImpl_h
21#define MAIN_INCLUDED_AudioAdapterImpl_h
22#ifndef RT_WITHOUT_PRAGMA_ONCE
23# pragma once
24#endif
25
26#include "AudioAdapterWrap.h"
27namespace settings
28{
29 struct AudioAdapter;
30}
31
32class ATL_NO_VTABLE AudioAdapter :
33 public AudioAdapterWrap
34{
35public:
36
37 DECLARE_EMPTY_CTOR_DTOR (AudioAdapter)
38
39 HRESULT FinalConstruct();
40 void FinalRelease();
41
42 // public initializer/uninitializer for internal purposes only
43 HRESULT init(Machine *aParent);
44 HRESULT init(Machine *aParent, AudioAdapter *aThat);
45 HRESULT initCopy(Machine *aParent, AudioAdapter *aThat);
46 void uninit();
47
48
49 // public methods only for internal purposes
50 HRESULT i_loadSettings(const settings::AudioAdapter &data);
51 HRESULT i_saveSettings(settings::AudioAdapter &data);
52
53 void i_rollback();
54 void i_commit();
55 void i_copyFrom(AudioAdapter *aThat);
56
57private:
58
59 // wrapped IAudioAdapter properties
60 HRESULT getEnabled(BOOL *aEnabled);
61 HRESULT setEnabled(BOOL aEnabled);
62 HRESULT getEnabledIn(BOOL *aEnabled);
63 HRESULT setEnabledIn(BOOL aEnabled);
64 HRESULT getEnabledOut(BOOL *aEnabled);
65 HRESULT setEnabledOut(BOOL aEnabled);
66 HRESULT getAudioDriver(AudioDriverType_T *aAudioDriver);
67 HRESULT setAudioDriver(AudioDriverType_T aAudioDriver);
68 HRESULT getAudioController(AudioControllerType_T *aAudioController);
69 HRESULT setAudioController(AudioControllerType_T aAudioController);
70 HRESULT getAudioCodec(AudioCodecType_T *aAudioCodec);
71 HRESULT setAudioCodec(AudioCodecType_T aAudioCodec);
72 HRESULT getPropertiesList(std::vector<com::Utf8Str>& aProperties);
73 HRESULT getProperty(const com::Utf8Str &aKey, com::Utf8Str &aValue);
74 HRESULT setProperty(const com::Utf8Str &aKey, const com::Utf8Str &aValue);
75
76 Machine * const mParent;
77 const ComObjPtr<AudioAdapter> mPeer;
78 Backupable<settings::AudioAdapter> mData;
79};
80
81#endif /* !MAIN_INCLUDED_AudioAdapterImpl_h */
82/* 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