Warning, /education/marble/src/bindings/python/sip/PluginInterface.sip is written in an unsupported language. File is not indexed.
0001 // 0002 // Copyright 2009 Simon Edwards <simon@simonzone.com> 0003 0004 // Generated by twine 0005 0006 // This file is part of PyKDE4. 0007 0008 // PyKDE4 is free software; you can redistribute it and/or modify 0009 // it under the terms of the GNU Lesser General Public License as 0010 // published by the Free Software Foundation; either version 2.1 of 0011 // the License, or (at your option) any later version. 0012 0013 // PyKDE4 is distributed in the hope that it will be useful, 0014 // but WITHOUT ANY WARRANTY; without even the implied warranty of 0015 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 0016 // GNU General Public License for more details. 0017 0018 // You should have received a copy of the GNU General Public License 0019 // along with this program. If not, see <http://www.gnu.org/licenses/>. 0020 0021 namespace Marble 0022 { 0023 0024 class PluginInterface /Abstract/ 0025 { 0026 %TypeHeaderCode 0027 #include <PluginInterface.h> 0028 %End 0029 0030 public: 0031 virtual QString name () const=0; 0032 virtual QString nameId () const=0; 0033 virtual QString description () const=0; 0034 virtual QIcon icon () const=0; 0035 virtual ~PluginInterface (); 0036 %ConvertToSubClassCode 0037 // CTSCC for subclasses of 'PluginInterface' 0038 sipType = NULL; 0039 0040 if (dynamic_cast<Marble::ParseRunnerPlugin*>(sipCpp)) 0041 sipType = sipType_Marble_ParseRunnerPlugin; 0042 else if (dynamic_cast<Marble::PositionProviderPluginInterface*>(sipCpp)) 0043 sipType = sipType_Marble_PositionProviderPluginInterface; 0044 else if (dynamic_cast<Marble::RenderPlugin*>(sipCpp)) 0045 { 0046 sipType = sipType_Marble_RenderPlugin; 0047 if (dynamic_cast<Marble::AbstractDataPlugin*>(sipCpp)) 0048 sipType = sipType_Marble_AbstractDataPlugin; 0049 else if (dynamic_cast<Marble::AbstractFloatItem*>(sipCpp)) 0050 sipType = sipType_Marble_AbstractFloatItem; 0051 } 0052 else if (dynamic_cast<Marble::ReverseGeocodingRunnerPlugin*>(sipCpp)) 0053 sipType = sipType_Marble_ReverseGeocodingRunnerPlugin; 0054 else if (dynamic_cast<Marble::RoutingRunnerPlugin*>(sipCpp)) 0055 sipType = sipType_Marble_RoutingRunnerPlugin; 0056 else if (dynamic_cast<Marble::SearchRunnerPlugin*>(sipCpp)) 0057 sipType = sipType_Marble_SearchRunnerPlugin; 0058 %End 0059 virtual QString version () const=0; 0060 virtual QString copyrightYears () const=0; 0061 virtual QVector<Marble::PluginAuthor> pluginAuthors () const=0; 0062 virtual QString aboutDataText () const; 0063 }; 0064 // PluginInterface 0065 0066 class PluginAuthor 0067 { 0068 %TypeHeaderCode 0069 #include <PluginInterface.h> 0070 %End 0071 0072 PluginAuthor (const QString& name_, const QString& email_, const QString& task_ = QObject::tr("Developer")); 0073 }; 0074 }; 0075 // Marble 0076 0077 0078 %ModuleHeaderCode 0079 //ctscc 0080 #include <AbstractDataPlugin.h> 0081 #include <AbstractFloatItem.h> 0082 #include <ParseRunnerPlugin.h> 0083 #include <PluginInterface.h> 0084 #include <PositionProviderPluginInterface.h> 0085 #include <RenderPlugin.h> 0086 #include <ReverseGeocodingRunnerPlugin.h> 0087 #include <RoutingRunnerPlugin.h> 0088 #include <SearchRunnerPlugin.h> 0089 %End