Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

main.cpp

Go to the documentation of this file.
00001 /**********************************************************************
00002 ** Copyright (C) 2000-2002 Trolltech AS.  All rights reserved.
00003 **
00004 ** This file is part of the Qtopia Environment.
00005 **
00006 ** This file may be distributed and/or modified under the terms of the
00007 ** GNU General Public License version 2 as published by the Free Software
00008 ** Foundation and appearing in the file LICENSE.GPL included in the
00009 ** packaging of this file.
00010 **
00011 ** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
00012 ** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
00013 **
00014 ** See http://www.trolltech.com/gpl/ for GPL licensing information.
00015 **
00016 ** Contact info@trolltech.com if any conditions of this licensing are
00017 ** not clear to you.
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 //              qDebug("loop control created");
00056     loopControl = &lc;
00057     MediaPlayer mp( 0, "mediaPlayer" );
00058 //              qDebug("mediaplayer created");
00059 //    pl.setCaption( MediaPlayer::tr("OpiePlayer") );
00060     a.showMainDocumentWidget(&pl);
00061     return a.exec();
00062 }
00063 
00064 

Generated on Sat Nov 5 16:15:25 2005 for OPIE by  doxygen 1.4.2