//
// Copyright 2009 Simon Edwards
// Generated by twine
// This file is part of PyKDE4.
// PyKDE4 is free software; you can redistribute it and/or modify
// it under the terms of the GNU Lesser General Public License as
// published by the Free Software Foundation; either version 2.1 of
// the License, or (at your option) any later version.
// PyKDE4 is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
// You should have received a copy of the GNU General Public License
// along with this program. If not, see .
%ModuleHeaderCode
//ctscc
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
%End
namespace Marble
{
class AbstractDataPluginItem : QObject /Abstract/
{
%TypeHeaderCode
#include
%End
public:
AbstractDataPluginItem (QObject* parent /TransferThis/ = 0);
QString target ();
void setTarget (const QString& target);
QString id () const;
void setId (const QString& id);
qreal addedAngularResolution () const;
void setAddedAngularResolution (qreal resolution);
virtual QAction* action ()=0;
virtual QString itemType () const=0;
virtual bool initialized ()=0;
virtual void addDownloadedFile (const QString& url, const QString& type)=0;
virtual bool operator < (const Marble::AbstractDataPluginItem* other) const =0;
// Subclasses of QObject
%ConvertToSubClassCode
// CTSCC for subclasses of 'QObject'
sipType = NULL;
if (dynamic_cast(sipCpp))
sipType = sipType_Marble_AbstractDataPluginItem;
else if (dynamic_cast(sipCpp))
sipType = sipType_Marble_AbstractDataPluginModel;
else if (dynamic_cast(sipCpp))
sipType = sipType_Marble_MapThemeManager;
else if (dynamic_cast(sipCpp))
sipType = sipType_Marble_MarbleMap;
else if (dynamic_cast(sipCpp))
sipType = sipType_Marble_MarbleModel;
else if (dynamic_cast(sipCpp))
{
sipType = sipType_Marble_RenderPlugin;
if (dynamic_cast(sipCpp))
sipType = sipType_Marble_AbstractDataPlugin;
else if (dynamic_cast(sipCpp))
sipType = sipType_Marble_AbstractFloatItem;
}
else if (dynamic_cast(sipCpp))
sipType = sipType_Marble_SunLocator;
else if (dynamic_cast(sipCpp))
sipType = sipType_Marble_AbstractWorkerThread;
else if (dynamic_cast(sipCpp))
sipType = sipType_Marble_TileCreator;
else if (dynamic_cast(sipCpp))
sipType = sipType_Marble_LatLonEdit;
else if (dynamic_cast(sipCpp))
sipType = sipType_Marble_MarbleControlBox;
else if (dynamic_cast(sipCpp))
sipType = sipType_Marble_MarbleNavigator;
else if (dynamic_cast(sipCpp))
sipType = sipType_Marble_MarbleWidget;
else if (dynamic_cast(sipCpp))
sipType = sipType_Marble_MarbleAboutDialog;
else if (dynamic_cast(sipCpp))
sipType = sipType_Marble_PluginAboutDialog;
else if (dynamic_cast(sipCpp))
sipType = sipType_Marble_QtMarbleConfigDialog;
else if (dynamic_cast(sipCpp))
sipType = sipType_Marble_TinyWebBrowser;
%End
virtual ~AbstractDataPluginItem ();
virtual void setSettings (QHash settings);
virtual bool isGeoProjected ();
signals:
void updated ();
};
// AbstractDataPluginItem
};
// Marble