summaryrefslogtreecommitdiff
path: root/noncore/multimedia/opieplayer2/main.cpp
blob: ffc7cb6a42a9a3be93f58fedc4096fc9af962bd1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22

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

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

    MediaPlayerState st( 0, "mediaPlayerState" );
    PlayListWidget pl( st, 0, "playList" );
    pl.showMaximized();
    MediaPlayer mp( pl, st, 0, "mediaPlayer" );
    QObject::connect( &pl, SIGNAL( skinSelected() ),
                      &mp, SLOT( recreateAudioAndVideoWidgets() ) );

    a.showMainDocumentWidget(&pl);

    return a.exec();
}