summaryrefslogtreecommitdiff
path: root/metawatch/metawatch.cpp
diff options
context:
space:
mode:
authorJavier S. Pedro <maemo@javispedro.com>2011-09-24 00:31:46 +0200
committerJavier S. Pedro <maemo@javispedro.com>2011-09-24 00:31:46 +0200
commitcba26597f1c09764d37be0d13863ec5d5c340da0 (patch)
tree5559b1274c228673e2bd519135de8de596c7e91b /metawatch/metawatch.cpp
parentb414dbdb28d839c9755b1832f27f61d1ec9e7863 (diff)
downloadsowatch-cba26597f1c09764d37be0d13863ec5d5c340da0.tar.gz
sowatch-cba26597f1c09764d37be0d13863ec5d5c340da0.zip
new partially working incoming call plugin
Diffstat (limited to 'metawatch/metawatch.cpp')
-rw-r--r--metawatch/metawatch.cpp19
1 files changed, 16 insertions, 3 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;