1 | /** @file
|
---|
2 | * VBox Qt GUI - UIGlobalSettingsGeneral class declaration.
|
---|
3 | */
|
---|
4 |
|
---|
5 | /*
|
---|
6 | * Copyright (C) 2006-2013 Oracle Corporation
|
---|
7 | *
|
---|
8 | * This file is part of VirtualBox Open Source Edition (OSE), as
|
---|
9 | * available from http://www.virtualbox.org. This file is free software;
|
---|
10 | * you can redistribute it and/or modify it under the terms of the GNU
|
---|
11 | * General Public License (GPL) as published by the Free Software
|
---|
12 | * Foundation, in version 2 as it comes in the "COPYING" file of the
|
---|
13 | * VirtualBox OSE distribution. VirtualBox OSE is distributed in the
|
---|
14 | * hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
|
---|
15 | */
|
---|
16 |
|
---|
17 | #ifndef __UIGlobalSettingsGeneral_h__
|
---|
18 | #define __UIGlobalSettingsGeneral_h__
|
---|
19 |
|
---|
20 | /* Local includes */
|
---|
21 | #include "UISettingsPage.h"
|
---|
22 | #include "UIGlobalSettingsGeneral.gen.h"
|
---|
23 |
|
---|
24 | /* Global settings / General page / Cache: */
|
---|
25 | struct UISettingsCacheGlobalGeneral
|
---|
26 | {
|
---|
27 | QString m_strDefaultMachineFolder;
|
---|
28 | QString m_strVRDEAuthLibrary;
|
---|
29 | bool m_fHostScreenSaverDisabled;
|
---|
30 | };
|
---|
31 |
|
---|
32 | /* Global settings / General page: */
|
---|
33 | class UIGlobalSettingsGeneral : public UISettingsPageGlobal, public Ui::UIGlobalSettingsGeneral
|
---|
34 | {
|
---|
35 | Q_OBJECT;
|
---|
36 |
|
---|
37 | public:
|
---|
38 |
|
---|
39 | /* Constructor: */
|
---|
40 | UIGlobalSettingsGeneral();
|
---|
41 |
|
---|
42 | protected:
|
---|
43 |
|
---|
44 | /* Load data to cache from corresponding external object(s),
|
---|
45 | * this task COULD be performed in other than GUI thread: */
|
---|
46 | void loadToCacheFrom(QVariant &data);
|
---|
47 | /* Load data to corresponding widgets from cache,
|
---|
48 | * this task SHOULD be performed in GUI thread only: */
|
---|
49 | void getFromCache();
|
---|
50 |
|
---|
51 | /* Save data from corresponding widgets to cache,
|
---|
52 | * this task SHOULD be performed in GUI thread only: */
|
---|
53 | void putToCache();
|
---|
54 | /* Save data from cache to corresponding external object(s),
|
---|
55 | * this task COULD be performed in other than GUI thread: */
|
---|
56 | void saveFromCacheTo(QVariant &data);
|
---|
57 |
|
---|
58 | /* Helper: Navigation stuff: */
|
---|
59 | void setOrderAfter(QWidget *pWidget);
|
---|
60 |
|
---|
61 | /* Helper: Translation stuff: */
|
---|
62 | void retranslateUi();
|
---|
63 |
|
---|
64 | private:
|
---|
65 |
|
---|
66 | /* Cache: */
|
---|
67 | UISettingsCacheGlobalGeneral m_cache;
|
---|
68 | };
|
---|
69 |
|
---|
70 | #endif // __UIGlobalSettingsGeneral_h__
|
---|