include/config.h

Idź do dokumentacji tego pliku.
00001 /*
00002  * Getrap
00003  * Copyright 2008(C) Grzegorz 'milyges' Glinski
00004  *
00005  *
00006  *  This program is free software; you can redistribute it and/or modify it
00007  *  under the terms of the GNU General Public License as published by the Free
00008  *  Software Foundation; either version 2 of the License, or (at your option)
00009  *  any later version.
00010  *
00011  *  This program is distributed in the hope that it will be useful, but
00012  *  WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
00013  *  or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
00014  *  for more details.
00015  *
00016  *  You should have received a copy of the GNU General Public License along
00017  *  with this program; if not, write to the Free Software Foundation, Inc.,
00018  *  59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
00019  *
00020 */
00021 #ifndef __CONFIG_H
00022 #define __CONFIG_H
00023 
00024 #include <QString>
00025 #include <QStringList>
00026 #include <QList>
00027 #include <QFile>
00028 
00029 struct configItem
00030 {
00032  QString name;
00034  QString value;
00035 };
00036 
00040 class Config
00041 {
00042  private:
00044    static QList<struct configItem> mData;
00049    static QString getPath(void);
00050  public:
00054    static bool load();
00058    static bool save();
00064    static QString getValue(QString name);
00070    static void setValue(QString name, QString value);
00071 };
00072 
00073 #endif

Wygenerowano Wed Jan 14 10:00:50 2009 dla Getrap programem  doxygen 1.5.4