Fix regressions
[kphotoalbum.git] / ImportExport / Import.h
blobfc6d3b1335bb4ebe0d565dca85fa0bad1e6cb056
1 /* Copyright (C) 2003-2006 Jesper K. Pedersen <blackie@kde.org>
3 This program is free software; you can redistribute it and/or
4 modify it under the terms of the GNU General Public
5 License as published by the Free Software Foundation; either
6 version 2 of the License, or (at your option) any later version.
8 This program is distributed in the hope that it will be useful,
9 but WITHOUT ANY WARRANTY; without even the implied warranty of
10 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11 General Public License for more details.
13 You should have received a copy of the GNU General Public License
14 along with this program; see the file COPYING. If not, write to
15 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
16 Boston, MA 02110-1301, USA.
19 #include <kurl.h>
20 class KJob;
21 namespace KIO {class Job; }
23 class KTemporaryFile;
25 namespace ImportExport
28 class Import :public QObject
30 Q_OBJECT
32 public:
33 static void imageImport();
34 static void imageImport( const KUrl& url );
36 private slots:
37 void downloadKimJobCompleted( KJob* );
38 void data( KIO::Job*, const QByteArray& );
41 private:
42 void exec(const QString& fileName );
43 void downloadUrl( const KUrl& url );
45 private:
46 Import();
47 ~Import();
48 KTemporaryFile* m_tmp;
49 KUrl m_kimFileUrl;