Remove "daily builds" from Rockbox Utility.
[maemo-rb.git] / rbutil / rbutilqt / base / serverinfo.h
blob37a0953e3dd21cd450a07292e47f811d79c11cf1
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 DailyDate,
36 BleedingRevision,
37 BleedingDate,
40 //! read in buildinfo file
41 static void readBuildInfo(QString file);
42 //! read in bleeding info file
43 static void readBleedingInfo(QString file);
44 //! get a value from server info
45 static QVariant value(enum ServerInfos setting);
46 //! get a value from server info for a named platform.
47 static QVariant platformValue(QString platform, enum ServerInfos setting);
49 private:
50 //! set a server info value
51 static void setValue(enum ServerInfos setting , QVariant value);
52 //! set a value for a server info for a named platform.
53 static void setPlatformValue(QString platform, enum ServerInfos setting, QVariant value);
54 //! you shouldnt call this, its a fully static class
55 ServerInfo() {}
57 //! map of server infos
58 static QMap<QString, QVariant> serverInfos;
62 #endif