6#ifndef MARBLE_ABSTRACTDATAPLUGINITEM_H
7#define MARBLE_ABSTRACTDATAPLUGINITEM_H
13#include "BillboardGraphicsItem.h"
14#include "marble_export.h"
21class AbstractDataPluginItemPrivate;
23class MARBLE_EXPORT AbstractDataPluginItem :
public QObject,
public BillboardGraphicsItem
27 Q_PROPERTY(
QString identifier READ
id WRITE setId NOTIFY idChanged)
28 Q_PROPERTY(
bool favorite READ isFavorite WRITE setFavorite NOTIFY favoriteChanged)
29 Q_PROPERTY(
bool sticky READ isSticky WRITE setSticky NOTIFY stickyChanged)
32 explicit AbstractDataPluginItem(
QObject *parent =
nullptr);
33 ~AbstractDataPluginItem()
override;
43 void setToolTip(
const QString &toolTip);
48 bool isFavorite()
const;
49 virtual void setFavorite(
bool favorite);
51 bool isSticky()
const;
52 void setSticky(
bool sticky);
66 virtual bool initialized()
const = 0;
68 virtual void addDownloadedFile(
const QString &url,
const QString &type);
70 virtual bool operator<(
const AbstractDataPluginItem *other)
const = 0;
77 void favoriteChanged(
const QString &
id,
bool favorite);
81 void toggleFavorite();
84 friend class AbstractDataPluginModel;
90 qreal addedAngularResolution()
const;
91 void setAddedAngularResolution(qreal resolution);
93 AbstractDataPluginItemPrivate *
const d;
bool operator<(const PosRange< Trait > &l, const PosRange< Trait > &r)
Binds a QML item to a specific geodetic location in screen coordinates.
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sat Dec 21 2024 17:04:13 by
doxygen 1.12.0 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.