diff options
Diffstat (limited to 'metawatch')
-rw-r--r-- | metawatch/metawatch.cpp | 19 | ||||
-rw-r--r-- | metawatch/metawatch.h | 4 |
2 files changed, 19 insertions, 4 deletions
diff --git a/metawatch/metawatch.cpp b/metawatch/metawatch.cpp index e59db2a..657548a 100644 --- a/metawatch/metawatch.cpp +++ b/metawatch/metawatch.cpp @@ -87,7 +87,7 @@ MetaWatch::MetaWatch(const QBluetoothAddress& address, QObject *parent) : _sendTimer(new QTimer(this)), _currentMode(IdleMode), _paintMode(IdleMode), - _nMails(0), _nCalls(0), _nIms(0), _nSms(0) + _nMails(0), _nCalls(0), _nIms(0), _nSms(0), _nMms(0) { QImage baseImage(screenWidth, screenHeight, QImage::Format_MonoLSB); baseImage.setColor(0, QColor(Qt::white).rgb()); @@ -185,8 +185,8 @@ void MetaWatch::setDateTime(const QDateTime &dateTime) msg.data[5] = time.hour(); msg.data[6] = time.minute(); msg.data[7] = time.second(); - msg.data[8] = 1; - msg.data[9] = 1; + msg.data[8] = _24hMode ? 1 : 0; + msg.data[9] = _dayMonthOrder ? 1 : 0; send(msg); } @@ -206,6 +206,9 @@ void MetaWatch::updateNotificationCount(Notification::Type type, int count) case Notification::SmsNotification: _nSms = count; break; + case Notification::MmsNotification: + _nMms = count; + break; default: // Ignore break; @@ -224,6 +227,16 @@ void MetaWatch::showNotification(const Notification &n) qDebug() << "It's time for a notification" << n.title(); } +void MetaWatch::startRinging(const QString &text) +{ + +} + +void MetaWatch::stopRinging() +{ + +} + MetaWatch::Mode MetaWatch::currentMode() const { return _currentMode; diff --git a/metawatch/metawatch.h b/metawatch/metawatch.h index 9da21bb..48b7be6 100644 --- a/metawatch/metawatch.h +++ b/metawatch/metawatch.h @@ -80,6 +80,8 @@ public: void vibrate(bool on); void showNotification(const Notification& n); + void startRinging(const QString &text); + void stopRinging(); Mode currentMode() const; Mode paintTargetMode() const; @@ -126,7 +128,7 @@ protected: quint8 _buttonState; // Notifications: Unread count - uint _nMails, _nCalls, _nIms, _nSms; + uint _nMails, _nCalls, _nIms, _nSms, _nMms; static const quint8 bitRevTable[16]; static const quint16 crcTable[256]; |