blob: fd4347ce87cb6bbcede38d62a2d97b36f6533e6d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
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);
new TestDeclarativeWatchlet(server);
new TestWatchlet(server);
server->runWatchlet("com.javispedro.sowatch.testdeclarativewatchlet");
//server->runWatchlet("com.javispedro.sowatch.testwatchlet");
return a.exec();
}
|