1
// vim: set tabstop=4 shiftwidth=4 noexpandtab
3
Gwenview - A simple image viewer for KDE
4
Copyright 2000-2004 Aur�lien G�teau
6
This program is free software; you can redistribute it and/or
7
modify it under the terms of the GNU General Public License
8
as published by the Free Software Foundation; either version 2
9
of the License, or (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 Free Software
18
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
21
#ifndef FILEOPOBJECT_H
22
#define FILEOPOBJECT_H
36
* This class is a base class for wrappers to KIO slaves asynchronous
37
* file operations. These classes handle all steps of a file operation :
38
* - asking the user what to do with a file
39
* - performing the operation
40
* - showing result dialogs
42
* All these classes are used by the @FileOperation namespace-like class
44
class FileOpObject : public QObject {
47
FileOpObject(const KURL&,QWidget* parent=0L);
48
FileOpObject(const KURL::List&,QWidget* parent=0L);
49
virtual void operator()()=0;
55
virtual void slotResult(KIO::Job*);
63
class FileOpCopyToObject : public FileOpObject {
66
FileOpCopyToObject(const KURL& url,QWidget* parent=0L) : FileOpObject(url,parent) {}
67
FileOpCopyToObject(const KURL::List& urlList,QWidget* parent=0L) : FileOpObject(urlList,parent) {}
72
class FileOpMoveToObject : public FileOpObject {
75
FileOpMoveToObject(const KURL& url,QWidget* parent=0L) : FileOpObject(url,parent) {}
76
FileOpMoveToObject(const KURL::List& urlList,QWidget* parent=0L) : FileOpObject(urlList,parent) {}
81
class FileOpTrashObject : public FileOpObject {
84
FileOpTrashObject(const KURL& url,QWidget* parent=0L) : FileOpObject(url,parent) {}
85
FileOpTrashObject(const KURL::List& urlList,QWidget* parent=0L) : FileOpObject(urlList,parent) {}
90
class FileOpRealDeleteObject : public FileOpObject {
93
FileOpRealDeleteObject(const KURL& url,QWidget* parent=0L) : FileOpObject(url,parent) {}
94
FileOpRealDeleteObject(const KURL::List& urlList,QWidget* parent=0L) : FileOpObject(urlList,parent) {}
99
class FileOpRenameObject : public FileOpObject {
102
FileOpRenameObject(const KURL& url,QWidget* parent=0L) : FileOpObject(url,parent) {}
106
void renamed(const QString& newName);
109
virtual void slotResult(KIO::Job*);
112
QString mNewFilename;