00001 /**************************************************************************** 00002 ** $Id: wreport.h,v 1.4 2006/09/27 12:02:30 gr Exp $ 00003 ** 00004 ** Header file of the report plugin of Ananas 00005 ** Designer and Engine applications 00006 ** 00007 ** Created : 20031201 00008 ** 00009 ** Copyright (C) 2003-2004 Leader InfoTech. All rights reserved. 00010 ** 00011 ** This file is part of the Ananas Plugins of the Ananas 00012 ** automation accounting system. 00013 ** 00014 ** This file may be distributed and/or modified under the terms of the 00015 ** GNU General Public License version 2 as published by the Free Software 00016 ** Foundation and appearing in the file LICENSE.GPL included in the 00017 ** packaging of this file. 00018 ** 00019 ** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE 00020 ** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. 00021 ** 00022 ** See http://www.leaderit.ru/page=ananas or email sales@leaderit.ru 00023 ** See http://www.leaderit.ru/gpl/ for GPL licensing information. 00024 ** 00025 ** Contact org@leaderit.ru if any conditions of this licensing are 00026 ** not clear to you. 00027 ** 00028 **********************************************************************/ 00029 00030 #ifndef WREPORT_H 00031 #define WREPORT_H 00032 #include <qwidgetplugin.h> 00033 #include "awidget.h" 00034 00035 class QWidget; 00036 00037 class QT_WIDGET_PLUGIN_EXPORT wReport : public aWidget 00038 { 00039 Q_OBJECT 00040 public: 00041 wReport( QWidget *parent = 0, WFlags fl = 0 ); 00042 virtual ~wReport(); 00043 bool checkStructure(); 00044 virtual void initObject( aDatabase *adb ); 00045 virtual QDialog* createEditor( QWidget *parent ); 00046 virtual QString displayString(); 00047 virtual bool isContainer() { return true; }; 00048 00049 virtual Q_ULLONG uid(); 00050 virtual ERR_Code New(); 00051 virtual ERR_Code Update(); 00052 virtual ERR_Code TurnOn(); 00053 virtual ERR_Code Select( Q_ULLONG id ); 00054 00055 public slots: 00056 // QVariant value( const QString &name ); 00057 // void setValue( const QString &name, QVariant &value ); 00058 int select( Q_ULLONG id ); 00059 Q_ULLONG insert(); 00060 int update(); 00061 int markDelete(); 00062 00063 private: 00064 00065 }; 00066 00067 00068 #endif // WREPORT_H