Changeset View
Changeset View
Standalone View
Standalone View
libcolorcorrect/kded/locationupdater.h
- This file was added.
1 | /******************************************************************** | ||||
---|---|---|---|---|---|
2 | Copyright 2017 Roman Gilg <subdiff@gmail.com> | ||||
3 | | ||||
4 | This program is free software; you can redistribute it and/or modify | ||||
5 | it under the terms of the GNU General Public License as published by | ||||
6 | the Free Software Foundation; either version 2 of the License, or | ||||
7 | (at your option) any later version. | ||||
8 | | ||||
9 | This program is distributed in the hope that it will be useful, | ||||
10 | but WITHOUT ANY WARRANTY; without even the implied warranty of | ||||
11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||||
12 | GNU General Public License for more details. | ||||
13 | | ||||
14 | You should have received a copy of the GNU General Public License | ||||
15 | along with this program. If not, see <http://www.gnu.org/licenses/>. | ||||
16 | *********************************************************************/ | ||||
17 | #ifndef LOCATIONUPDATER_H | ||||
18 | #define LOCATIONUPDATER_H | ||||
19 | | ||||
20 | #include <kdedmodule.h> | ||||
21 | | ||||
22 | namespace ColorCorrect | ||||
23 | { | ||||
24 | class Geolocator; | ||||
25 | class CompositorAdaptor; | ||||
26 | } | ||||
27 | | ||||
28 | class LocationUpdater : public KDEDModule | ||||
29 | { | ||||
30 | Q_OBJECT | ||||
31 | public: | ||||
32 | LocationUpdater(QObject* parent, const QList<QVariant> &); | ||||
33 | | ||||
34 | public Q_SLOTS: | ||||
35 | void sendLocation(double latitude, double longitude); | ||||
36 | | ||||
37 | private: | ||||
38 | ColorCorrect::CompositorAdaptor *m_adaptor; | ||||
39 | ColorCorrect::Geolocator *m_locator; | ||||
40 | }; | ||||
41 | | ||||
42 | #endif | ||||
43 | |