1 /***************************************************************************
3 * Open \______ \ ____ ____ | | _\_ |__ _______ ___
4 * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
5 * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
6 * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
9 * Copyright (C) 2010 by Dominik Wenger
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 ****************************************************************************/
27 class ServerInfo
: public QObject
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
);
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
59 //! map of server infos
60 static QMap
<QString
, QVariant
> serverInfos
;