summaryrefslogtreecommitdiff
path: root/noncore/multimedia/opieplayer2/main.cpp
blob: 827f7737b4ab8b425daa1e46c303e15c170384b8 (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

#include <qpe/qpeapplication.h>
#include "mediaplayerstate.h"
#include "playlistwidget.h"
#include "audiowidget.h"
#include "videowidget.h"
#include "mediaplayer.h"

MediaPlayerState *mediaPlayerState;
PlayListWidget *playList;
AudioWidget *audioUI;
VideoWidget *videoUI;

int main(int argc, char **argv) {
    QPEApplication a(argc,argv);

    MediaPlayerState st( 0, "mediaPlayerState" );
    mediaPlayerState = &st;
    PlayListWidget pl( 0, "playList" );
    playList = &pl;
    AudioWidget aw( 0, "audioUI" );
    audioUI = &aw;
    VideoWidget vw( 0, "videoUI" );
    videoUI = &vw;

    MediaPlayer mp( 0, "mediaPlayer" );

    a.showMainDocumentWidget(&pl);

    return a.exec();
}