add mp3 and ogg torrent url info to JamendoAlbum
[amarok.git] / src / deletedialog.h
blob93fbf4655475110ccce2a64dbe39ba282a7f9009
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 /***************************************************************************
8 * *
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. *
13 * *
14 ***************************************************************************/
16 #ifndef _DELETEDIALOG_H
17 #define _DELETEDIALOG_H
19 #include "ui_deletedialogbase.h"
21 #include <KDialog>
22 #include <KUrl>
24 #include <QCheckBox>
25 #include <QLabel>
27 class KGuiItem;
28 class QLabel;
30 class DeleteDialogBase : public QWidget, public Ui::DeleteDialogBase
32 public:
33 DeleteDialogBase( QWidget *parent ) : QWidget( parent ) {
34 setupUi( this );
39 class DeleteWidget : public DeleteDialogBase
41 Q_OBJECT
43 public:
44 DeleteWidget(QWidget *parent = 0);
46 void setFiles(const KUrl::List &files);
48 protected slots:
49 virtual void slotShouldDelete(bool shouldDelete);
52 class DeleteDialog : public KDialog
54 Q_OBJECT
56 public:
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(); }
64 protected slots:
65 virtual void accept();
66 void slotShouldDelete(bool shouldDelete);
68 private:
69 DeleteWidget *m_widget;
70 KGuiItem m_trashGuiItem;
73 #endif
75 // vim: set et ts=4 sw=4: