00001 /*************************************************************************** 00002 qgspluginmetadata.cpp - Metadata class for 00003 describing a loaded plugin. 00004 ------------------- 00005 begin : Fri Feb 6 2004 00006 copyright : (C) 2004 by Gary E.Sherman 00007 email : sherman at mrcc.com 00008 ***************************************************************************/ 00009 00010 /*************************************************************************** 00011 * * 00012 * This program is free software; you can redistribute it and/or modify * 00013 * it under the terms of the GNU General Public License as published by * 00014 * the Free Software Foundation; either version 2 of the License, or * 00015 * (at your option) any later version. * 00016 * * 00017 ***************************************************************************/ 00018 /* $Id: qgspluginmetadata.cpp 6415 2007-01-09 02:39:15Z wonder $ */ 00019 00020 #include <qstring.h> 00021 #include "qgisplugin.h" 00022 #include "qgspluginmetadata.h" 00023 QgsPluginMetadata::QgsPluginMetadata(QString _libraryPath, 00024 QString _name, 00025 QgisPlugin * _plugin, 00026 bool _python): 00027 m_name(_name), 00028 libraryPath(_libraryPath), 00029 m_plugin(_plugin), 00030 m_python(_python) 00031 { 00032 00033 } 00034 00035 QString QgsPluginMetadata::name() 00036 { 00037 return m_name; 00038 } 00039 00040 QString QgsPluginMetadata::library() 00041 { 00042 return libraryPath; 00043 } 00044 00045 QgisPlugin *QgsPluginMetadata::plugin() 00046 { 00047 return m_plugin; 00048 } 00049 00050 bool QgsPluginMetadata::isPython() 00051 { 00052 return m_python; 00053 }