Ananas Library 0.9.5
acfgrc.h
1/****************************************************************************
2** $Id: acfgrc.h,v 1.9 2008/07/30 15:58:51 leader Exp $
3**
4** Header file of the recorse work file of Ananas
5** Designer and Engine applications
6**
7** Created : 20031201
8**
9** Copyright (C) 2003-2004 Leader InfoTech. All rights reserved.
10**
11** This file is part of the Library of the Ananas
12** automation accounting system.
13**
14** This file may be distributed and/or modified under the terms of the
15** GNU General Public License version 2 as published by the Free Software
16** Foundation and appearing in the file LICENSE.GPL included in the
17** packaging of this file.
18**
19** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
20** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
21**
22** See http://www.leaderit.ru/page=ananas or email sales@leaderit.ru
23** See http://www.leaderit.ru/gpl/ for GPL licensing information.
24**
25** Contact org@leaderit.ru if any conditions of this licensing are
26** not clear to you.
27**
28**********************************************************************/
29
30#ifndef ACFGRC_H
31#define ACFGRC_H
32
33#include "ananasglobal.h"
34
35#include <qobject.h>
36#include <qdict.h>
37
38QPixmap ANANAS_EXPORT rcIcon(const char *name);
39void ANANAS_EXPORT setMessageHandler(bool GUI = false);
40void ANANAS_EXPORT unsetMessageHandler();
41
52class ANANAS_EXPORT aCfgRc: public QObject
53{
54public:
55 aCfgRc();
56 int read(const QString &fname);
57 int write(const QString &fname);
58 int write();
59 QString value(const QString &name, const QString &defValue = QString::null );
60 void setValue(const QString &name, const QString &value);
61 int count();
62 QString getRcFileName();
63
64private:
65 QString filename;
66 QDict <QString> values;
67};
68
69#endif
Класс для работы с файлом ресурсов.
Definition acfgrc.h:53