add more spacing
[personal-kdebase.git] / runtime / kioexec / main.h
blobce42fae3d22b19d66888a87c844222ac615bd768
1 /* This file is part of the KDE project
2 Copyright (C) 1998, 1999 Torben Weis <weis@kde.org>
3 Copyright (C) 2000-2005 David Faure <faure@kde.org>
4 Copyright (C) 2001 Waldo Bastian <bastian@kde.org>
6 This program is free software; you can redistribute it and/or
7 modify it under the terms of the GNU General Public
8 License as published by the Free Software Foundation; either
9 version 2 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 GNU
14 General Public License for more details.
16 You should have received a copy of the GNU General Public License
17 along with this program; see the file COPYING. If not, write to
18 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
19 Boston, MA 02110-1301, USA.
23 #ifndef KIOEXEC_MAIN_H
24 #define KIOEXEC_MAIN_H
26 #include <QtCore/QObject>
27 #include <QtCore/QString>
28 #include <QList>
29 #include <QtCore/QTimer>
31 namespace KIO { class Job; }
33 class KIOExec : public QObject
35 Q_OBJECT
36 public:
37 KIOExec();
39 bool exited() const { return mExited; }
41 public Q_SLOTS:
42 void slotResult( KJob * );
43 void slotRunApp();
45 protected:
46 bool mExited;
47 bool tempfiles;
48 QString suggestedFileName;
49 int counter;
50 int expectedCounter;
51 QString command;
52 struct FileInfo {
53 QString path;
54 KUrl url;
55 int time;
57 QList<FileInfo> fileList;
58 int jobCounter;
59 QList<KIO::Job *> jobList;
62 #endif