summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJavier S. Pedro <maemo@javispedro.com>2012-08-10 17:49:45 +0200
committerJavier S. Pedro <maemo@javispedro.com>2012-08-10 17:49:45 +0200
commit4ad9e1874af29864ca8531e5ba033b85d6616639 (patch)
tree29c997c2b5f8a59b1cabf7589248310568029a11
parent39fa663cd08bd2b7d46ed170d49ac794c531c42e (diff)
downloadsowatch-4ad9e1874af29864ca8531e5ba033b85d6616639.tar.gz
sowatch-4ad9e1874af29864ca8531e5ba033b85d6616639.zip
cleanup and bump version to 0.4
-rw-r--r--qmafwwatchlet/qmafwwatchletplugin.cpp15
-rw-r--r--qmafwwatchlet/qmafwwatchletplugin.h3
-rw-r--r--qmapwatchlet/qmapwatchlet.cpp1
-rw-r--r--qmapwatchlet/qmapwatchletplugin.cpp15
-rw-r--r--qmapwatchlet/qmapwatchletplugin.h3
-rw-r--r--qmsgwatchlet/qmsgwatchlet.pro6
-rw-r--r--qmsgwatchlet/qmsgwatchletplugin.cpp15
-rw-r--r--qmsgwatchlet/qmsgwatchletplugin.h3
-rw-r--r--qtc_packaging/debian_harmattan/changelog11
-rw-r--r--qtc_packaging/debian_harmattan/control3
-rw-r--r--sowatch.pro8
-rw-r--r--sowatchd/watchhandler.cpp2
12 files changed, 63 insertions, 22 deletions
diff --git a/qmafwwatchlet/qmafwwatchletplugin.cpp b/qmafwwatchlet/qmafwwatchletplugin.cpp
index 09984b4..713c199 100644
--- a/qmafwwatchlet/qmafwwatchletplugin.cpp
+++ b/qmafwwatchlet/qmafwwatchletplugin.cpp
@@ -19,10 +19,19 @@ QStringList QMafwWatchletPlugin::watchlets()
return l;
}
-Watchlet* QMafwWatchletPlugin::getWatchlet(const QString& driver, QSettings& settings, WatchServer *server)
+WatchletPluginInterface::WatchletInfo QMafwWatchletPlugin::describeWatchlet(const QString &id)
{
- Q_UNUSED(driver);
- Q_UNUSED(settings);
+ WatchletInfo info;
+ if (id != "com.javispedro.sowatch.qmafw") return info;
+ info.name = "Music player";
+ info.icon = QUrl::fromLocalFile(SOWATCH_QML_DIR "/qmafwwatchlet/icon.png");
+ return info;
+}
+
+Watchlet* QMafwWatchletPlugin::getWatchlet(const QString &id, ConfigKey *config, WatchServer *server)
+{
+ Q_UNUSED(config);
+ if (id != "com.javispedro.sowatch.qmafw") return 0;
return new QMafwWatchlet(server);
}
diff --git a/qmafwwatchlet/qmafwwatchletplugin.h b/qmafwwatchlet/qmafwwatchletplugin.h
index c4ff3ef..11e99af 100644
--- a/qmafwwatchlet/qmafwwatchletplugin.h
+++ b/qmafwwatchlet/qmafwwatchletplugin.h
@@ -16,7 +16,8 @@ public:
~QMafwWatchletPlugin();
QStringList watchlets();
- Watchlet* getWatchlet(const QString& driver, QSettings& settings, WatchServer* server);
+ WatchletInfo describeWatchlet(const QString &id);
+ Watchlet* getWatchlet(const QString &id, ConfigKey *config, WatchServer *server);
};
}
diff --git a/qmapwatchlet/qmapwatchlet.cpp b/qmapwatchlet/qmapwatchlet.cpp
index 5c8109b..6f39641 100644
--- a/qmapwatchlet/qmapwatchlet.cpp
+++ b/qmapwatchlet/qmapwatchlet.cpp
@@ -5,7 +5,6 @@ using namespace sowatch;
QMapWatchlet::QMapWatchlet(WatchServer* server) :
DeclarativeWatchlet(server, "com.javispedro.sowatch.qmap")
{
-
setSource(QUrl(SOWATCH_QML_DIR "/qmapwatchlet/" + server->watch()->model() + ".qml"));
}
diff --git a/qmapwatchlet/qmapwatchletplugin.cpp b/qmapwatchlet/qmapwatchletplugin.cpp
index 5b72482..e8e1c43 100644
--- a/qmapwatchlet/qmapwatchletplugin.cpp
+++ b/qmapwatchlet/qmapwatchletplugin.cpp
@@ -19,10 +19,19 @@ QStringList QMapWatchletPlugin::watchlets()
return l;
}
-Watchlet* QMapWatchletPlugin::getWatchlet(const QString& driver, QSettings& settings, WatchServer *server)
+WatchletPluginInterface::WatchletInfo QMapWatchletPlugin::describeWatchlet(const QString &id)
{
- Q_UNUSED(driver);
- Q_UNUSED(settings);
+ WatchletInfo info;
+ if (id != "com.javispedro.sowatch.qmap") return info;
+ info.name = "Moving map";
+ info.icon = QUrl::fromLocalFile(SOWATCH_QML_DIR "/qmapwatchlet/icon.png");
+ return info;
+}
+
+Watchlet* QMapWatchletPlugin::getWatchlet(const QString &id, ConfigKey *config, WatchServer *server)
+{
+ Q_UNUSED(config);
+ if (id != "com.javispedro.sowatch.qmap") return 0;
return new QMapWatchlet(server);
}
diff --git a/qmapwatchlet/qmapwatchletplugin.h b/qmapwatchlet/qmapwatchletplugin.h
index e594209..04ff348 100644
--- a/qmapwatchlet/qmapwatchletplugin.h
+++ b/qmapwatchlet/qmapwatchletplugin.h
@@ -16,7 +16,8 @@ public:
~QMapWatchletPlugin();
QStringList watchlets();
- Watchlet* getWatchlet(const QString& driver, QSettings& settings, WatchServer* server);
+ WatchletInfo describeWatchlet(const QString &id);
+ Watchlet* getWatchlet(const QString &id, ConfigKey *config, WatchServer *server);
};
}
diff --git a/qmsgwatchlet/qmsgwatchlet.pro b/qmsgwatchlet/qmsgwatchlet.pro
index ef02f16..9e18e42 100644
--- a/qmsgwatchlet/qmsgwatchlet.pro
+++ b/qmsgwatchlet/qmsgwatchlet.pro
@@ -1,4 +1,3 @@
-
TARGET = qmsgwatchlet
TEMPLATE = lib
CONFIG += plugin
@@ -11,10 +10,7 @@ HEADERS += qmsgwatchletplugin.h qmsgwatchlet.h
qml_files.files = metawatch-digital.qml icon.png
-win32:CONFIG(release, debug|release): LIBS += -L$$OUT_PWD/../libsowatch/release/ -lsowatch
-else:win32:CONFIG(debug, debug|release): LIBS += -L$$OUT_PWD/../libsowatch/debug/ -lsowatch
-else:symbian: LIBS += -lsowatch
-else:unix: LIBS += -L$$OUT_PWD/../libsowatch/ -lsowatch
+LIBS += -L$$OUT_PWD/../libsowatch/ -lsowatch
INCLUDEPATH += $$PWD/../libsowatch
DEPENDPATH += $$PWD/../libsowatch
diff --git a/qmsgwatchlet/qmsgwatchletplugin.cpp b/qmsgwatchlet/qmsgwatchletplugin.cpp
index 64a4157..2471d03 100644
--- a/qmsgwatchlet/qmsgwatchletplugin.cpp
+++ b/qmsgwatchlet/qmsgwatchletplugin.cpp
@@ -19,10 +19,19 @@ QStringList QMsgWatchletPlugin::watchlets()
return l;
}
-Watchlet* QMsgWatchletPlugin::getWatchlet(const QString& driver, QSettings& settings, WatchServer *server)
+WatchletPluginInterface::WatchletInfo QMsgWatchletPlugin::describeWatchlet(const QString &id)
{
- Q_UNUSED(driver);
- Q_UNUSED(settings);
+ WatchletInfo info;
+ if (id != "com.javispedro.sowatch.qmsg") return info;
+ info.name = "Inbox";
+ info.icon = QUrl::fromLocalFile(SOWATCH_QML_DIR "/qmsgwatchlet/icon.png");
+ return info;
+}
+
+Watchlet* QMsgWatchletPlugin::getWatchlet(const QString &id, ConfigKey *config, WatchServer *server)
+{
+ Q_UNUSED(config);
+ if (id != "com.javispedro.sowatch.qmsg") return 0;
return new QMsgWatchlet(server);
}
diff --git a/qmsgwatchlet/qmsgwatchletplugin.h b/qmsgwatchlet/qmsgwatchletplugin.h
index 4d08e94..01cb83e 100644
--- a/qmsgwatchlet/qmsgwatchletplugin.h
+++ b/qmsgwatchlet/qmsgwatchletplugin.h
@@ -16,7 +16,8 @@ public:
~QMsgWatchletPlugin();
QStringList watchlets();
- Watchlet* getWatchlet(const QString& driver, QSettings& settings, WatchServer* server);
+ WatchletInfo describeWatchlet(const QString &id);
+ Watchlet* getWatchlet(const QString &id, ConfigKey *config, WatchServer *server);
};
}
diff --git a/qtc_packaging/debian_harmattan/changelog b/qtc_packaging/debian_harmattan/changelog
index d7f6d4b..2c1a390 100644
--- a/qtc_packaging/debian_harmattan/changelog
+++ b/qtc_packaging/debian_harmattan/changelog
@@ -1,3 +1,14 @@
+sowatch (0.4.0) unstable; urgency=low
+
+ * Brand new configuration user interface.
+ * Use ConfigKey abstraction instead of directly hitting QSettings
+ * Add GConfKey backend to ConfigKey.
+ * Daemon now dynamically loads/unloads watches & watchlets as the
+ settings change.
+ * New Qt Messaging Framework based watchlet.
+
+ -- Javier S. Pedro <maemo@javispedro.com> Fri, 10 Aug 2012 17:46:00 +0200
+
sowatch (0.3.1) unstable; urgency=low
* No longer using Qt Resources for anything.
diff --git a/qtc_packaging/debian_harmattan/control b/qtc_packaging/debian_harmattan/control
index 07e5042..5a3bc5c 100644
--- a/qtc_packaging/debian_harmattan/control
+++ b/qtc_packaging/debian_harmattan/control
@@ -18,5 +18,6 @@ Description: Bluetooth smartwatch manager
- Notifications support: incoming calls, messages, etc.
- Watchlets: control the media player or view a map.
.
- Currently, only the MetaWatch is supported.
+ Currently, only the digital MetaWatch is supported.
XSBC-Maemo-Display-Name: Sowatch
+XB-Maemo-Icon-26: iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAAOxAAADsQBlSsOGwAADAVJREFUeJzVW3toXNeZ/91zz33OaEaa0ciSLDmOEIZi/FiCW5JsW3nDbkyN3ZgQgym0DaGYNLQJ8UKW9A8hCAnEIcTZXUpgl7awRKAUgpQQCIQ6oamj0tKAUgeSqkqQVFujkSxpZu7c13nsH56ZaCRZ1shHxvnBIN1zz+M73/3O9zjfORpuEy5evEiDIOhhjHVsVo9SOm/b9uzRo0fZ7aBLU9nZe++9tzuKopOU0sOEkH5CyB5d1zOaprkAbCklhBAAACllIyHadVIIIbX/AyllRQixyDmfEUJMBkHwsRBi7KGHHrqiiuZbYsDY2JgL4IeJROJhQsgBAB2cc41zDs45hBDrJto0gZoGQgh0XYeu66CUSgB5xthfgyD4bSKR+M3Ro0eDbfe/nUZvvfXWgOM4g5TSbzHGnCiKwDnfLg3bgq7rME0TlFI/juPxIAgGT5w48ftm+2mKAW+//fZ3HMe5oGnaId/3tds96RuBUgrbtqWU8uMgCH5+/PjxP2y17ZYYMDIykkyn07+mlJ6qVCrkTpn4Wui6jkQiIcIwfJMQ8qMHH3zQu1mbmzJgdHT0bsdx3ovjuC8Itr3Ubits24ZhGJO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BZRSmKYJy7L8ZDI5bprm4CuvvLKzFyfXYnBw0F1aWvoh5/zhMAwP+L7fEcfxjl6dNQxDOo4zb5rmJ4Zh/La1tfU3N9LwW+r/lqhbg2effXa353knpZSHGWP9jLE9VeXpCiGaujxNCAkopRVK6SKldIZSOgngY8uyxs6fP39nXJ5uBoODgzQIgp4oijY9A2+a5rxt27NDQ0O3ZU39P+LNJ5dh90dNAAAAAElFTkSuQmCC
diff --git a/sowatch.pro b/sowatch.pro
index 63b541d..7fc85a0 100644
--- a/sowatch.pro
+++ b/sowatch.pro
@@ -1,4 +1,6 @@
TEMPLATE = subdirs
+
+# Core library
SUBDIRS = libsowatch
# The MetaWatch driver plugin
@@ -7,7 +9,7 @@ metawatch.depends = libsowatch
# Some watchlets
SUBDIRS += notificationswatchlet sysinfowatchlet
-#SUBDIRS += qmsgwatchlet qmapwatchlet
+SUBDIRS += qmsgwatchlet qmapwatchlet
notificationswatchlet.depends = libsowatch
sysinfowatchlet.depends = libsowatch
qmsgwatchlet.depends = libsowatch
@@ -22,14 +24,16 @@ unix {
}
contains(MEEGO_EDITION,harmattan) {
+ # Harmattan specific stuff
SUBDIRS += meegohandsetnotification ckitcallnotification harmaccuweather
- #SUBDIRS += qmafwwatchlet
+ SUBDIRS += qmafwwatchlet
meegohandsetnotification.depends = libsowatch
ckitcallnotification.depends = libsowatch
harmaccuweather.depends = libsowatch
qmafwwatchlet.depends = libsowatch
} else:simulator {
+ # This notification provider builds almost everywhere so it's good enough as testcase
SUBDIRS += harmaccuweather
harmaccuweather.depends = libsowatch
}
diff --git a/sowatchd/watchhandler.cpp b/sowatchd/watchhandler.cpp
index e396c17..00d0641 100644
--- a/sowatchd/watchhandler.cpp
+++ b/sowatchd/watchhandler.cpp
@@ -35,7 +35,7 @@ WatchHandler::WatchHandler(ConfigKey *config, QObject *parent)
// Setup watch status connections
connect(_watch, SIGNAL(connected()),
SIGNAL(statusChanged()));
- connect(_watch, SIGNAL(connected()),
+ connect(_watch, SIGNAL(disconnected()),
SIGNAL(statusChanged()));
// Now create the UI server