|
|
|
@ -9,8 +9,8 @@
|
|
|
|
|
*
|
|
|
|
|
* Copyright (C) 2005 by Renchi Raju <renchi@pooh.tam.uiuc.edu>
|
|
|
|
|
*
|
|
|
|
|
* Lots of the file io code is copied from KDE file kioslave.
|
|
|
|
|
* Copyright for the KDE file kioslave follows:
|
|
|
|
|
* Lots of the file io code is copied from KDE file tdeioslave.
|
|
|
|
|
* Copyright for the KDE file tdeioslave follows:
|
|
|
|
|
* Copyright (C) 2000-2002 Stephan Kulow <coolo@kde.org>
|
|
|
|
|
* Copyright (C) 2000-2002 David Faure <faure@kde.org>
|
|
|
|
|
* Copyright (C) 2000-2002 Waldo Bastian <bastian@kde.org>
|
|
|
|
@ -62,11 +62,11 @@ extern "C"
|
|
|
|
|
#include <kglobal.h>
|
|
|
|
|
#include <klocale.h>
|
|
|
|
|
#include <kinstance.h>
|
|
|
|
|
#include <kfilemetainfo.h>
|
|
|
|
|
#include <tdefilemetainfo.h>
|
|
|
|
|
#include <kmimetype.h>
|
|
|
|
|
#include <kdebug.h>
|
|
|
|
|
#include <kio/global.h>
|
|
|
|
|
#include <kio/ioslave_defaults.h>
|
|
|
|
|
#include <tdeio/global.h>
|
|
|
|
|
#include <tdeio/ioslave_defaults.h>
|
|
|
|
|
#include <klargefile.h>
|
|
|
|
|
#include <tdeversion.h>
|
|
|
|
|
|
|
|
|
@ -378,7 +378,7 @@ void kio_digikamalbums::get( const KURL& url )
|
|
|
|
|
TQString libraryPath = url.user();
|
|
|
|
|
if (libraryPath.isEmpty())
|
|
|
|
|
{
|
|
|
|
|
error(TDEIO::ERR_UNKNOWN, "Album Library Path not supplied to kioslave");
|
|
|
|
|
error(TDEIO::ERR_UNKNOWN, "Album Library Path not supplied to tdeioslave");
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -464,7 +464,7 @@ void kio_digikamalbums::put(const KURL& url, int permissions, bool overwrite, bo
|
|
|
|
|
TQString libraryPath = url.user();
|
|
|
|
|
if (libraryPath.isEmpty())
|
|
|
|
|
{
|
|
|
|
|
error(TDEIO::ERR_UNKNOWN, "Album Library Path not supplied to kioslave");
|
|
|
|
|
error(TDEIO::ERR_UNKNOWN, "Album Library Path not supplied to tdeioslave");
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -618,7 +618,7 @@ void kio_digikamalbums::copy( const KURL &src, const KURL &dst, int mode, bool o
|
|
|
|
|
TQString libraryPath = src.user();
|
|
|
|
|
if (libraryPath.isEmpty())
|
|
|
|
|
{
|
|
|
|
|
error(TDEIO::ERR_UNKNOWN, "Album Library Path not supplied to kioslave");
|
|
|
|
|
error(TDEIO::ERR_UNKNOWN, "Album Library Path not supplied to tdeioslave");
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -869,7 +869,7 @@ void kio_digikamalbums::rename( const KURL& src, const KURL& dst, bool overwrite
|
|
|
|
|
TQString libraryPath = src.user();
|
|
|
|
|
if (libraryPath.isEmpty())
|
|
|
|
|
{
|
|
|
|
|
error(TDEIO::ERR_UNKNOWN, "Album Library Path not supplied to kioslave");
|
|
|
|
|
error(TDEIO::ERR_UNKNOWN, "Album Library Path not supplied to tdeioslave");
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -1010,7 +1010,7 @@ void kio_digikamalbums::stat( const KURL& url )
|
|
|
|
|
TQString libraryPath = url.user();
|
|
|
|
|
if (libraryPath.isEmpty())
|
|
|
|
|
{
|
|
|
|
|
error(TDEIO::ERR_UNKNOWN, "Album Library Path not supplied to kioslave");
|
|
|
|
|
error(TDEIO::ERR_UNKNOWN, "Album Library Path not supplied to tdeioslave");
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -1033,8 +1033,8 @@ void kio_digikamalbums::listDir( const KURL& url )
|
|
|
|
|
TQString libraryPath = url.user();
|
|
|
|
|
if (libraryPath.isEmpty())
|
|
|
|
|
{
|
|
|
|
|
error(TDEIO::ERR_UNKNOWN, "Album Library Path not supplied to kioslave");
|
|
|
|
|
kdWarning() << "Album Library Path not supplied to kioslave" << endl;
|
|
|
|
|
error(TDEIO::ERR_UNKNOWN, "Album Library Path not supplied to tdeioslave");
|
|
|
|
|
kdWarning() << "Album Library Path not supplied to tdeioslave" << endl;
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -1083,7 +1083,7 @@ void kio_digikamalbums::mkdir( const KURL& url, int permissions )
|
|
|
|
|
TQString libraryPath = url.user();
|
|
|
|
|
if (libraryPath.isEmpty())
|
|
|
|
|
{
|
|
|
|
|
error(TDEIO::ERR_UNKNOWN, "Album Library Path not supplied to kioslave");
|
|
|
|
|
error(TDEIO::ERR_UNKNOWN, "Album Library Path not supplied to tdeioslave");
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -1157,7 +1157,7 @@ void kio_digikamalbums::chmod( const KURL& url, int permissions )
|
|
|
|
|
TQString libraryPath = url.user();
|
|
|
|
|
if (libraryPath.isEmpty())
|
|
|
|
|
{
|
|
|
|
|
error(TDEIO::ERR_UNKNOWN, "Album Library Path not supplied to kioslave");
|
|
|
|
|
error(TDEIO::ERR_UNKNOWN, "Album Library Path not supplied to tdeioslave");
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -1177,7 +1177,7 @@ void kio_digikamalbums::del( const KURL& url, bool isfile)
|
|
|
|
|
TQString libraryPath = url.user();
|
|
|
|
|
if (libraryPath.isEmpty())
|
|
|
|
|
{
|
|
|
|
|
error(TDEIO::ERR_UNKNOWN, "Album Library Path not supplied to kioslave");
|
|
|
|
|
error(TDEIO::ERR_UNKNOWN, "Album Library Path not supplied to tdeioslave");
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
|