// // This file is part of the Marble Desktop Globe. // // This program is free software licensed under the GNU LGPL. You can // find a copy of this license in LICENSE.txt in the top directory of // the source code. // // Copyright 2009 Bastian Holst // // Self #include "PhotoPlugin.h" #include "PhotoPluginModel.h" // Marble #include "MarbleDebug.h" using namespace Marble; PhotoPlugin::PhotoPlugin() : m_isInitialized( false ) { setNameId( "photo" ); // Plugin is enabled by default setEnabled( true ); // Plugin is not visible by default setVisible( false ); } void PhotoPlugin::initialize() { mDebug() << "PhotoPlugin: Initialize"; setModel( new PhotoPluginModel( this ) ); setNumberOfItems( numberOfImagesPerFetch ); m_isInitialized = true; } bool PhotoPlugin::isInitialized() const { return m_isInitialized; } QString PhotoPlugin::name() const { return tr( "Photos" ); } QString PhotoPlugin::guiString() const { return tr( "&Photos" ); } QString PhotoPlugin::description() const { return tr( "Automatically downloads images from around the world in preference to their popularity" ); } QIcon PhotoPlugin::icon() const { return QIcon(); } Q_EXPORT_PLUGIN2(PhotoPlugin, Marble::PhotoPlugin) #include "PhotoPlugin.moc"