VirtualBox

source: vbox/trunk/src/VBox/Main/include/HostOnlyNetworkImpl.h@ 94134

Last change on this file since 94134 was 93115, checked in by vboxsync, 3 years ago

scm --update-copyright-year

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 2.1 KB
Line 
1/* $Id: HostOnlyNetworkImpl.h 93115 2022-01-01 11:31:46Z vboxsync $ */
2/** @file
3 * IHostOnlyNetwork implementation header, lives in VBoxSVC.
4 */
5
6/*
7 * Copyright (C) 2021-2022 Oracle Corporation
8 *
9 * This file is part of VirtualBox Open Source Edition (OSE), as
10 * available from http://www.virtualbox.org. This file is free software;
11 * you can redistribute it and/or modify it under the terms of the GNU
12 * General Public License (GPL) as published by the Free Software
13 * Foundation, in version 2 as it comes in the "COPYING" file of the
14 * VirtualBox OSE distribution. VirtualBox OSE is distributed in the
15 * hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
16 */
17
18#ifndef MAIN_INCLUDED_HostOnlyNetworkImpl_h
19#define MAIN_INCLUDED_HostOnlyNetworkImpl_h
20#ifndef RT_WITHOUT_PRAGMA_ONCE
21# pragma once
22#endif
23
24#include "HostOnlyNetworkWrap.h"
25
26namespace settings
27{
28 struct HostOnlyNetwork;
29}
30
31class ATL_NO_VTABLE HostOnlyNetwork :
32 public HostOnlyNetworkWrap
33{
34public:
35
36 DECLARE_EMPTY_CTOR_DTOR(HostOnlyNetwork)
37
38 HRESULT FinalConstruct();
39 void FinalRelease();
40
41 HRESULT init(VirtualBox *aVirtualBox, com::Utf8Str aName);
42 HRESULT i_loadSettings(const settings::HostOnlyNetwork &data);
43 void uninit();
44 HRESULT i_saveSettings(settings::HostOnlyNetwork &data);
45
46 // Internal methods
47 // Utf8Str i_getNetworkName();
48 // Utf8Str i_getNetworkId();
49private:
50
51 // Wrapped IHostOnlyNetwork properties
52 HRESULT getNetworkName(com::Utf8Str &aNetworkName);
53 HRESULT setNetworkName(const com::Utf8Str &aNetworkName);
54 HRESULT getNetworkMask(com::Utf8Str &aNetworkMask);
55 HRESULT setNetworkMask(const com::Utf8Str &aNetworkMask);
56 HRESULT getEnabled(BOOL *aEnabled);
57 HRESULT setEnabled(BOOL aEnabled);
58 HRESULT getHostIP(com::Utf8Str &aHostIP);
59 HRESULT getLowerIP(com::Utf8Str &aLowerIP);
60 HRESULT setLowerIP(const com::Utf8Str &aLowerIP);
61 HRESULT getUpperIP(com::Utf8Str &aUpperIP);
62 HRESULT setUpperIP(const com::Utf8Str &aUpperIP);
63 HRESULT getId(com::Guid &aId);
64 HRESULT setId(const com::Guid &aId);
65
66 struct Data;
67 Data *m;
68};
69
70#endif /* !MAIN_INCLUDED_HostOnlyNetworkImpl_h */
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