1 | /* $Id: UIDetailsGenerator.h 103803 2024-03-12 11:15:18Z vboxsync $ */
|
---|
2 | /** @file
|
---|
3 | * VBox Qt GUI - UIDetailsGenerator declaration.
|
---|
4 | */
|
---|
5 |
|
---|
6 | /*
|
---|
7 | * Copyright (C) 2012-2023 Oracle and/or its affiliates.
|
---|
8 | *
|
---|
9 | * This file is part of VirtualBox base platform packages, as
|
---|
10 | * available from https://www.virtualbox.org.
|
---|
11 | *
|
---|
12 | * This program is free software; you can redistribute it and/or
|
---|
13 | * modify it under the terms of the GNU General Public License
|
---|
14 | * as published by the Free Software Foundation, in version 3 of the
|
---|
15 | * License.
|
---|
16 | *
|
---|
17 | * This program is distributed in the hope that it will be useful, but
|
---|
18 | * WITHOUT ANY WARRANTY; without even the implied warranty of
|
---|
19 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
---|
20 | * General Public License for more details.
|
---|
21 | *
|
---|
22 | * You should have received a copy of the GNU General Public License
|
---|
23 | * along with this program; if not, see <https://www.gnu.org/licenses>.
|
---|
24 | *
|
---|
25 | * SPDX-License-Identifier: GPL-3.0-only
|
---|
26 | */
|
---|
27 |
|
---|
28 | #ifndef FEQT_INCLUDED_SRC_globals_UIDetailsGenerator_h
|
---|
29 | #define FEQT_INCLUDED_SRC_globals_UIDetailsGenerator_h
|
---|
30 | #ifndef RT_WITHOUT_PRAGMA_ONCE
|
---|
31 | # pragma once
|
---|
32 | #endif
|
---|
33 |
|
---|
34 | /* GUI includes: */
|
---|
35 | #include "UIExtraDataDefs.h"
|
---|
36 | #include "UITextTable.h"
|
---|
37 |
|
---|
38 | /* COM includes: */
|
---|
39 | #include "KParavirtProvider.h"
|
---|
40 | #include "KVMExecutionEngine.h"
|
---|
41 |
|
---|
42 | /* Forward declarations: */
|
---|
43 | class CCloudMachine;
|
---|
44 | class CConsole;
|
---|
45 | class CFormValue;
|
---|
46 | class CGuest;
|
---|
47 | class CMachine;
|
---|
48 | class CNetworkAdapter;
|
---|
49 |
|
---|
50 | /** Details generation namespace. */
|
---|
51 | namespace UIDetailsGenerator
|
---|
52 | {
|
---|
53 | SHARED_LIBRARY_STUFF UITextTable generateMachineInformationGeneral(CMachine &comMachine,
|
---|
54 | const UIExtraDataMetaDefs::DetailsElementOptionTypeGeneral &fOptions);
|
---|
55 |
|
---|
56 | SHARED_LIBRARY_STUFF UITextTable generateMachineInformationGeneral(CCloudMachine &comCloudMachine,
|
---|
57 | const UIExtraDataMetaDefs::DetailsElementOptionTypeGeneral &fOptions);
|
---|
58 | SHARED_LIBRARY_STUFF QString generateFormValueInformation(const CFormValue &comFormValue, bool fFull = false);
|
---|
59 |
|
---|
60 | SHARED_LIBRARY_STUFF UITextTable generateMachineInformationSystem(CMachine &comMachine,
|
---|
61 | const UIExtraDataMetaDefs::DetailsElementOptionTypeSystem &fOptions);
|
---|
62 |
|
---|
63 | SHARED_LIBRARY_STUFF UITextTable generateMachineInformationDisplay(CMachine &comMachine,
|
---|
64 | const UIExtraDataMetaDefs::DetailsElementOptionTypeDisplay &fOptions);
|
---|
65 |
|
---|
66 | SHARED_LIBRARY_STUFF UITextTable generateMachineInformationStorage(CMachine &comMachine,
|
---|
67 | const UIExtraDataMetaDefs::DetailsElementOptionTypeStorage &fOptions,
|
---|
68 | bool fLink = true);
|
---|
69 |
|
---|
70 | SHARED_LIBRARY_STUFF UITextTable generateMachineInformationAudio(CMachine &comMachine,
|
---|
71 | const UIExtraDataMetaDefs::DetailsElementOptionTypeAudio &fOptions);
|
---|
72 |
|
---|
73 | SHARED_LIBRARY_STUFF UITextTable generateMachineInformationNetwork(CMachine &comMachine,
|
---|
74 | const UIExtraDataMetaDefs::DetailsElementOptionTypeNetwork &fOptions);
|
---|
75 |
|
---|
76 | SHARED_LIBRARY_STUFF UITextTable generateMachineInformationSerial(CMachine &comMachine,
|
---|
77 | const UIExtraDataMetaDefs::DetailsElementOptionTypeSerial &fOptions);
|
---|
78 |
|
---|
79 | SHARED_LIBRARY_STUFF UITextTable generateMachineInformationUSB(CMachine &comMachine,
|
---|
80 | const UIExtraDataMetaDefs::DetailsElementOptionTypeUsb &fOptions);
|
---|
81 |
|
---|
82 | SHARED_LIBRARY_STUFF UITextTable generateMachineInformationSharedFolders(CMachine &comMachine,
|
---|
83 | const UIExtraDataMetaDefs::DetailsElementOptionTypeSharedFolders &fOptions);
|
---|
84 |
|
---|
85 | SHARED_LIBRARY_STUFF UITextTable generateMachineInformationUI(CMachine &comMachine,
|
---|
86 | const UIExtraDataMetaDefs::DetailsElementOptionTypeUserInterface &fOptions);
|
---|
87 |
|
---|
88 | SHARED_LIBRARY_STUFF UITextTable generateMachineInformationDescription(CMachine &comMachine,
|
---|
89 | const UIExtraDataMetaDefs::DetailsElementOptionTypeDescription &fOptions);
|
---|
90 |
|
---|
91 | SHARED_LIBRARY_STUFF void acquireHardDiskStatusInfo(CMachine &comMachine, QString &strInfo,
|
---|
92 | bool &fAttachmentsPresent);
|
---|
93 |
|
---|
94 | SHARED_LIBRARY_STUFF void acquireOpticalDiskStatusInfo(CMachine &comMachine, QString &strInfo,
|
---|
95 | bool &fAttachmentsPresent, bool &fAttachmentsMounted);
|
---|
96 |
|
---|
97 | SHARED_LIBRARY_STUFF void acquireFloppyDiskStatusInfo(CMachine &comMachine, QString &strInfo,
|
---|
98 | bool &fAttachmentsPresent, bool &fAttachmentsMounted);
|
---|
99 |
|
---|
100 | SHARED_LIBRARY_STUFF void acquireAudioStatusInfo(CMachine &comMachine, QString &strInfo,
|
---|
101 | bool &fAudioEnabled, bool &fEnabledOutput, bool &fEnabledInput);
|
---|
102 |
|
---|
103 | SHARED_LIBRARY_STUFF void acquireNetworkStatusInfo(CMachine &comMachine, QString &strInfo,
|
---|
104 | bool &fAdaptersPresent, bool &fCablesDisconnected);
|
---|
105 |
|
---|
106 | SHARED_LIBRARY_STUFF void acquireUsbStatusInfo(CMachine &comMachine, CConsole &comConsole,
|
---|
107 | QString &strInfo, bool &fUsbEnableds);
|
---|
108 |
|
---|
109 | SHARED_LIBRARY_STUFF void acquireSharedFoldersStatusInfo(CMachine &comMachine, CConsole &comConsole, CGuest &comGuest,
|
---|
110 | QString &strInfo, bool &fFoldersPresent);
|
---|
111 |
|
---|
112 | SHARED_LIBRARY_STUFF void acquireDisplayStatusInfo(CMachine &comMachine, QString &strInfo,
|
---|
113 | bool &fAcceleration3D);
|
---|
114 |
|
---|
115 | SHARED_LIBRARY_STUFF void acquireRecordingStatusInfo(CMachine &comMachine, QString &strInfo,
|
---|
116 | bool &fRecordingEnabled);
|
---|
117 |
|
---|
118 | SHARED_LIBRARY_STUFF void acquireFeaturesStatusInfo(CMachine &comMachine, QString &strInfo,
|
---|
119 | KVMExecutionEngine &enmEngine,
|
---|
120 | bool fNestedPagingEnabled, bool fUxEnabled,
|
---|
121 | KParavirtProvider enmProvider);
|
---|
122 |
|
---|
123 | SHARED_LIBRARY_STUFF QString summarizeGenericProperties(const CNetworkAdapter &comAdapter);
|
---|
124 |
|
---|
125 | /** Holds the table row format 1. */
|
---|
126 | extern const QString e_strTableRow1;
|
---|
127 | /** Holds the table row format 2. */
|
---|
128 | extern const QString e_strTableRow2;
|
---|
129 | /** Holds the table row format 3. */
|
---|
130 | extern const QString e_strTableRow3;
|
---|
131 | }
|
---|
132 |
|
---|
133 | #endif /* !FEQT_INCLUDED_SRC_globals_UIDetailsGenerator_h */
|
---|