//
// 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
%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 paint (Marble::GeoPainter* painter, Marble::ViewportParams* viewport, const QString& renderPos, Marble::GeoSceneLayer* layer = 0) = 0;
virtual bool operator< (const Marble::AbstractDataPluginItem* other) const = 0;
public:
// Subclasses of QObject
%ConvertToSubClassCode
sipClass = NULL;
if (dynamic_cast(sipCpp))
sipClass = sipClass_Marble_AbstractDataPluginItem;
else if (dynamic_cast(sipCpp))
sipClass = sipClass_Marble_AbstractDataPluginModel;
else if (dynamic_cast(sipCpp))
sipClass = sipClass_Marble_LatLonEdit;
else if (dynamic_cast(sipCpp))
sipClass = sipClass_Marble_MapThemeManager;
else if (dynamic_cast(sipCpp))
sipClass = sipClass_Marble_MarbleAboutDialog;
else if (dynamic_cast(sipCpp))
sipClass = sipClass_Marble_MarbleControlBox;
else if (dynamic_cast(sipCpp))
sipClass = sipClass_Marble_MarbleMap;
else if (dynamic_cast(sipCpp))
sipClass = sipClass_Marble_MarbleModel;
else if (dynamic_cast(sipCpp))
sipClass = sipClass_Marble_MarbleNavigator;
else if (dynamic_cast(sipCpp))
sipClass = sipClass_Marble_MarbleWidget;
else if (dynamic_cast(sipCpp))
{
sipClass = sipClass_Marble_RenderPlugin;
if (dynamic_cast(sipCpp))
sipClass = sipClass_Marble_AbstractDataPlugin;
else if (dynamic_cast(sipCpp))
sipClass = sipClass_Marble_AbstractFloatItem;
}
else if (dynamic_cast(sipCpp))
sipClass = sipClass_Marble_SunLocator;
else if (dynamic_cast(sipCpp))
sipClass = sipClass_Marble_TileCreator;
%End
}; // AbstractDataPluginItem
}; // Marble