File indexing completed on 2024-05-12 17:09:55

0001 /*
0002     SPDX-FileCopyrightText: 2017 Roman Gilg <subdiff@gmail.com>
0003 
0004     SPDX-License-Identifier: GPL-2.0-or-later
0005 */
0006 #pragma once
0007 
0008 #include <kdedmodule.h>
0009 
0010 #include <KConfigWatcher>
0011 
0012 namespace ColorCorrect
0013 {
0014 class Geolocator;
0015 class CompositorAdaptor;
0016 }
0017 
0018 class LocationUpdater : public KDEDModule
0019 {
0020     Q_OBJECT
0021 public:
0022     LocationUpdater(QObject *parent, const QList<QVariant> &);
0023 
0024 private:
0025     void resetLocator();
0026     void sendLocation(double latitude, double longitude);
0027     void disableSelf();
0028 
0029     ColorCorrect::CompositorAdaptor *const m_adaptor;
0030     ColorCorrect::Geolocator *m_locator = nullptr;
0031     KConfigWatcher::Ptr m_configWatcher;
0032 };