karm Library API Documentation

tray.h

00001 #ifndef KARM_TRAY_H
00002 #define KARM_TRAY_H
00003 
00004 #include <qptrvector.h>
00005 #include <qpixmap.h>
00006 #include <qptrlist.h>
00007 // experiement
00008 // #include <kpopupmenu.h>
00009 #include <ksystemtray.h>
00010 
00011 #include "task.h"
00012 
00013 class QPopupMenu;
00014 class QTimer;
00015 
00016 class KSystemTray;
00017 class MainWindow;
00018 // experiment
00019 // class KPopupMenu;
00020 
00021 class KarmTray : public KSystemTray
00022 {
00023   Q_OBJECT
00024 
00025   public:
00026     KarmTray(MainWindow * parent);
00027     ~KarmTray();
00028 
00029   private:
00030     int _activeIcon;
00031     static QPtrVector<QPixmap> *icons;
00032     QTimer *_taskActiveTimer;
00033 
00034   public slots:
00035     void startClock();
00036     void stopClock();
00037     void resetClock();
00038     void updateToolTip( QPtrList<Task> activeTasks);
00039     void initToolTip();
00040 
00041   protected slots:
00042     void advanceClock();
00043     
00044   // experiment
00045   /*
00046     void insertTitle(QString title);
00047 
00048   private:
00049     KPopupMenu *trayPopupMenu;
00050     QPopupMenu *trayPopupMenu2;
00051     */
00052 };
00053 
00054 #endif // KARM_TRAY_H
KDE Logo
This file is part of the documentation for karm Library Version 3.2.2.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Sat May 1 11:37:53 2004 by doxygen 1.2.15 written by Dimitri van Heesch, © 1997-2003