Ananas Library 0.9.5
wreport.h
1/****************************************************************************
2** $Id: wreport.h,v 1.4 2006/09/27 12:02:30 gr Exp $
3**
4** Header file of the report plugin 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 Ananas Plugins 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 WREPORT_H
31#define WREPORT_H
32#include <qwidgetplugin.h>
33#include "awidget.h"
34
35class QWidget;
36
37class QT_WIDGET_PLUGIN_EXPORT wReport : public aWidget
38{
39 Q_OBJECT
40public:
41 wReport( QWidget *parent = 0, WFlags fl = 0 );
42 virtual ~wReport();
43 bool checkStructure();
44 virtual void initObject( aDatabase *adb );
45 virtual QDialog* createEditor( QWidget *parent );
46 virtual QString displayString();
47 virtual bool isContainer() { return true; };
48
49 virtual Q_ULLONG uid();
50 virtual ERR_Code New();
51 virtual ERR_Code Update();
52 virtual ERR_Code TurnOn();
53 virtual ERR_Code Select( Q_ULLONG id );
54
55public slots:
56// QVariant value( const QString &name );
57// void setValue( const QString &name, QVariant &value );
58 int select( Q_ULLONG id );
59 Q_ULLONG insert();
60 int update();
61 int markDelete();
62
63private:
64
65};
66
67
68#endif // WREPORT_H
Класс для работы с СУБД. Ananas Data Abstraction Layer. Наследует QObject.
Definition adatabase.h:78
Базовый класс для визуальных объектов. Наследует QWidget.
Definition awidget.h:53
virtual ERR_Code Select(Q_ULLONG id)
Definition awidget.cpp:665
virtual QDialog * createEditor(QWidget *parent)
Definition awidget.cpp:347
virtual ERR_Code New()
Definition awidget.cpp:642
virtual bool checkStructure()
Definition awidget.cpp:302
virtual Q_ULLONG uid()
Definition awidget.cpp:443
virtual ERR_Code Update()
Definition awidget.cpp:689
virtual void initObject(aDatabase *adb)
Definition awidget.cpp:187
Definition wreport.h:38