VirtualBox

source: vbox/trunk/src/VBox/Frontends/VirtualBox/src/globals/UIMachineAttributeSetter.h@ 79959

Last change on this file since 79959 was 79959, checked in by vboxsync, 6 years ago

FE/Qt: bugref:7720: VirtualBox Manager: Details pane: Possibility to edit VM base memory size on-the-fly.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 1.6 KB
Line 
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. */
29enum 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. */
39namespace 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}
46using namespace UIMachineAttributeSetter /* if header included */;
47
48#endif /* !FEQT_INCLUDED_SRC_globals_UIMachineAttributeSetter_h */
Note: See TracBrowser for help on using the repository browser.

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