blob: d0eae3fd6a988772fe673d0d99285d57222da59d (
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
32
33
34
35
|
#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;
int main(int argc, char *argv[])
{
QApplication a(argc, argv);
if (a.arguments().count() > 1) {
watch = new MetaWatch(QBluetoothAddress(a.arguments().at(1)));
} else {
watch = new MetaWatchSimulator();
}
/* 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();
}
|