Make sure to include audiohw.h in settings.h or the definition of struct user_setting...
[kugel-rb.git] / rbutil / rbutilqt / base / serverinfo.h
blob6683a7adab7bab9e1e268e611dbf5f23e579280b
1 /***************************************************************************
2 * __________ __ ___.
3 * Open \______ \ ____ ____ | | _\_ |__ _______ ___
4 * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
5 * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
6 * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
7 * \/ \/ \/ \/ \/
9 * Copyright (C) 2010 by Dominik Wenger
10 * $Id$
12 * This program is free software; you can redistribute it and/or
13 * modify it under the terms of the GNU General Public License
14 * as published by the Free Software Foundation; either version 2
15 * of the License, or (at your option) any later version.
17 * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
18 * KIND, either express or implied.
20 ****************************************************************************/
22 #ifndef SERVERINFO_H
23 #define SERVERINFO_H
25 #include <QtCore>
27 class ServerInfo : public QObject
29 Q_OBJECT
30 public:
32 //! All Server infos
33 enum ServerInfos {
34 CurReleaseVersion,
35 CurStatus,
36 DailyRevision,
37 DailyDate,
38 BleedingRevision,
39 BleedingDate,
42 //! read in buildinfo file
43 static void readBuildInfo(QString file);
44 //! read in bleeding info file
45 static void readBleedingInfo(QString file);
46 //! get a value from server info
47 static QVariant value(enum ServerInfos setting);
48 //! get a value from server info for a named platform.
49 static QVariant platformValue(QString platform, enum ServerInfos setting);
51 private:
52 //! set a server info value
53 static void setValue(enum ServerInfos setting , QVariant value);
54 //! set a value for a server info for a named platform.
55 static void setPlatformValue(QString platform, enum ServerInfos setting, QVariant value);
56 //! you shouldnt call this, its a fully static class
57 ServerInfo() {}
59 //! map of server infos
60 static QMap<QString, QVariant> serverInfos;
64 #endif