diff options
author | Javier S. Pedro <maemo@javispedro.com> | 2013-05-08 18:04:31 +0200 |
---|---|---|
committer | Javier S. Pedro <maemo@javispedro.com> | 2013-05-08 18:04:31 +0200 |
commit | ccd19d2b7ee4184503ea46b98333b27a5613190e (patch) | |
tree | f78cc3f3c946d7a4f8167f72fb20703c65494d84 /liveview/liveview.cpp | |
parent | 6003bf81107dd9be51589c074b74c5af82bfc8ab (diff) | |
download | sowatch-ccd19d2b7ee4184503ea46b98333b27a5613190e.tar.gz sowatch-ccd19d2b7ee4184503ea46b98333b27a5613190e.zip |
big change: a new abstract BluetoothWatch class
Diffstat (limited to 'liveview/liveview.cpp')
-rw-r--r-- | liveview/liveview.cpp | 93 |
1 files changed, 93 insertions, 0 deletions
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) +{ + +} |