diff options
author | Javier S. Pedro <maemo@javispedro.com> | 2011-09-16 17:47:24 +0200 |
---|---|---|
committer | Javier <javier@pcjavier.(none)> | 2011-09-16 17:47:24 +0200 |
commit | aa1c0fd3146b4ed055d181c99d52463afa6bedbb (patch) | |
tree | f6fb8d9693ad8c545ddabf76312f8f33b5b9878f /main.cpp | |
download | sowatch-aa1c0fd3146b4ed055d181c99d52463afa6bedbb.tar.gz sowatch-aa1c0fd3146b4ed055d181c99d52463afa6bedbb.zip |
Initial import
Diffstat (limited to 'main.cpp')
-rw-r--r-- | main.cpp | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/main.cpp b/main.cpp new file mode 100644 index 0000000..8bad8ce --- /dev/null +++ b/main.cpp @@ -0,0 +1,31 @@ +#include <QtGui/QApplication> +#include <QtConnectivity/QBluetoothAddress> + +#include "metawatchsimulator.h" +#include "metawatch.h" +#include "watchserver.h" +#include "testwatchlet.h" +#include "testdeclarativewatchlet.h" + +using namespace sowatch; +QTM_USE_NAMESPACE + +static Watch *watch; +static WatchServer *server; +static Watchlet *watchlet; + +int main(int argc, char *argv[]) +{ + QApplication a(argc, argv); + + //watch = new MetaWatchSimulator(); + watch = new MetaWatch(QBluetoothAddress("D0:37:61:C3:C7:99")); + server = new WatchServer(watch); + //watchlet = new TestDeclarativeWatchlet(server); + watchlet = new TestWatchlet(server); + + //server->runWatchlet("com.javispedro.sowatch.testdeclarativewatchlet"); + server->runWatchlet("com.javispedro.sowatch.testwatchlet"); + + return a.exec(); +} |