1 /***************************************************************************
2 begin : Tue Aug 31 21:54:20 EST 2004
3 copyright : (C) 2004 by Michael Pyne <michael.pyne@kdemail.net>
4 (C) 2006 by Ian Monroe <ian@monroe.nu>
5 ***************************************************************************/
7 /***************************************************************************
9 * This program is free software; you can redistribute it and/or modify *
10 * it under the terms of the GNU General Public License as published by *
11 * the Free Software Foundation; either version 2 of the License, or *
12 * (at your option) any later version. *
14 ***************************************************************************/
16 #ifndef _DELETEDIALOG_H
17 #define _DELETEDIALOG_H
19 #include "ui_deletedialogbase.h"
30 class DeleteDialogBase
: public QWidget
, public Ui::DeleteDialogBase
33 DeleteDialogBase( QWidget
*parent
) : QWidget( parent
) {
39 class DeleteWidget
: public DeleteDialogBase
44 DeleteWidget(QWidget
*parent
= 0);
46 void setFiles(const KUrl::List
&files
);
49 virtual void slotShouldDelete(bool shouldDelete
);
52 class DeleteDialog
: public KDialog
57 explicit DeleteDialog(QWidget
*parent
, const char *name
= "delete_dialog");
58 static bool showTrashDialog(QWidget
* parent
, const KUrl::List
&files
);
60 bool confirmDeleteList(const KUrl::List
&condemnedFiles
);
61 void setFiles(const KUrl::List
&files
);
62 bool shouldDelete() const { return m_widget
->ddShouldDelete
->isChecked(); }
65 virtual void accept();
66 void slotShouldDelete(bool shouldDelete
);
69 DeleteWidget
*m_widget
;
70 KGuiItem m_trashGuiItem
;
75 // vim: set et ts=4 sw=4: