Plasma5Support

geolocation.h
1/*
2 SPDX-FileCopyrightText: 2009 Petri Damstén <damu@iki.fi>
3
4 SPDX-License-Identifier: GPL-2.0-or-later
5*/
6
7#pragma once
8
9#include <QTimer>
10
11#include <Plasma5Support/DataEngine>
12
13#include "geolocationprovider.h"
14
15class GeolocationProvider;
16
17class Geolocation : public Plasma5Support::DataEngine
18{
20
21public:
22 Geolocation(QObject *parent);
23 ~Geolocation() override;
24 virtual void init();
25 QStringList sources() const override;
26
27protected:
28 bool sourceRequestEvent(const QString &name) override;
29 bool updateSourceEvent(const QString &name) override;
30 bool updatePlugins(GeolocationProvider::UpdateTriggers triggers);
31
32protected Q_SLOTS:
33 void networkStatusChanged(bool isOnline);
34 void pluginAvailabilityChanged(GeolocationProvider *provider);
35 void pluginUpdated();
36 void actuallySetData();
37
38private:
39 Data m_data;
40 EntryAccuracy m_accuracy;
42 QTimer m_updateTimer;
43 QTimer m_networkChangedTimer;
44};
Data provider for plasmoids (Plasma plugins)
Definition dataengine.h:45
Q_OBJECTQ_OBJECT
Q_SLOTSQ_SLOTS
QObject * parent() const const
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:08:57 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.