00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020 #include <qmessagebox.h>
00021
00022
00023 #include "mediaplayerstate.h"
00024 #include "playlistwidget.h"
00025 #include "audiowidget.h"
00026 #include "videowidget.h"
00027 #include "loopcontrol.h"
00028 #include "mediaplayer.h"
00029
00030 MediaPlayerState *mediaPlayerState;
00031 PlayListWidget *playList;
00032 AudioWidget *audioUI;
00033 VideoWidget *videoUI;
00034 LoopControl *loopControl;
00035
00036
00037 int main(int argc, char **argv) {
00038 QPEApplication a(argc,argv);
00039
00040 if(!QDir(QString(getenv("OPIEDIR")) +"/pics/opieplayer2/skins/").exists()) {
00041 QMessageBox::critical( 0, "Opieplayer Error", "<p>opieplayer2 skin not found. Please install an opieplayer2 skin.</p>" );
00042
00043 return -1;
00044 }
00045
00046 MediaPlayerState st( 0, "mediaPlayerState" );
00047 mediaPlayerState = &st;
00048 PlayListWidget pl( 0, "playList" );
00049 playList = &pl;
00050 AudioWidget aw( 0, "audioUI" );
00051 audioUI = &aw;
00052 VideoWidget vw( 0, "videoUI" );
00053 videoUI = &vw;
00054 LoopControl lc( 0, "loopControl" );
00055
00056 loopControl = &lc;
00057 MediaPlayer mp( 0, "mediaPlayer" );
00058
00059
00060 a.showMainDocumentWidget(&pl);
00061 return a.exec();
00062 }
00063
00064