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 
39 class aObject;
40 
60 class ANANAS_EXPORT AExtMeta : public AExtension
61 {
62  Q_OBJECT
63 
64 public:
65 
66  AExtMeta();
67  ~AExtMeta();
68 public:
69 
70 public 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
Definition: aextension.h:45
Базовый класс для невизуальных классов (моделей в терм...
Definition: aobject.h:63
Предоставляет доступ к интервейсу метаданных из Анана...
Definition: aext_meta.h:60