00001 /**************************************************************************** 00002 ** $Id: aext_meta.h,v 1.3 2007/05/23 10:48:33 app Exp $ 00003 ** 00004 ** Extension object header file of 00005 ** Ananas application library 00006 ** 00007 ** Created : 20031201 00008 ** 00009 ** Copyright (C) 2006 Andrey Paskal 00010 ** 00011 ** This file is part of the Designer application 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 AEXT_META_H 00031 #define AEXT_META_H 00032 00033 00034 00035 #include "aextension.h" 00036 #include "acfg.h" 00037 00057 class ANANAS_EXPORT AExtMeta : public AExtension 00058 { 00059 Q_OBJECT 00060 00061 public: 00062 00063 AExtMeta(); 00064 ~AExtMeta(); 00065 public: 00066 00067 public slots: 00068 QString GetBaseClassName(const long &ClassId); 00069 QString GetClassName(const long &ClassId); 00070 QString GetBaseClassNameByObjectUid(const long &ObjectUid); 00071 QString GetClassNameByObjectUid(const long &ObjectUid); 00072 int CountByClassName(const QString &className); 00073 QStringList DataTypes(const QString &className = NULL); 00074 QString StringOfDataTypes(const QString &className = NULL, const QString &separator = ":"); 00075 int GetId( QString& name ); 00076 00077 }; 00078 00079 00080 #endif //AEXT_META_H