Fix advanced EQ menu
[maemo-rb.git] / rbutil / rbutilqt / base / serverinfo.h
blob94b2818f73fb71e3876c784859fcc85197f95efd
1 /***************************************************************************
2 * __________ __ ___.
3 * Open \______ \ ____ ____ | | _\_ |__ _______ ___
4 * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
5 * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
6 * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
7 * \/ \/ \/ \/ \/
9 * Copyright (C) 2010 by Dominik Wenger
11 * This program is free software; you can redistribute it and/or
12 * modify it under the terms of the GNU General Public License
13 * as published by the Free Software Foundation; either version 2
14 * of the License, or (at your option) any later version.
16 * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
17 * KIND, either express or implied.
19 ****************************************************************************/
21 #ifndef SERVERINFO_H
22 #define SERVERINFO_H
24 #include <QtCore>
26 class ServerInfo : public QObject
28 Q_OBJECT
29 public:
31 //! All Server infos
32 enum ServerInfos {
33 CurReleaseVersion,
34 CurStatus,
35 CurReleaseUrl,
36 CurDevelUrl,
37 ManualPdfUrl,
38 ManualHtmlUrl,
39 ManualZipUrl,
40 BleedingRevision,
41 BleedingDate,
42 RelCandidateVersion,
43 RelCandidateUrl,
46 //! read in buildinfo file
47 static void readBuildInfo(QString file);
48 //! get a value from server info
49 static QVariant value(enum ServerInfos setting);
50 //! get a value from server info for a named platform.
51 static QVariant platformValue(QString platform, enum ServerInfos setting);
53 private:
54 //! set a server info value
55 static void setValue(enum ServerInfos setting, QVariant value);
56 //! set a value for a server info for a named platform.
57 static void setPlatformValue(QString platform, enum ServerInfos setting, QVariant value);
58 //! you shouldnt call this, its a fully static class
59 ServerInfo() {}
61 //! map of server infos
62 static QMap<QString, QVariant> serverInfos;
66 #endif