kexi

kexiuseraction.h
1#ifndef KEXIUSERACTION_H
2#define KEXIUSERACTION_H
3
4#include <tdeaction.h>
5
6#include "kexiuseractionmethod.h"
7
8namespace KexiDB
9{
10 class Cursor;
11}
12class KexiMainWindow;
13typedef TQValueVector<TQVariant> Arguments;
14
19class KEXICORE_EXPORT KexiUserAction : public TDEAction
20{
21 TQ_OBJECT
22
23
24 public:
27 {
28 MethodNone = 0,
29 OpenObject = 1,
30 CloseObject = 2,
31 DeleteObject = 3,
32 ExecuteScript = 4,
33 ExitKexi = 5,
34
35 LastMethod = 6 //use the last integer here... so we can stop iteration
36 };
37
40 {
41 String = 0,
42 Integer = 1,
43 Bool = 2,
44 KexiPart = 3,
45 KexiItem = 4
46 };
47
51 KexiUserAction(KexiMainWindow *context, TDEActionCollection *parent, const TQString &name, const TQString &text, const TQString &pixmap);
53
63 void setMethod(int method, Arguments args);
64
67 static KexiUserAction *fromCurrentRecord(KexiMainWindow *context, TDEActionCollection *parent, KexiDB::Cursor *c);
68
69 protected slots:
73 void execute();
74
75 private:
76 KexiMainWindow *m_win;
77 int m_method;
78 Arguments m_args;
79};
80
81#endif
82
Provides database cursor functionality.
Definition cursor.h:67
Kexi's main window interface This interface is implemented by KexiMainWindowImpl class.
KexiUserAction(KexiMainWindow *context, TDEActionCollection *parent, const TQString &name, const TQString &text, const TQString &pixmap)
High-level database connectivity library with database backend drivers.