1 /***************************************************************************
3 * Open \______ \ ____ ____ | | _\_ |__ _______ ___
4 * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
5 * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
6 * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
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 ****************************************************************************/
26 class ServerInfo
: public QObject
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
);
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
57 //! map of server infos
58 static QMap
<QString
, QVariant
> serverInfos
;