1
/***************************************************************************
2
* Copyright 2007 by Marco Martin <notmart@gmail.com> *
5
* This program is free software; you can redistribute it and/or modify *
6
* it under the terms of the GNU General Public License as published by *
7
* the Free Software Foundation; either version 2 of the License, or *
8
* (at your option) any later version. *
10
* This program is distributed in the hope that it will be useful, *
11
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
12
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
13
* GNU General Public License for more details. *
15
* You should have received a copy of the GNU General Public License *
16
* along with this program; if not, write to the *
17
* Free Software Foundation, Inc., *
18
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA . *
19
***************************************************************************/
26
#include <QGraphicsView>
30
#include <Plasma/Applet>
35
class KFilePlacesModel;
43
class Trash : public Plasma::Applet
47
Trash(QObject *parent, const QVariantList &args);
48
virtual QList<QAction*> contextualActions();
52
void constraintsEvent(Plasma::Constraints constraints);
59
void dragEnterEvent(QGraphicsSceneDragDropEvent *event);
60
void dragLeaveEvent(QGraphicsSceneDragDropEvent *event);
61
void dropEvent(QGraphicsSceneDragDropEvent *event);
62
void createConfigurationInterface(KConfigDialog *parent);
65
QSizeF sizeHint(Qt::SizeHint which, const QSizeF & constraint = QSizeF()) const;
71
void slotDeleteItem(const KFileItem &);
72
void slotApplyConfig();
73
void emptyFinished(int exitCode, QProcess::ExitStatus exitStatus);
76
void iconSizeChanged(int group);
79
Plasma::IconWidget* m_icon;
80
QList<QAction*> actions;
81
KDirLister *m_dirLister;
86
KFilePlacesModel *m_places;
87
KCModuleProxy *m_proxy;
88
KProcess *m_emptyProcess;
91
K_EXPORT_PLASMA_APPLET(trash, Trash)