michael@0: /* This Source Code Form is subject to the terms of the Mozilla Public michael@0: * License, v. 2.0. If a copy of the MPL was not distributed with this michael@0: * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ michael@0: michael@0: #ifndef QTMLocationProvider_h michael@0: #define QTMLocationProvider_h michael@0: michael@0: #include michael@0: #include "nsGeolocation.h" michael@0: #include "nsIGeolocationProvider.h" michael@0: #include "nsCOMPtr.h" michael@0: michael@0: class QTMLocationProvider : public QObject, michael@0: public nsIGeolocationProvider michael@0: { michael@0: Q_OBJECT michael@0: michael@0: public: michael@0: NS_DECL_ISUPPORTS michael@0: NS_DECL_NSIGEOLOCATIONPROVIDER michael@0: michael@0: QTMLocationProvider(); michael@0: michael@0: public Q_SLOTS: michael@0: // QGeoPositionInfoSource michael@0: void positionUpdated(const QGeoPositionInfo&); michael@0: michael@0: private: michael@0: ~QTMLocationProvider(); michael@0: michael@0: QGeoPositionInfoSource* mLocation; michael@0: nsCOMPtr mCallback; michael@0: }; michael@0: michael@0: #endif /* QTMLocationProvider_h */