/***************************************************************************
                          systray.h  -  description
                             -------------------
    begin                : Sun Jul 21 2002
    copyright            : (C) 2002 by Kevin Hessels
    email                : khessels@shaw.ca
 ***************************************************************************/

/***************************************************************************
 *                                                                         *
 *   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 __SYSTRAY_H
#define __SYSTRAY_H

#include <ksystemtray.h>

class KPopupMenu;
class LibKdetvActions;


/**
  *@author Kevin Hessels
  */

class SysTray : public KSystemTray
{

Q_OBJECT

public: 
	SysTray(QWidget *parent = 0, const char *name = 0, KPopupMenu *p = 0, LibKdetvActions *a = 0);
	~SysTray();

protected:
	virtual void mouseDoubleClickEvent(QMouseEvent *);
	virtual void mousePressEvent(QMouseEvent *);
#ifndef QT_NO_WHEELEVENT
	virtual void wheelEvent(QWheelEvent *);
#endif
	
private:
	LibKdetvActions *actions;
	KPopupMenu *menu;

signals:
	void doubleClicked();
	void leftClicked();
};

#endif
