Eneboo - Documentación para desarrolladores
|
00001 /********************************************************************** 00002 ** 00003 ** Copyright (C) 2005-2007 Trolltech ASA. All rights reserved. 00004 ** 00005 ** This file is part of Qt Designer. 00006 ** 00007 ** This file may be distributed and/or modified under the terms of the 00008 ** GNU General Public License version 2 as published by the Free Software 00009 ** Foundation and appearing in the file LICENSE.GPL included in the 00010 ** packaging of this file. 00011 ** 00012 ** Licensees holding valid Qt Enterprise Edition or Qt Professional Edition 00013 ** licenses may use this file in accordance with the Qt Commercial License 00014 ** Agreement provided with the Software. 00015 ** 00016 ** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE 00017 ** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. 00018 ** 00019 ** See http://www.trolltech.com/gpl/ for GPL licensing information. 00020 ** See http://www.trolltech.com/pricing.html or email sales@trolltech.com for 00021 ** information about Qt Commercial License Agreements. 00022 ** 00023 ** Contact info@trolltech.com if any conditions of this licensing are 00024 ** not clear to you. 00025 ** 00026 **********************************************************************/ 00027 00028 #ifndef LANGUAGEINTERFACEIMPL_H 00029 #define LANGUAGEINTERFACEIMPL_H 00030 00031 #include <languageinterface.h> 00032 00033 class LanguageInterfaceImpl : public LanguageInterface 00034 { 00035 public: 00036 LanguageInterfaceImpl( QUnknownInterface *outer = 0 ); 00037 00038 ulong addRef(); 00039 ulong release(); 00040 00041 QRESULT queryInterface( const QUuid&, QUnknownInterface** ); 00042 00043 void functions( const QString &code, QValueList<Function> *funcs ) const; 00044 void connections( const QString &, QValueList<Connection> * ) const {}; 00045 QString createFunctionStart( const QString &className, const QString &func, 00046 const QString &returnType, const QString &access ); 00047 QStringList definitions() const; 00048 QStringList definitionEntries( const QString &definition, QUnknownInterface *designerIface ) const; 00049 void setDefinitionEntries( const QString &definition, const QStringList &entries, QUnknownInterface *designerIface ); 00050 QString createArguments( const QString & ) { return QString::null; } 00051 QString createEmptyFunction(); 00052 bool supports( Support s ) const; 00053 QStringList fileFilterList() const; 00054 QStringList fileExtensionList() const; 00055 void preferedExtensions( QMap<QString, QString> &extensionMap ) const; 00056 void sourceProjectKeys( QStringList &keys ) const; 00057 QString projectKeyForExtension( const QString &extension ) const; 00058 QString cleanSignature( const QString &sig ) { return sig; } // #### implement me 00059 void loadFormCode( const QString &, const QString &, 00060 QValueList<Function> &, 00061 QStringList &, 00062 QValueList<Connection> & ); 00063 QString formCodeExtension() const { return ".h"; } 00064 bool canConnect( const QString &signal, const QString &slot ); 00065 void compressProject( const QString &, const QString &, bool ) {} 00066 QString uncompressProject( const QString &, const QString & ) { return QString::null; } 00067 QString aboutText() const { return ""; } 00068 00069 void addConnection( const QString &, const QString &, 00070 const QString &, const QString &, 00071 QString * ) {} 00072 void removeConnection( const QString &, const QString &, 00073 const QString &, const QString &, 00074 QString * ) {} 00075 QStrList signalNames( QObject *obj ) const; 00076 00077 private: 00078 QUnknownInterface *parent; 00079 ulong ref; 00080 00081 }; 00082 00083 #endif