StelPluginInterface.hpp   StelPluginInterface.hpp 
skipping to change at line 24 skipping to change at line 24
* *
* You should have received a copy of the GNU General Public License * You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software * along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, U SA. * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, U SA.
*/ */
#ifndef _STELPLUGININTERFACE_HPP_ #ifndef _STELPLUGININTERFACE_HPP_
#define _STELPLUGININTERFACE_HPP_ #define _STELPLUGININTERFACE_HPP_
#include <QtPlugin> #include <QtPlugin>
#include <QImage>
//! @struct StelPluginInfo
//! Contains information about a Stellarium plugin.
struct StelPluginInfo
{
//! The plugin ID. It MUST match the lib file name (case sensitive),
e.g. "HelloStelModule", or "VirGO".
QString id;
//! The displayed name, e.g. "Artificial Satellites".
QString displayedName;
//! The comma separated list of authors, e.g. "Fabien Chereau, Matth
ew Gates".
QString authors;
//! The contact email or URL.
QString contact;
//! The HTML description of the plugin.
QString description;
//! Logo or preview image to display in the information dialog or an
invalid image if not applicable.
//! The image size should be x by x pixels.
QImage image;
};
//! @class StelPluginInterface //! @class StelPluginInterface
//! Define the interface to implement when creating a plugin. //! Define the interface to implement when creating a plugin.
//! The interface is used by the <a href="http://doc.trolltech.com/4.4/qplu ginloader.html">QPluginLoader</a> to load Stellarium plugins dynamically. //! The interface is used by the <a href="http://doc.trolltech.com/4.5/qplu ginloader.html">QPluginLoader</a> to load Stellarium plugins dynamically.
//! @sa @ref plugins for documentation on how to develop external plugins. //! @sa @ref plugins for documentation on how to develop external plugins.
class StelPluginInterface class StelPluginInterface
{ {
public: public:
virtual ~StelPluginInterface() {} virtual ~StelPluginInterface() {}
//! Get the instance of StelModule to include in the list of standar d StelModule //! Get the instance of StelModule to include in the list of standar d StelModule
virtual class StelModule* getStelModule() const = 0; virtual class StelModule* getStelModule() const = 0;
//! Get information about the plugin.
virtual StelPluginInfo getPluginInfo() const = 0;
}; };
Q_DECLARE_INTERFACE(StelPluginInterface,"stellarium.StelPluginInterface/1.0 "); Q_DECLARE_INTERFACE(StelPluginInterface, "stellarium.StelPluginInterface/2. 0");
#endif // _STELPLUGININTERFACE_HPP_ #endif // _STELPLUGININTERFACE_HPP_
 End of changes. 4 change blocks. 
2 lines changed or deleted 28 lines changed or added

This html diff was produced by rfcdiff 1.41. The latest version is available from http://tools.ietf.org/tools/rfcdiff/