From ccd19d2b7ee4184503ea46b98333b27a5613190e Mon Sep 17 00:00:00 2001 From: "Javier S. Pedro" Date: Wed, 8 May 2013 18:04:31 +0200 Subject: big change: a new abstract BluetoothWatch class --- liveview/liveview.cpp | 93 +++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 93 insertions(+) create mode 100644 liveview/liveview.cpp (limited to 'liveview/liveview.cpp') diff --git a/liveview/liveview.cpp b/liveview/liveview.cpp new file mode 100644 index 0000000..b6644d8 --- /dev/null +++ b/liveview/liveview.cpp @@ -0,0 +1,93 @@ +#include "liveview.h" + +using namespace sowatch; +QTM_USE_NAMESPACE + +LiveView::LiveView(ConfigKey* settings, QObject* parent) : + BluetoothWatch(QBluetoothAddress(settings->value("address").toString()), parent), + _settings(settings->getSubkey(QString(), this)) +{ + +} + +QPaintEngine* LiveView::paintEngine() const +{ + return 0; // TODO +} + +int LiveView::metric(PaintDeviceMetric metric) const +{ + return 0; // TODO +} + +QString LiveView::model() const +{ + return "liveview"; +} + +QStringList LiveView::buttons() const +{ + return QStringList(); +} + +bool LiveView::isConnected() const +{ + return false; +} + +bool LiveView::busy() const +{ + return false; // TODO +} + +void LiveView::setDateTime(const QDateTime& dateTime) +{ + +} +void LiveView::queryDateTime() +{ + +} +QDateTime LiveView::dateTime() const +{ + return QDateTime::currentDateTime(); // TODO +} + +void LiveView::queryBatteryLevel() +{ + +} +int LiveView::batteryLevel() const +{ + return 0; // TODO +} + +void LiveView::queryCharging() +{ + +} + +bool LiveView::charging() const +{ + return false; // TODO +} + +void LiveView::displayIdleScreen() +{ + +} + +void LiveView::displayNotification(Notification *notification) +{ + +} + +void LiveView::displayApplication() +{ + +} + +void LiveView::vibrate(int msecs) +{ + +} -- cgit v1.2.3