Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
98 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
#include "valhallamapmatcherdbusadaptor.h" | ||
|
||
ValhallaMapMatcherDBusAdaptor::ValhallaMapMatcherDBusAdaptor(ValhallaMapMatcherDBus *p): | ||
QDBusAbstractAdaptor(p), m(p) | ||
{ | ||
} | ||
|
||
QString ValhallaMapMatcherDBusAdaptor::update(int mode, double lat, double lon, double accuracy, const QDBusMessage &message) | ||
{ | ||
return m->update(mode,lat,lon,accuracy,message); | ||
} | ||
|
||
bool ValhallaMapMatcherDBusAdaptor::reset(int mode, const QDBusMessage &message) | ||
{ | ||
return m->reset(mode,message); | ||
} | ||
|
||
bool ValhallaMapMatcherDBusAdaptor::stop(int mode, const QDBusMessage &message) | ||
{ | ||
return m->stop(mode,message); | ||
} | ||
|
||
bool ValhallaMapMatcherDBusAdaptor::stop(const QDBusMessage &message) | ||
{ | ||
return m->stop(message); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
#ifndef VALHALLAMAPMATCHERDBUSADAPTOR_H | ||
#define VALHALLAMAPMATCHERDBUSADAPTOR_H | ||
|
||
#include "valhallamapmatcherdbus.h" | ||
#include "config.h" | ||
|
||
#include <QDBusAbstractAdaptor> | ||
#include <QDBusConnection> | ||
#include <QDBusMessage> | ||
|
||
class ValhallaMapMatcherDBusAdaptor : public QDBusAbstractAdaptor | ||
{ | ||
Q_OBJECT | ||
Q_CLASSINFO("D-Bus Interface", DBUS_INTERFACE_MAPMATCHING) | ||
|
||
public: | ||
ValhallaMapMatcherDBusAdaptor(ValhallaMapMatcherDBus *parent); | ||
|
||
public slots: | ||
QString update(int mode, double lat, double lon, double accuracy, const QDBusMessage &message); | ||
|
||
bool reset(int mode, const QDBusMessage &message); | ||
bool stop(int mode, const QDBusMessage &message); | ||
bool stop(const QDBusMessage &message); | ||
|
||
private: | ||
ValhallaMapMatcherDBus *m; | ||
}; | ||
|
||
#endif // VALHALLAMAPMATCHERDBUSADAPTOR_H |