1 /***************************************************************************
4 * Copyright (C) 2008 Jason Stubbs <jasonbstubbs@gmail.com> *
6 * This program is free software; you can redistribute it and/or modify *
7 * it under the terms of the GNU General Public License as published by *
8 * the Free Software Foundation; either version 2 of the License, or *
9 * (at your option) any later version. *
11 * This program is distributed in the hope that it will be useful, *
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of *
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
14 * GNU General Public License for more details. *
16 * You should have received a copy of the GNU General Public License *
17 * along with this program; if not, write to the *
18 * Free Software Foundation, Inc., *
19 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA . *
20 ***************************************************************************/
25 #include <plasma/popupapplet.h>
34 class Applet
: public Plasma::PopupApplet
39 explicit Applet(QObject
*parent
, const QVariantList
&arguments
= QVariantList());
43 void constraintsEvent(Plasma::Constraints constraints
);
44 void setGeometry(const QRectF
&rect
);
45 Manager
*manager()const;
48 void paintInterface(QPainter
*painter
, const QStyleOptionGraphicsItem
*option
, const QRect
&contentsRect
);
49 void createConfigurationInterface(KConfigDialog
*parent
);
50 void initExtenderItem(Plasma::ExtenderItem
*extenderItem
);
52 void mousePressEvent(QGraphicsSceneMouseEvent
*event
) { Q_UNUSED(event
); }
53 void mouseReleaseEvent(QGraphicsSceneMouseEvent
*event
) { Q_UNUSED(event
); }
54 void hoverEnterEvent(QGraphicsSceneHoverEvent
*event
) { Q_UNUSED(event
); }
55 void hoverLeaveEvent(QGraphicsSceneHoverEvent
*event
) { Q_UNUSED(event
); }
57 void popupEvent(bool show
);
60 void configAccepted();
61 void propogateSizeHintChange(Qt::SizeHint which
);
63 void addNotification(SystemTray::Notification
*notification
);
64 void addJob(SystemTray::Job
*job
);
65 void hidePopupIfEmpty();