00001 /**************************************************************************** 00002 ** $Id: itemplate.h,v 1.8 2007/08/04 14:29:02 app Exp $ 00003 ** 00004 ** Report metadata object header file of 00005 ** Ananas application library 00006 ** 00007 ** Created : 20031201 00008 ** 00009 ** Copyright (C) 2003-2004 Leader InfoTech. All rights reserved. 00010 ** Copyright (C) 2003-2005 Grigory Panov, Yoshkar-Ola. 00011 ** 00012 ** This file is part of the Designer application of the Ananas 00013 ** automation accounting system. 00014 ** 00015 ** This file may be distributed and/or modified under the terms of the 00016 ** GNU General Public License version 2 as published by the Free Software 00017 ** Foundation and appearing in the file LICENSE.GPL included in the 00018 ** packaging of this file. 00019 ** 00020 ** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE 00021 ** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. 00022 ** 00023 ** See http://www.leaderit.ru/page=ananas or email sales@leaderit.ru 00024 ** See http://www.leaderit.ru/gpl/ for GPL licensing information. 00025 ** 00026 ** Contact org@leaderit.ru if any conditions of this licensing are 00027 ** not clear to you. 00028 ** 00029 **********************************************************************/ 00030 00031 #ifndef ITEMPLATE_H 00032 #define ITEMPLATE_H 00033 00034 #include "ananasglobal.h" 00035 00036 #include <qobject.h> 00037 //#include <qdict.h> 00038 //#include <qstringlist.h> 00039 00058 class ANANAS_EXPORT iTemplate : public QObject 00059 { 00060 Q_OBJECT 00061 public: 00062 iTemplate(); 00063 virtual ~iTemplate(); 00064 00065 virtual bool open( const QString &fname )=0; 00066 virtual void close(); 00067 virtual void clear(); 00068 virtual QString getValue( const QString &name ); 00069 virtual void setValue( const QString &name, const QString &value ); 00070 virtual QString exec( const QString &sname ); 00071 virtual QString result(); 00072 virtual bool save( const QString & fname ); 00073 virtual void cleanUpTags(); 00074 virtual void setDir(const QString &dir); 00075 virtual QString getDir(); 00076 }; 00077 00078 #endif //ITEMPLATE_H