Plasma5Support
13#include <Plasma5Support/DataEngine>
15#include "geolocation_export.h"
19class GEOLOCATION_EXPORT GeolocationProvider :
public QObject
29 Q_DECLARE_FLAGS(UpdateTriggers, UpdateTrigger)
31 explicit GeolocationProvider(QObject *parent);
32 void init(Plasma5Support::DataEngine::Data *data, EntryAccuracy *accuracies);
34 UpdateTriggers updateTriggers()
const;
36 bool isAvailable()
const;
37 bool requestUpdate(UpdateTriggers trigger);
38 bool populateSharedData();
42 void availabilityChanged(GeolocationProvider *provider);
45 void setAccuracy(
int accuracy);
46 void setIsAvailable(
bool available);
47 void setUpdateTriggers(UpdateTriggers triggers);
52 void setData(
const Plasma5Support::DataEngine::Data &data);
53 void setData(
const QString &key,
const QVariant &value);
56 Plasma5Support::DataEngine::Data *m_sharedData;
57 EntryAccuracy *m_sharedAccuracies;
58 Plasma5Support::DataEngine::Data m_data;
61 UpdateTriggers m_updateTriggers;
66Q_DECLARE_OPERATORS_FOR_FLAGS(GeolocationProvider::UpdateTriggers)
void update(Part *part, const QByteArray &data, qint64 dataSize)
void init(KXmlGuiWindow *window, KGameDifficulty *difficulty=nullptr)
This file is part of the KDE documentation.
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Jan 24 2025 11:47:07 by
doxygen 1.13.2 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.