/***************************************************************************
                          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 <KSystemTrayIcon>
//Added by qt3to4:
#include <QWheelEvent>
#include <QMouseEvent>

class KMenu;
class LibKdetvActions;


/**
  *@author Kevin Hessels
  */

class SysTray : public KSystemTrayIcon
{

Q_OBJECT

public:
	SysTray(QWidget *parent = 0, const char *name = 0, KMenu *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;
	KMenu *menu;

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

#endif
