3
* VBox frontends: Qt4 GUI ("VirtualBox"):
4
* VBoxUpdateDlg class declaration
8
* Copyright (C) 2006-2008 Sun Microsystems, Inc.
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.
18
* Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa
19
* Clara, CA 95054 USA or visit http://www.sun.com if you need
20
* additional information or have any questions.
23
#ifndef __VBoxUpdateDlg_h__
24
#define __VBoxUpdateDlg_h__
26
#include "QIAbstractWizard.h"
27
#include "QIWithRetranslateUI.h"
28
#include "VBoxUpdateDlg.gen.h"
37
* This structure is used to store retranslated reminder values.
41
UpdateDay (const QString &aVal, const QString &aKey)
42
: val (aVal), key (aKey) {}
47
bool operator== (const UpdateDay &aOther)
49
return val == aOther.val || key == aOther.key;
54
* This class is used to encode/decode the registration data.
83
static void populate();
84
static QStringList list();
86
VBoxUpdateData (const QString &aData);
87
VBoxUpdateData (PeriodType aPeriodIndex, BranchType aBranchIndex);
90
bool isNoNeedToCheck();
93
PeriodType periodIndex() const;
95
BranchType branchIndex() const;
96
QString branchName() const;
100
/* Private functions */
104
/* Private variables */
105
static QList <UpdateDay> mDayList;
108
PeriodType mPeriodIndex;
110
BranchType mBranchIndex;
113
class VBoxUpdateDlg : public QIWithRetranslateUI <QIAbstractWizard>,
114
public Ui::VBoxUpdateDlg
120
static bool isNecessary();
122
VBoxUpdateDlg (VBoxUpdateDlg **aSelf, bool aForceRun, QWidget *aParent = 0);
131
void retranslateUi();
136
void searchResponse (bool aError);
141
void abortRequest (const QString &aReason);
143
/* Private variables */
144
VBoxUpdateDlg **mSelf;
150
#endif // __VBoxUpdateDlg_h__