summaryrefslogtreecommitdiffstats
path: root/main.cpp
diff options
context:
space:
mode:
authorYoann Lopes <yoann.lopes@nokia.com>2011-11-01 21:39:03 +0100
committerYoann Lopes <yoann.lopes@nokia.com>2011-11-01 21:39:03 +0100
commit1136464ca13be9d517c2ce5e8540d5339b8a271f (patch)
treef163d3183d8305c0f022c11619dae86146fc643c /main.cpp
parentaf96acce2ab301bf0d8f1b3a5cef72115af44607 (diff)
Added support for headset keys (play, pause, next, previous).
Diffstat (limited to 'main.cpp')
-rw-r--r--main.cpp13
1 files changed, 8 insertions, 5 deletions
diff --git a/main.cpp b/main.cpp
index 99aa952..1e86f81 100644
--- a/main.cpp
+++ b/main.cpp
@@ -5,22 +5,22 @@
** Contact: Yoann Lopes (yoann.lopes@nokia.com)
**
** This file is part of the MeeSpot project.
-**
+**
** Redistribution and use in source and binary forms, with or without
** modification, are permitted provided that the following conditions
** are met:
-**
+**
** Redistributions of source code must retain the above copyright notice,
** this list of conditions and the following disclaimer.
-**
+**
** Redistributions in binary form must reproduce the above copyright
** notice, this list of conditions and the following disclaimer in the
** documentation and/or other materials provided with the distribution.
-**
+**
** Neither the name of Nokia Corporation and its Subsidiary(-ies) nor the names of its
** contributors may be used to endorse or promote products derived from
** this software without specific prior written permission.
-**
+**
** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
@@ -43,6 +43,7 @@
#include <QtDeclarative>
#include <MDeclarativeCache>
+#include "src/hardwarekeyshandler.h"
#include <QtSpotify>
#include <qspotify_qmlplugin.h>
@@ -61,6 +62,8 @@ Q_DECL_EXPORT int main(int argc, char *argv[])
view->rootContext()->setContextProperty(QLatin1String("spotifySession"), QSpotifySession::instance());
view->engine()->addImageProvider(QLatin1String("spotify"), new QSpotifyImageProvider);
+ HardwareKeysHandler keyHandler;
+
view->setSource(QUrl("qrc:/qml/main.qml"));
view->showFullScreen();