Ananas Library 0.9.5
aext_meta.h
1/****************************************************************************
2** $Id: aext_meta.h,v 1.6 2008/12/19 12:21:20 app Exp $
3**
4** Extension object header file of
5** Ananas application library
6**
7** Created : 20031201
8**
9** Copyright (C) 2006 Andrey Paskal
10**
11** This file is part of the Designer application 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 AEXT_META_H
31#define AEXT_META_H
32
33
34
35#include "aextension.h"
36#include "acfg.h"
37#include "aobject.h"
38
39class aObject;
40
60class ANANAS_EXPORT AExtMeta : public AExtension
61{
62 Q_OBJECT
63
64public:
65
66 AExtMeta();
67 ~AExtMeta();
68public:
69
70public slots:
71 QString GetBaseClassName(const long &ClassId);
72 QString GetClassName(const long &ClassId);
73 QString GetBaseClassNameByObjectUid(const long &ObjectUid);
74 QString GetClassNameByObjectUid(const long &ObjectUid);
75 int CountByClassName(const QString &className);
76 QStringList DataTypes(const QString &className = NULL);
77 QString StringOfDataTypes(const QString &className = NULL, const QString &separator = ":");
78 int GetId( QString& name );
79 int GetId( aObject * obj );
80 QStringList GetUserFields( QString name, QString table = QString::null );
81 QStringList GetUserFields( aObject * obj, QString table = QString::null );
82 QString GetAttrType(QString name, QString attr, QString table = QString::null);
83 QString GetAttrType(aObject *obj, QString attr, QString table = QString::null);
84};
85
86
87#endif //AEXT_META_H
int GetId(QString &name)
Definition aext_meta.cpp:283
QStringList DataTypes(const QString &className=NULL)
Definition aext_meta.cpp:204
QStringList GetUserFields(QString name, QString table=QString::null)
Definition aext_meta.cpp:330
QString GetClassNameByObjectUid(const long &ObjectUid)
Definition aext_meta.cpp:159
QString GetBaseClassNameByObjectUid(const long &ObjectUid)
Definition aext_meta.cpp:135
int CountByClassName(const QString &className)
Definition aext_meta.cpp:181
QString StringOfDataTypes(const QString &className=NULL, const QString &separator=":")
Definition aext_meta.cpp:252
QString GetAttrType(QString name, QString attr, QString table=QString::null)
Definition aext_meta.cpp:398
AExtMeta()
Definition aext_meta.cpp:47
QString GetBaseClassName(const long &ClassId)
Definition aext_meta.cpp:110
QString GetClassName(const long &ClassId)
Definition aext_meta.cpp:84
Definition aobject.h:64