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

qrr.h

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 #ifndef QRR_H
00021 #define QRR_H
00022 
00023 #include <qobject.h>
00024 #include <qlist.h>
00025 #include <qcstring.h>
00026 
00027 class QFile;
00028 class QDialog;
00029 class QLabel;
00030 class QProgressBar;
00031 class QWidget;
00032 
00033 class QueuedRequestRunner : public QObject
00034 {
00035     Q_OBJECT
00036 public:
00037     QueuedRequestRunner( QFile *f, QWidget *parent );
00038     virtual ~QueuedRequestRunner();
00039 
00040     void desktopMessage( const QCString &message, const QByteArray &data );
00041 
00042     bool readyToDelete;
00043     bool waitingForMessages;
00044 
00045 signals:
00046     void finished();
00047 
00048 public slots:
00049     void process();
00050 
00051 private:
00052     int countSteps();
00053     bool process( bool counting );
00054 
00055     QFile *file;
00056     QList<QCString> waitMsgs;
00057     QDialog      *progressDialog;
00058     QLabel       *progressLabel;
00059     QProgressBar *progressBar;
00060     int steps;
00061     QCString action;
00062 };
00063 
00064 
00065 #endif // QRR_H
00066 

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