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

runningappbar.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 
00021 #ifndef RUNNING_APP_BAR_H
00022 #define RUNNING_APP_BAR_H
00023 
00024 #include <qtopia/applnk.h>
00025 #include <qtopia/global.h>
00026 
00027 #include <qframe.h>
00028 #include <qlist.h>
00029 #include <qtimer.h>
00030 #include <qmap.h>
00031 #include <qguardedptr.h>
00032 
00033 class AppLnkSet;
00034 class QCString;
00035 class QProcess;
00036 class QMessageBox;
00037 class TempScreenSaverMonitor;
00038 
00039 class RunningAppBar : public QFrame
00040 {
00041     Q_OBJECT
00042 
00043 public:
00044     RunningAppBar(QWidget* parent);
00045     ~RunningAppBar();
00046 
00047     QSize sizeHint() const;
00048 
00049 protected:
00050     void addTask(const AppLnk& appLnk);
00051     void removeTask(const AppLnk& appLnk);
00052     void paintEvent(QPaintEvent* event);
00053     void mousePressEvent(QMouseEvent*);
00054     void mouseReleaseEvent(QMouseEvent*);
00055 
00056 public slots:
00057     void applicationLaunched(const QString &);
00058     void applicationTerminated(const QString &);
00059 
00060 private slots:
00061     void received(const QCString& msg, const QByteArray& data);
00062 
00063 private:
00064     const AppLnkSet *appLnkSet;
00065     QList<AppLnk> appList;
00066     int selectedAppIndex;
00067     int spacing;
00068 };
00069 
00070 
00071 #endif
00072 

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