Stellarium 0.11.4
Home · All Namespaces · All Classes · Functions · Coding Style · Scripting · Plugins · File Structure

core/StelPluginInterface.hpp

00001 /*
00002  * Stellarium
00003  * Copyright (C) 2006 Fabien Chereau
00004  *
00005  * This program is free software; you can redistribute it and/or
00006  * modify it under the terms of the GNU General Public License
00007  * as published by the Free Software Foundation; either version 2
00008  * of the License, or (at your option) any later version.
00009  *
00010  * This program is distributed in the hope that it will be useful,
00011  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00012  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00013  * GNU General Public License for more details.
00014  *
00015  * You should have received a copy of the GNU General Public License
00016  * along with this program; if not, write to the Free Software
00017  * Foundation, Inc., 51 Franklin Street, Suite 500, Boston, MA  02110-1335, USA.
00018  */
00019 
00020 #ifndef _STELPLUGININTERFACE_HPP_
00021 #define _STELPLUGININTERFACE_HPP_
00022 
00023 #include <QtPlugin>
00024 #include <QImage>
00025 
00028 struct StelPluginInfo
00029 {
00030     StelPluginInfo() : startByDefault(false) {;}
00032     QString id;
00034     QString displayedName;
00036     QString authors;
00038     QString contact;
00040     QString description;
00043     QImage image;
00045     bool startByDefault;
00046 };
00047 
00052 class StelPluginInterface
00053 {
00054 public:
00055     virtual ~StelPluginInterface() {}
00056 
00058     virtual class StelModule* getStelModule() const = 0;
00059     
00061     virtual StelPluginInfo getPluginInfo() const = 0;
00062 };
00063 
00064 Q_DECLARE_INTERFACE(StelPluginInterface, "stellarium.StelPluginInterface/2.0");
00065 
00066 #endif // _STELPLUGININTERFACE_HPP_
Generated on Sat Aug 25 22:13:30 2012 for Stellarium by  doxygen 1.6.3