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

rohfeedback.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 ROHFEEDBACK_H
00021 #define ROHFEEDBACK_H
00022 
00023 
00024 /*
00025 
00026     RightOnHold feedback show
00027 
00028 */
00029 
00030 #define NOOFICONS 5
00031 
00032 #include <qlabel.h>
00033 #include <qtimer.h>
00034 
00035 class QEvent;
00036 class QPixmap;
00037 class QBitmap;
00038 class QMouseEvent;
00039 
00040 namespace Opie {
00041 namespace Internal {
00042 
00043 class RoHFeedback : public QLabel {
00044 
00045       Q_OBJECT
00046 
00047       enum Actions {
00048         FeedbackStopped    = -2,
00049         FeedbackTimerStart = -1,
00050         FeedbackShow       =  0
00051       };
00052 public :
00053 
00054       RoHFeedback();
00055       ~RoHFeedback();
00056 
00057 
00058       void init( const QPoint & P, QWidget* wid );
00059       void stop( void );
00060       int delay( void );
00061 
00062 public slots :
00063 
00064       void iconShow( void );
00065 
00066 protected :
00067 
00068       bool event( QEvent * E );
00069 
00070       QTimer Timer;
00071       int IconNr;
00072       QWidget * Receiver;
00073 
00074       static int IconWidth;
00075       static int IconHeight;
00076       static QPixmap * Imgs[NOOFICONS];
00077       static QBitmap * Masks[NOOFICONS];
00078 };
00079 }
00080 }
00081 
00082 #endif

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