1 | /* $Id: UIMachineAttributeSetter.h 79959 2019-07-24 13:57:03Z vboxsync $ */
|
---|
2 | /** @file
|
---|
3 | * VBox Qt GUI - UIMachineAttributeSetter namespace declaration.
|
---|
4 | */
|
---|
5 |
|
---|
6 | /*
|
---|
7 | * Copyright (C) 2019 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 FEQT_INCLUDED_SRC_globals_UIMachineAttributeSetter_h
|
---|
19 | #define FEQT_INCLUDED_SRC_globals_UIMachineAttributeSetter_h
|
---|
20 | #ifndef RT_WITHOUT_PRAGMA_ONCE
|
---|
21 | # pragma once
|
---|
22 | #endif
|
---|
23 |
|
---|
24 | /* COM includes: */
|
---|
25 | #include "COMEnums.h"
|
---|
26 | #include "CMachine.h"
|
---|
27 |
|
---|
28 | /** Known machine attributes. */
|
---|
29 | enum MachineAttribute
|
---|
30 | {
|
---|
31 | MachineAttribute_Invalid,
|
---|
32 | MachineAttribute_Name,
|
---|
33 | MachineAttribute_OSType,
|
---|
34 | MachineAttribute_Location,
|
---|
35 | MachineAttribute_BaseMemory,
|
---|
36 | };
|
---|
37 |
|
---|
38 | /** Namespace used to assign CMachine attributes on more convenient basis. */
|
---|
39 | namespace UIMachineAttributeSetter
|
---|
40 | {
|
---|
41 | /** Assigns @a comMachine @a guiAttribute of specified @a enmType. */
|
---|
42 | SHARED_LIBRARY_STUFF void setMachineAttribute(const CMachine &comMachine,
|
---|
43 | const MachineAttribute &enmType,
|
---|
44 | const QVariant &guiAttribute);
|
---|
45 | }
|
---|
46 | using namespace UIMachineAttributeSetter /* if header included */;
|
---|
47 |
|
---|
48 | #endif /* !FEQT_INCLUDED_SRC_globals_UIMachineAttributeSetter_h */
|
---|