mirror of
https://bitbucket.org/smil3y/kdelibs.git
synced 2025-02-24 02:42:48 +00:00
generic: remove now unused http/webdav slave bits
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
parent
d00cf4fd23
commit
b277cdadfb
13 changed files with 32 additions and 140 deletions
|
@ -4,7 +4,6 @@ project(interfaces)
|
|||
|
||||
add_subdirectory( ktexteditor )
|
||||
add_subdirectory( kregexpeditor )
|
||||
add_subdirectory( kio )
|
||||
add_subdirectory( terminal )
|
||||
add_subdirectory( khexedit )
|
||||
add_subdirectory( kspeech )
|
||||
|
|
|
@ -1,5 +0,0 @@
|
|||
install(
|
||||
FILES
|
||||
http.h
|
||||
DESTINATION ${KDE4_INCLUDE_INSTALL_DIR}/kio
|
||||
)
|
|
@ -1,36 +0,0 @@
|
|||
/* This file is part of the KDE libraries
|
||||
Copyright (C) 2002 Jan-Pascal van Best <janpascal@vanbest.org>
|
||||
|
||||
This library is free software; you can redistribute it and/or
|
||||
modify it under the terms of the GNU Library General Public
|
||||
License as published by the Free Software Foundation; either
|
||||
version 2 of the License, or (at your option) any later version.
|
||||
|
||||
This library is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
Library General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU Library General Public License
|
||||
along with this library; see the file COPYING.LIB. If not, write to
|
||||
the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
|
||||
Boston, MA 02110-1301, USA.
|
||||
*/
|
||||
|
||||
#ifndef KIOSLAVE_HTTP_H_
|
||||
#define KIOSLAVE_HTTP_H_
|
||||
|
||||
|
||||
namespace KIO {
|
||||
|
||||
/** HTTP / DAV method **/
|
||||
enum HTTP_METHOD {HTTP_GET, HTTP_PUT, HTTP_POST, HTTP_HEAD, HTTP_DELETE,
|
||||
HTTP_OPTIONS, DAV_PROPFIND, DAV_PROPPATCH, DAV_MKCOL,
|
||||
DAV_COPY, DAV_MOVE, DAV_LOCK, DAV_UNLOCK, DAV_SEARCH,
|
||||
DAV_SUBSCRIBE, DAV_UNSUBSCRIBE, DAV_POLL, DAV_NOTIFY,
|
||||
DAV_REPORT,
|
||||
HTTP_UNKNOWN = -1};
|
||||
|
||||
}
|
||||
|
||||
#endif
|
|
@ -273,7 +273,6 @@ install(
|
|||
kio/chmodjob.h
|
||||
kio/authinfo.h
|
||||
kio/ioslave_defaults.h
|
||||
kio/http_slave_defaults.h
|
||||
kio/previewjob.h
|
||||
kio/thumbcreator.h
|
||||
kio/thumbsequencecreator.h
|
||||
|
|
|
@ -336,12 +336,6 @@ KIO_EXPORT QString KIO::buildErrorString(int errorCode, const QString &errorText
|
|||
case KIO::ERR_UPGRADE_REQUIRED:
|
||||
result = i18n( "%1 is required by the server, but is not available." , errorText);
|
||||
break;
|
||||
case KIO::ERR_POST_DENIED:
|
||||
result = i18n( "Access to restricted port in POST denied.");
|
||||
break;
|
||||
case KIO::ERR_POST_NO_SIZE:
|
||||
result = i18n( "The required content size information was not provided for a POST operation.");
|
||||
break;
|
||||
default:
|
||||
result = i18n( "Unknown error code %1\n%2\nPlease send a full bug report at %3.", errorCode , errorText, QString(BUG_REPORT_URL) );
|
||||
break;
|
||||
|
|
|
@ -220,53 +220,50 @@ namespace KIO
|
|||
ERR_COULD_NOT_CLOSEDIR = KJob::UserDefinedError + 35,
|
||||
ERR_COULD_NOT_MKDIR = KJob::UserDefinedError + 36,
|
||||
ERR_COULD_NOT_RMDIR = KJob::UserDefinedError + 37,
|
||||
ERR_CANNOT_RESUME = KJob::UserDefinedError + 38,
|
||||
ERR_CANNOT_RENAME = KJob::UserDefinedError + 39,
|
||||
ERR_CANNOT_CHMOD = KJob::UserDefinedError + 40,
|
||||
ERR_CANNOT_DELETE = KJob::UserDefinedError + 41,
|
||||
ERR_COULD_NOT_SEEK = KJob::UserDefinedError + 38,
|
||||
ERR_CANNOT_RESUME = KJob::UserDefinedError + 39,
|
||||
ERR_CANNOT_RENAME = KJob::UserDefinedError + 40,
|
||||
ERR_CANNOT_CHMOD = KJob::UserDefinedError + 41,
|
||||
ERR_CANNOT_DELETE = KJob::UserDefinedError + 42,
|
||||
ERR_CANNOT_CHOWN = KJob::UserDefinedError + 43,
|
||||
// The text argument is the protocol that the dead slave supported.
|
||||
// This means for example: file, ftp, http, ...
|
||||
ERR_SLAVE_DIED = KJob::UserDefinedError + 42,
|
||||
ERR_OUT_OF_MEMORY = KJob::UserDefinedError + 43,
|
||||
ERR_UNKNOWN_PROXY_HOST = KJob::UserDefinedError + 44,
|
||||
ERR_COULD_NOT_AUTHENTICATE = KJob::UserDefinedError + 45,
|
||||
ERR_SLAVE_DIED = KJob::UserDefinedError + 44,
|
||||
ERR_OUT_OF_MEMORY = KJob::UserDefinedError + 45,
|
||||
ERR_UNKNOWN_PROXY_HOST = KJob::UserDefinedError + 46,
|
||||
ERR_COULD_NOT_AUTHENTICATE = KJob::UserDefinedError + 47,
|
||||
// Action got aborted from application side
|
||||
ERR_ABORTED = KJob::UserDefinedError + 46,
|
||||
ERR_INTERNAL_SERVER = KJob::UserDefinedError + 47,
|
||||
ERR_SERVER_TIMEOUT = KJob::UserDefinedError + 48,
|
||||
ERR_SERVICE_NOT_AVAILABLE = KJob::UserDefinedError + 49,
|
||||
ERR_UNKNOWN = KJob::UserDefinedError + 50,
|
||||
ERR_ABORTED = KJob::UserDefinedError + 48,
|
||||
ERR_INTERNAL_SERVER = KJob::UserDefinedError + 49,
|
||||
ERR_SERVER_TIMEOUT = KJob::UserDefinedError + 50,
|
||||
ERR_SERVICE_NOT_AVAILABLE = KJob::UserDefinedError + 51,
|
||||
ERR_UNKNOWN = KJob::UserDefinedError + 52,
|
||||
// (was a warning) ERR_CHECKSUM_MISMATCH
|
||||
ERR_UNKNOWN_INTERRUPT = KJob::UserDefinedError + 51,
|
||||
ERR_CANNOT_DELETE_ORIGINAL = KJob::UserDefinedError + 52,
|
||||
ERR_CANNOT_DELETE_PARTIAL = KJob::UserDefinedError + 53,
|
||||
ERR_CANNOT_RENAME_ORIGINAL = KJob::UserDefinedError + 54,
|
||||
ERR_CANNOT_RENAME_PARTIAL = KJob::UserDefinedError + 55,
|
||||
ERR_NEED_PASSWD = KJob::UserDefinedError + 56,
|
||||
ERR_CANNOT_SYMLINK = KJob::UserDefinedError + 57,
|
||||
ERR_UNKNOWN_INTERRUPT = KJob::UserDefinedError + 53,
|
||||
ERR_CANNOT_DELETE_ORIGINAL = KJob::UserDefinedError + 54,
|
||||
ERR_CANNOT_DELETE_PARTIAL = KJob::UserDefinedError + 55,
|
||||
ERR_CANNOT_RENAME_ORIGINAL = KJob::UserDefinedError + 56,
|
||||
ERR_CANNOT_RENAME_PARTIAL = KJob::UserDefinedError + 57,
|
||||
ERR_NEED_PASSWD = KJob::UserDefinedError + 58,
|
||||
ERR_CANNOT_SYMLINK = KJob::UserDefinedError + 59,
|
||||
// Action succeeded but no content will follow.
|
||||
ERR_NO_CONTENT = KJob::UserDefinedError + 58,
|
||||
ERR_DISK_FULL = KJob::UserDefinedError + 59,
|
||||
ERR_NO_CONTENT = KJob::UserDefinedError + 60,
|
||||
ERR_DISK_FULL = KJob::UserDefinedError + 61,
|
||||
// src==dest when moving/copying
|
||||
ERR_IDENTICAL_FILES = KJob::UserDefinedError + 60,
|
||||
ERR_IDENTICAL_FILES = KJob::UserDefinedError + 62,
|
||||
// for slave specified errors that can be
|
||||
// rich text. Email links will be handled
|
||||
// by the standard email app and all hrefs
|
||||
// will be handled by the standard browser.
|
||||
// <a href="exec:/khelpcenter ?" will be
|
||||
// forked.
|
||||
ERR_SLAVE_DEFINED = KJob::UserDefinedError + 61,
|
||||
ERR_SLAVE_DEFINED = KJob::UserDefinedError + 63,
|
||||
// A transport upgrade is required to access this
|
||||
// object. For instance, TLS is demanded by
|
||||
// the server in order to continue.
|
||||
ERR_UPGRADE_REQUIRED = KJob::UserDefinedError + 62,
|
||||
// Issued when trying to POST data to a certain Ports, see job.cpp
|
||||
ERR_POST_DENIED = KJob::UserDefinedError + 63,
|
||||
ERR_COULD_NOT_SEEK = KJob::UserDefinedError + 64,
|
||||
ERR_UPGRADE_REQUIRED = KJob::UserDefinedError + 64,
|
||||
// Emitted by setModificationTime
|
||||
ERR_CANNOT_SETTIME = KJob::UserDefinedError + 65,
|
||||
ERR_CANNOT_CHOWN = KJob::UserDefinedError + 66,
|
||||
ERR_POST_NO_SIZE = KJob::UserDefinedError + 67
|
||||
};
|
||||
|
||||
/**
|
||||
|
|
|
@ -1,48 +0,0 @@
|
|||
/* This file is part of the KDE libraries
|
||||
Copyright (C) 2001 Waldo Bastian <bastian@kde.org>
|
||||
|
||||
This library is free software; you can redistribute it and/or
|
||||
modify it under the terms of the GNU Library General Public
|
||||
License version 2 as published by the Free Software Foundation.
|
||||
|
||||
This library is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
Library General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU Library General Public License
|
||||
along with this library; see the file COPYING.LIB. If not, write to
|
||||
the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
|
||||
Boston, MA 02110-1301, USA.
|
||||
*/
|
||||
|
||||
#ifndef KIO_HTTP_SLAVE_DEFAULTS_H
|
||||
#define KIO_HTTP_SLAVE_DEFAULTS_H
|
||||
|
||||
// CONNECTION
|
||||
#define DEFAULT_KEEP_ALIVE_TIMEOUT 60 // 60 seconds
|
||||
|
||||
// CACHE SETTINGS
|
||||
#define DEFAULT_MAX_CACHE_SIZE 50*1024 // 50 MB
|
||||
#define DEFAULT_MAX_CACHE_AGE 60*60*24*14 // 14 DAYS
|
||||
#define DEFAULT_CACHE_EXPIRE 3*60 // 3 MINS
|
||||
#define DEFAULT_CLEAN_CACHE_INTERVAL 30*60 // 30 MINS
|
||||
#define DEFAULT_CACHE_CONTROL KIO::CC_Refresh // Verify with remote
|
||||
#define CACHE_REVISION "9\n" // Cache version
|
||||
|
||||
// DEFAULT USER AGENT KEY - ENABLES OS NAME
|
||||
#define DEFAULT_USER_AGENT_KEYS "om" // Show OS, Machine
|
||||
|
||||
// MAXIMUM AMOUNT OF DATA THAT CAN BE SAFELY SENT OVER IPC
|
||||
#define MAX_IPC_SIZE 1024*8
|
||||
|
||||
// AMOUNT OF DATA TO OBTAIN FROM THE SERVER BY DEFAULT
|
||||
#define DEFAULT_BUF_SIZE 1024*4
|
||||
|
||||
// SOME DEFAULT HEADER VALUES
|
||||
#define DEFAULT_LANGUAGE_HEADER "en"
|
||||
#define DEFAULT_MIME_TYPE "text/html"
|
||||
#define DEFAULT_PARTIAL_CHARSET_HEADER "utf-8, *;q=0.5"
|
||||
#define DEFAULT_ACCEPT_HEADER "text/html, text/*;q=0.9, image/jpeg;q=0.9, image/png;q=0.9, image/*;q=0.9, */*;q=0.8"
|
||||
|
||||
#endif //KIO_HTTP_SLAVE_DEFAULTS_H
|
|
@ -51,4 +51,7 @@
|
|||
#define DEFAULT_PROXY_PORT 8080
|
||||
#define MAX_PORT_VALUE 65535
|
||||
|
||||
// DEFAULT USER AGENT KEY - ENABLES OS NAME
|
||||
#define DEFAULT_USER_AGENT_KEYS "om" // Show OS, Machine
|
||||
|
||||
#endif
|
||||
|
|
|
@ -47,7 +47,6 @@
|
|||
|
||||
#include <kio/slaveconfig.h>
|
||||
#include <kio/ioslave_defaults.h>
|
||||
#include <kio/http_slave_defaults.h>
|
||||
|
||||
#define QL1S(x) QLatin1String(x)
|
||||
#define QL1C(x) QLatin1Char(x)
|
||||
|
|
|
@ -103,12 +103,3 @@ void HttpProtocol::get( const KUrl& url )
|
|||
data(netreply->readAll());
|
||||
finished();
|
||||
}
|
||||
|
||||
void HttpProtocol::put( const KUrl& url, int permissions, KIO::JobFlags flags )
|
||||
{
|
||||
Q_UNUSED(permissions);
|
||||
Q_UNUSED(flags);
|
||||
|
||||
kDebug(7103) << url.prettyUrl();
|
||||
error(KIO::ERR_UNSUPPORTED_ACTION, url.prettyUrl());
|
||||
}
|
||||
|
|
|
@ -36,7 +36,6 @@ class HttpProtocol : public QObject, public KIO::SlaveBase
|
|||
|
||||
virtual void stat( const KUrl &url );
|
||||
virtual void get( const KUrl& url );
|
||||
virtual void put( const KUrl& url, int permissions, KIO::JobFlags flags );
|
||||
};
|
||||
|
||||
#endif // KDELIBS_HTTP_H
|
||||
|
|
|
@ -7,7 +7,7 @@ copyToFile=false
|
|||
copyFromFile=false
|
||||
listing=
|
||||
reading=true
|
||||
writing=true
|
||||
writing=false
|
||||
makedir=false
|
||||
deleting=false
|
||||
moving=false
|
||||
|
|
|
@ -7,7 +7,7 @@ copyToFile=false
|
|||
copyFromFile=false
|
||||
listing=
|
||||
reading=true
|
||||
writing=true
|
||||
writing=false
|
||||
makedir=false
|
||||
deleting=false
|
||||
moving=false
|
||||
|
|
Loading…
Add table
Reference in a new issue