File indexing completed on 2024-05-05 03:50:35
0001 // SPDX-License-Identifier: LGPL-2.1-or-later 0002 // 0003 // SPDX-FileCopyrightText: 2009 Eckhart Wörner <ewoerner@kde.org> 0004 // 0005 0006 #ifndef GEOCUTE_POSITIONPROVIDER_H 0007 #define GEOCUTE_POSITIONPROVIDER_H 0008 0009 #include "Provider.h" 0010 #include "Position.h" 0011 0012 0013 0014 class QString; 0015 0016 namespace GeoCute 0017 { 0018 0019 class PositionProvider : public Provider 0020 { 0021 Q_OBJECT 0022 0023 public: 0024 PositionProvider(const QString& service, const QString& path, 0025 QObject* parent = 0); 0026 ~PositionProvider(); 0027 Position position() const; 0028 0029 static PositionProvider* detailed(); 0030 0031 Q_SIGNALS: 0032 void positionChanged(GeoCute::Position position); 0033 0034 private: 0035 class Private; 0036 Private* const d; 0037 Q_PRIVATE_SLOT(d, void positionChangedCall(QDBusMessage message)) 0038 }; 0039 0040 } 0041 0042 0043 0044 #endif