home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / qt3_emx.zip / examples / biff / biff.h < prev    next >
Encoding:
C/C++ Source or Header  |  2001-10-11  |  892 b   |  40 lines

  1. /****************************************************************************
  2. ** $Id:  qt/biff.h   3.0.0   edited Jun 22 13:24 $
  3. **
  4. ** Copyright (C) 1992-2000 Trolltech AS.  All rights reserved.
  5. **
  6. ** This file is part of an example program for Qt.  This example
  7. ** program may be used, distributed and modified without limitation.
  8. **
  9. *****************************************************************************/
  10.  
  11. #ifndef BIFF_H
  12. #define BIFF_H
  13.  
  14. #include <qwidget.h>
  15. #include <qdatetime.h>
  16. #include <qpixmap.h>
  17.  
  18.  
  19. class Biff : public QWidget
  20. {
  21.     Q_OBJECT
  22. public:
  23.     Biff( QWidget *parent=0, const char *name=0 );
  24.  
  25. protected:
  26.     void    timerEvent( QTimerEvent * );
  27.     void    paintEvent( QPaintEvent * );
  28.     void    mousePressEvent( QMouseEvent * );
  29.  
  30. private:
  31.     QDateTime    lastModified;
  32.     QPixmap    hasNewMail;
  33.     QPixmap    noNewMail;
  34.     QString    mailbox;
  35.     bool    gotMail;
  36. };
  37.  
  38.  
  39. #endif // BIFF_H
  40.