summaryrefslogtreecommitdiff
path: root/demo/player/main.cpp
diff options
context:
space:
mode:
authorVsevolod Buzinov <ext-vsevolod.buzinov@nokia.com>2010-06-21 17:23:09 +0300
committerVsevolod Buzinov <ext-vsevolod.buzinov@nokia.com>2010-07-05 14:28:13 +0300
commitb026f0ad41985234416fa9ca1a2d054e8825961d (patch)
tree48b223aef928c293795d3fda1b1e60045e37a10f /demo/player/main.cpp
parent3ad5033772ff8c1a331f0c0b208a4a90b698e57b (diff)
Added initial version of the demo player
Updated documentation for the demo Added video resource acquisition
Diffstat (limited to 'demo/player/main.cpp')
-rw-r--r--demo/player/main.cpp22
1 files changed, 22 insertions, 0 deletions
diff --git a/demo/player/main.cpp b/demo/player/main.cpp
new file mode 100644
index 0000000..b229ddf
--- /dev/null
+++ b/demo/player/main.cpp
@@ -0,0 +1,22 @@
+#include <QtGui>
+#include <MApplication>
+#include <MApplicationWindow>
+#include "playerpage.h"
+
+int main (int argc, char *argv[])
+{
+ MApplication app(argc, argv);
+ app.setApplicationName("Policy-Aware Player");
+ app.setOrganizationName("Nokia");
+ app.setQuitOnLastWindowClosed(true);
+
+ MApplicationWindow window;
+ window.show();
+
+ PlayerPage *player = new PlayerPage();
+ player->setTitle("Policy-Aware Player");
+ player->appear(&window);
+
+ return app.exec();
+}
+