Ananas Library 0.9.5
itemplate.h
1/****************************************************************************
2** $Id: itemplate.h,v 1.8 2007/08/04 14:29:02 app Exp $
3**
4** Report metadata object header file of
5** Ananas application library
6**
7** Created : 20031201
8**
9** Copyright (C) 2003-2004 Leader InfoTech. All rights reserved.
10** Copyright (C) 2003-2005 Grigory Panov, Yoshkar-Ola.
11**
12** This file is part of the Designer application of the Ananas
13** automation accounting system.
14**
15** This file may be distributed and/or modified under the terms of the
16** GNU General Public License version 2 as published by the Free Software
17** Foundation and appearing in the file LICENSE.GPL included in the
18** packaging of this file.
19**
20** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
21** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
22**
23** See http://www.leaderit.ru/page=ananas or email sales@leaderit.ru
24** See http://www.leaderit.ru/gpl/ for GPL licensing information.
25**
26** Contact org@leaderit.ru if any conditions of this licensing are
27** not clear to you.
28**
29**********************************************************************/
30
31#ifndef ITEMPLATE_H
32#define ITEMPLATE_H
33
34#include "ananasglobal.h"
35
36#include <qobject.h>
37//#include <qdict.h>
38//#include <qstringlist.h>
39
58class ANANAS_EXPORT iTemplate : public QObject
59{
60 Q_OBJECT
61public:
62 iTemplate();
63 virtual ~iTemplate();
64
65 virtual bool open( const QString &fname )=0;
66 virtual void close();
67 virtual void clear();
68 virtual QString getValue( const QString &name );
69 virtual void setValue( const QString &name, const QString &value );
70 virtual QString exec( const QString &sname );
71 virtual QString result();
72 virtual bool save( const QString & fname );
73 virtual void cleanUpTags();
74 virtual void setDir(const QString &dir);
75 virtual QString getDir();
76};
77
78#endif //ITEMPLATE_H
Интерфейс для работы с отчетами. Наследует QObject.
Definition itemplate.h:59