Diffstat (limited to 'noncore/multimedia/opieplayer2/main.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/multimedia/opieplayer2/main.cpp | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/noncore/multimedia/opieplayer2/main.cpp b/noncore/multimedia/opieplayer2/main.cpp new file mode 100644 index 0000000..827f773 --- a/dev/null +++ b/noncore/multimedia/opieplayer2/main.cpp | |||
@@ -0,0 +1,33 @@ | |||
1 | |||
2 | #include <qpe/qpeapplication.h> | ||
3 | #include "mediaplayerstate.h" | ||
4 | #include "playlistwidget.h" | ||
5 | #include "audiowidget.h" | ||
6 | #include "videowidget.h" | ||
7 | #include "mediaplayer.h" | ||
8 | |||
9 | MediaPlayerState *mediaPlayerState; | ||
10 | PlayListWidget *playList; | ||
11 | AudioWidget *audioUI; | ||
12 | VideoWidget *videoUI; | ||
13 | |||
14 | int main(int argc, char **argv) { | ||
15 | QPEApplication a(argc,argv); | ||
16 | |||
17 | MediaPlayerState st( 0, "mediaPlayerState" ); | ||
18 | mediaPlayerState = &st; | ||
19 | PlayListWidget pl( 0, "playList" ); | ||
20 | playList = &pl; | ||
21 | AudioWidget aw( 0, "audioUI" ); | ||
22 | audioUI = &aw; | ||
23 | VideoWidget vw( 0, "videoUI" ); | ||
24 | videoUI = &vw; | ||
25 | |||
26 | MediaPlayer mp( 0, "mediaPlayer" ); | ||
27 | |||
28 | a.showMainDocumentWidget(&pl); | ||
29 | |||
30 | return a.exec(); | ||
31 | } | ||
32 | |||
33 | |||