author | harlekin <harlekin> | 2002-06-23 21:59:16 (UTC) |
---|---|---|
committer | harlekin <harlekin> | 2002-06-23 21:59:16 (UTC) |
commit | 64f2b33735d6df230820af5aa0f47d8db29e6e35 (patch) (side-by-side diff) | |
tree | f6b6e62a3a2153c96c18df7055367049600192aa /core/applets/cardmon/cardmon.h | |
parent | 8e6c9f9b93d5c95fe1a40689817e86d478a8c944 (diff) | |
download | opie-64f2b33735d6df230820af5aa0f47d8db29e6e35.zip opie-64f2b33735d6df230820af5aa0f47d8db29e6e35.tar.gz opie-64f2b33735d6df230820af5aa0f47d8db29e6e35.tar.bz2 |
fixed first start and cleanups
Diffstat (limited to 'core/applets/cardmon/cardmon.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | core/applets/cardmon/cardmon.h | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/core/applets/cardmon/cardmon.h b/core/applets/cardmon/cardmon.h index 34b8d95..e424192 100644 --- a/core/applets/cardmon/cardmon.h +++ b/core/applets/cardmon/cardmon.h @@ -1,58 +1,59 @@ /* * cardmon.h * * --------------------- * * copyright : (c) 2002 by Maximilian Reiss * email : max.reiss@gmx.de * based on two apps by Devin Butterfield */ /*************************************************************************** * * * This program is free software; you can redistribute it and/or modify * * it under the terms of the GNU General Public License as published by * * the Free Software Foundation; either version 2 of the License, or * * (at your option) any later version. * * * ***************************************************************************/ #ifndef CARDMON_H #define CARDMON_H #include <qwidget.h> #include <qpixmap.h> #include <qpopupmenu.h> -#include <qtimer.h> class CardMonitor : public QWidget { Q_OBJECT public: CardMonitor( QWidget *parent = 0 ); ~CardMonitor(); bool getStatusPcmcia( int showPopUp = FALSE ); bool getStatusSd( int showPopUp = FALSE ); private slots: void cardMessage( const QCString &msg, const QByteArray & ); - void popUpTimeout(); + void popupTimeout(); protected: void paintEvent( QPaintEvent* ); void mousePressEvent( QMouseEvent * ); private: QPixmap pm; - QPopupMenu *popUpMenu; - QTimer *popUpMenuTimer; // pcmcia socket 0 bool cardInPcmcia0; QString cardInPcmcia0Name; + QString cardInPcmcia0Type; // pcmcia socket 1 bool cardInPcmcia1; QString cardInPcmcia1Name; + QString cardInPcmcia1Type; bool cardInSd; void iconShow(); - void popUp(QString message); + QPopupMenu *popupMenu; + void popup(QString message, QString icon=""); + QString getIconName(QString type); }; #endif |