00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021 #ifndef TESTCARDAPPLET_H
00022 #define TESTCARDAPPLET_H
00023
00024 #include <tqobject.h>
00025 #include <tqpixmap.h>
00026 #include <tqptrlist.h>
00027 #include <qxembed.h>
00028
00029 class KWinModule;
00030
00031 typedef long unsigned int Atom;
00032
00033
00034 class Systemtray : public TQWidget
00035 {
00036 Q_OBJECT
00037 TQ_OBJECT
00038 public:
00039 Systemtray(TQWidget* parent);
00040 ~Systemtray();
00041
00042 void updateBackgroundPixmap ( const TQPixmap & );
00043
00044 int getCurrentWindowCount();
00045
00046 virtual void initSystray( void );
00047
00048 public slots:
00049 void updateTrayWindows();
00050 int getTraySize();
00051 void systemTrayWindowAdded( WId w );
00052 void systemTrayWindowRemoved( WId w );
00053 void layoutSystray();
00054
00055 signals:
00056 void updated();
00057
00058 private:
00059 KWinModule *kwin_module;
00060 TQValueList<WId> systemTrayWindows;
00061
00062 TQPtrList<QXEmbed> m_Wins;
00063
00064 Atom net_system_tray_selection;
00065 Atom net_system_tray_opcode;
00066
00067 int no_of_systray_windows;
00068 };
00069
00070 #endif