VirtualBox

source: vbox/trunk/src/VBox/Frontends/VirtualBox/src/settings/global/UIGlobalSettingsUpdate.h@ 33882

Last change on this file since 33882 was 33882, checked in by vboxsync, 14 years ago

FE/Qt: Global & Machine settings refactoring, part 1 (files & classes renaming).

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 2.3 KB
Line 
1/** @file
2 *
3 * VBox frontends: Qt4 GUI ("VirtualBox"):
4 * UIGlobalSettingsUpdate class declaration
5 */
6
7/*
8 * Copyright (C) 2006-2010 Oracle Corporation
9 *
10 * This file is part of VirtualBox Open Source Edition (OSE), as
11 * available from http://www.virtualbox.org. This file is free software;
12 * you can redistribute it and/or modify it under the terms of the GNU
13 * General Public License (GPL) as published by the Free Software
14 * Foundation, in version 2 as it comes in the "COPYING" file of the
15 * VirtualBox OSE distribution. VirtualBox OSE is distributed in the
16 * hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
17 */
18
19#ifndef __UIGlobalSettingsUpdate_h__
20#define __UIGlobalSettingsUpdate_h__
21
22#include "UISettingsPage.h"
23#include "UIGlobalSettingsUpdate.gen.h"
24#include "VBoxUpdateDlg.h"
25
26/* Global settings / Update page / Cache: */
27struct UISettingsCacheGlobalUpdate
28{
29 bool m_fCheckEnabled;
30 VBoxUpdateData::PeriodType m_periodIndex;
31 VBoxUpdateData::BranchType m_branchIndex;
32 QString m_strDate;
33};
34
35/* Global settings / Update page: */
36class UIGlobalSettingsUpdate : public UISettingsPageGlobal,
37 public Ui::UIGlobalSettingsUpdate
38{
39 Q_OBJECT;
40
41public:
42
43 UIGlobalSettingsUpdate();
44
45protected:
46
47 /* Load data to cashe from corresponding external object(s),
48 * this task COULD be performed in other than GUI thread: */
49 void loadToCacheFrom(QVariant &data);
50 /* Load data to corresponding widgets from cache,
51 * this task SHOULD be performed in GUI thread only: */
52 void getFromCache();
53
54 /* Save data from corresponding widgets to cache,
55 * this task SHOULD be performed in GUI thread only: */
56 void putToCache();
57 /* Save data from cache to corresponding external object(s),
58 * this task COULD be performed in other than GUI thread: */
59 void saveFromCacheTo(QVariant &data);
60
61 void setOrderAfter (QWidget *aWidget);
62
63 void retranslateUi();
64
65private slots:
66
67 void toggleUpdater (bool aOn);
68 void activatedPeriod (int aIndex);
69 void toggledBranch();
70
71private:
72
73 void showEvent (QShowEvent *aEvent);
74
75 VBoxUpdateData::PeriodType periodType() const;
76 VBoxUpdateData::BranchType branchType() const;
77
78 bool mSettingsChanged;
79 QRadioButton *mLastChosen;
80
81 /* Cache: */
82 UISettingsCacheGlobalUpdate m_cache;
83};
84
85#endif // __UIGlobalSettingsUpdate_h__
86
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