• Skip to content
  • Skip to link menu
  • KDE API Reference
  • kdelibs-4.10.5 API Reference
  • KDE Home
  • Contact Us
 

KIO

Namespaces | Classes | Typedefs | Enumerations | Functions | Variables
KIO Namespace Reference

Namespaces

namespace  HostInfo
namespace  Integration
namespace  SslUi

Classes

class  AbstractConnectionBackend
class  AccessManager
 A KDE implementation of QNetworkAccessManager. More...
class  AnimationState
class  AuthInfo
 This class is intended to make it easier to prompt for, cache and retrieve authorization information. More...
struct  BasicOperation
class  CachedRendering
class  ChmodJob
 This job changes permissions on a list of files or directories, optionally in a recursive manner. More...
class  CommandRecorder
class  ConnectedSlaveQueue
struct  CopyInfo
class  CopyJob
 CopyJob is used to move, copy or symlink files and directories. More...
class  DataProtocol
 This kioslave provides support of data urls as specified by rfc 2397. More...
class  DataSlave
 This class provides a high performance implementation for the data url scheme (rfc2397). More...
class  DavJob
 The transfer job pumps data into and/or out of a Slave. More...
class  DefaultViewAdapter
 Implementation of the view adapter for the default case when an instance of QAbstractItemView is used as view. More...
class  DelegateAnimationHandler
class  DeleteJob
 A more complex Job to delete files and directories. More...
class  DirectCopyJob
class  DirectorySizeJob
 Computes a directory size (similar to "du", but doesn't give the same results since we simply sum up the dir and file sizes, whereas du speaks disk blocks) More...
class  FileCopyJob
 The FileCopyJob copies data from one place to another. More...
class  FileJob
 The file-job is an asynchronious version of normal file handling. More...
class  FileUndoManager
 FileUndoManager: makes it possible to undo kio jobs. More...
class  FileUndoManagerPrivate
class  ForwardingSlaveBase
 This class should be used as a base for ioslaves acting as a forwarder to other ioslaves. More...
class  HostQueue
class  ImageFilter
class  Job
 The base class for all jobs. More...
class  JobPrivate
class  JobUiDelegate
 A UI delegate tuned to be used with KIO Jobs. More...
class  KPasswdServer
 Interface class for kpasswdserver. More...
class  KPasswdServerLoop
class  ListJob
 A ListJob is allows you to get the get the content of a directory. More...
class  MetaData
 MetaData is a simple map of key/value strings. More...
class  MetaInfoJob
 MetaInfoJob is a KIO Job to retrieve meta information from files. More...
class  MimetypeJob
 A MimetypeJob is a TransferJob that allows you to get the mime type of an URL. More...
class  MkdirJob
 A KIO job that creates a directory. More...
class  MultiGetJob
 The MultiGetJob is a TransferJob that allows you to get several files from a single server. More...
class  NetAccess
 Net Transparency. More...
class  NetRC
 A Singleton class that provides access to passwords stored in .netrc files for automatic login purposes. More...
class  PasswordDialog
 dialog for requesting login and password from the end user More...
class  PasteDialog
struct  PerSlaveQueue
class  PreviewJob
 KIO Job to get a thumbnail picture. More...
class  ProtoQueue
class  RenameDialog
 The dialog shown when a CopyJob realizes that a destination file already exists, and wants to offer the user with the choice to either Rename, Overwrite, Skip; this dialog is also used when a .part file exists and the user can choose to Resume a previous download. More...
class  RenameDialogPlugin
 Base class for RenameDialog plugins. More...
class  Scheduler
 The KIO::Scheduler manages io-slaves for the application. More...
class  SerialPicker
class  SessionData
class  SimpleJob
 A simple job (one url and one command). More...
class  SimpleJobPrivate
class  SkipDialog
class  Slave
class  SlaveBase
 There are two classes that specifies the protocol between application (job) and kioslave. More...
class  SlaveConfig
 SlaveConfig. More...
class  SlaveInterface
 There are two classes that specifies the protocol between application ( KIO::Job) and kioslave. More...
class  SlaveInterfacePrivate
class  SlaveKeeper
class  SocketConnectionBackend
class  SpecialJob
 A class that sends a special command to an ioslave. More...
class  StatJob
 A KIO job that retrieves information about a file or directory. More...
class  StoredTransferJob
 StoredTransferJob is a TransferJob (for downloading or uploading data) that also stores a QByteArray with the data, making it simpler to use than the standard TransferJob. More...
struct  Task
class  TCPSlaveBase
 There are two classes that specifies the protocol between application (job) and kioslave. More...
class  TransferJob
 The transfer job pumps data into and/or out of a Slave. More...
class  TransferJobPrivate
class  UDSEntry
 Universal Directory Service. More...
class  UndoCommand

Typedefs

typedef qlonglong fileoffset_t
typedef qulonglong filesize_t
typedef QList< UDSEntry > UDSEntryList

Enumerations

enum  CacheControl {
  CC_CacheOnly, CC_Cache, CC_Verify, CC_Refresh,
  CC_Reload
}
enum  ChmodJobState { CHMODJOB_STATE_LISTING, CHMODJOB_STATE_CHMODING }
enum  Command {
  CMD_HOST = '0', CMD_CONNECT = '1', CMD_DISCONNECT = '2', CMD_SLAVE_STATUS = '3',
  CMD_SLAVE_CONNECT = '4', CMD_SLAVE_HOLD = '5', CMD_NONE = 'A', CMD_TESTDIR = 'B',
  CMD_GET = 'C', CMD_PUT = 'D', CMD_STAT = 'E', CMD_MIMETYPE = 'F',
  CMD_LISTDIR = 'G', CMD_MKDIR = 'H', CMD_RENAME = 'I', CMD_COPY = 'J',
  CMD_DEL = 'K', CMD_CHMOD = 'L', CMD_SPECIAL = 'M', CMD_SETMODIFICATIONTIME = 'N',
  CMD_REPARSECONFIGURATION = 'O', CMD_META_DATA = 'P', CMD_SYMLINK = 'Q', CMD_SUBURL = 'R',
  CMD_MESSAGEBOXANSWER = 'S', CMD_RESUMEANSWER = 'T', CMD_CONFIG = 'U', CMD_MULTI_GET = 'V',
  CMD_SETLINKDEST = 'W', CMD_OPEN = 'X', CMD_CHOWN = 'Y', CMD_READ = 'Z',
  CMD_WRITE = 91, CMD_SEEK = 92, CMD_CLOSE = 93, CMD_HOST_INFO = 94
}
enum  DeleteJobState { DELETEJOB_STATE_STATING, DELETEJOB_STATE_DELETING_FILES, DELETEJOB_STATE_DELETING_DIRS }
enum  Error {
  ERR_CANNOT_OPEN_FOR_READING = KJob::UserDefinedError + 1, ERR_CANNOT_OPEN_FOR_WRITING = KJob::UserDefinedError + 2, ERR_CANNOT_LAUNCH_PROCESS = KJob::UserDefinedError + 3, ERR_INTERNAL = KJob::UserDefinedError + 4,
  ERR_MALFORMED_URL = KJob::UserDefinedError + 5, ERR_UNSUPPORTED_PROTOCOL = KJob::UserDefinedError + 6, ERR_NO_SOURCE_PROTOCOL = KJob::UserDefinedError + 7, ERR_UNSUPPORTED_ACTION = KJob::UserDefinedError + 8,
  ERR_IS_DIRECTORY = KJob::UserDefinedError + 9, ERR_IS_FILE = KJob::UserDefinedError + 10, ERR_DOES_NOT_EXIST = KJob::UserDefinedError + 11, ERR_FILE_ALREADY_EXIST = KJob::UserDefinedError + 12,
  ERR_DIR_ALREADY_EXIST = KJob::UserDefinedError + 13, ERR_UNKNOWN_HOST = KJob::UserDefinedError + 14, ERR_ACCESS_DENIED = KJob::UserDefinedError + 15, ERR_WRITE_ACCESS_DENIED = KJob::UserDefinedError + 16,
  ERR_CANNOT_ENTER_DIRECTORY = KJob::UserDefinedError + 17, ERR_PROTOCOL_IS_NOT_A_FILESYSTEM = KJob::UserDefinedError + 18, ERR_CYCLIC_LINK = KJob::UserDefinedError + 19, ERR_USER_CANCELED = KJob::KilledJobError,
  ERR_CYCLIC_COPY = KJob::UserDefinedError + 21, ERR_COULD_NOT_CREATE_SOCKET = KJob::UserDefinedError + 22, ERR_COULD_NOT_CONNECT = KJob::UserDefinedError + 23, ERR_CONNECTION_BROKEN = KJob::UserDefinedError + 24,
  ERR_NOT_FILTER_PROTOCOL = KJob::UserDefinedError + 25, ERR_COULD_NOT_MOUNT = KJob::UserDefinedError + 26, ERR_COULD_NOT_UNMOUNT = KJob::UserDefinedError + 27, ERR_COULD_NOT_READ = KJob::UserDefinedError + 28,
  ERR_COULD_NOT_WRITE = KJob::UserDefinedError + 29, ERR_COULD_NOT_BIND = KJob::UserDefinedError + 30, ERR_COULD_NOT_LISTEN = KJob::UserDefinedError + 31, ERR_COULD_NOT_ACCEPT = KJob::UserDefinedError + 32,
  ERR_COULD_NOT_LOGIN = KJob::UserDefinedError + 33, ERR_COULD_NOT_STAT = KJob::UserDefinedError + 34, ERR_COULD_NOT_CLOSEDIR = KJob::UserDefinedError + 35, ERR_COULD_NOT_MKDIR = KJob::UserDefinedError + 37,
  ERR_COULD_NOT_RMDIR = 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_SLAVE_DIED = KJob::UserDefinedError + 43, ERR_OUT_OF_MEMORY = KJob::UserDefinedError + 44, ERR_UNKNOWN_PROXY_HOST = KJob::UserDefinedError + 45,
  ERR_COULD_NOT_AUTHENTICATE = KJob::UserDefinedError + 46, ERR_ABORTED = KJob::UserDefinedError + 47, ERR_INTERNAL_SERVER = KJob::UserDefinedError + 48, ERR_SERVER_TIMEOUT = KJob::UserDefinedError + 49,
  ERR_SERVICE_NOT_AVAILABLE = KJob::UserDefinedError + 50, ERR_UNKNOWN = KJob::UserDefinedError + 51, 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, ERR_NO_CONTENT = KJob::UserDefinedError + 60, ERR_DISK_FULL = KJob::UserDefinedError + 61, ERR_IDENTICAL_FILES = KJob::UserDefinedError + 62,
  ERR_SLAVE_DEFINED = KJob::UserDefinedError + 63, ERR_UPGRADE_REQUIRED = KJob::UserDefinedError + 64, ERR_POST_DENIED = KJob::UserDefinedError + 65, ERR_COULD_NOT_SEEK = KJob::UserDefinedError + 66,
  ERR_CANNOT_SETTIME = KJob::UserDefinedError + 67, ERR_CANNOT_CHOWN = KJob::UserDefinedError + 68, ERR_POST_NO_SIZE = KJob::UserDefinedError + 69
}
enum  Info {
  INF_TOTAL_SIZE = 10, INF_PROCESSED_SIZE = 11, INF_SPEED, INF_REDIRECTION = 20,
  INF_MIME_TYPE = 21, INF_ERROR_PAGE = 22, INF_WARNING = 23, INF_GETTING_FILE,
  INF_UNUSED = 25, INF_INFOMESSAGE, INF_META_DATA, INF_NETWORK_STATUS,
  INF_MESSAGEBOX, INF_POSITION
}
enum  JobFlag { DefaultFlags = 0, HideProgressInfo = 1, Resume = 2, Overwrite = 4 }
enum  LoadType { Reload, NoReload }
enum  Message {
  MSG_DATA = 100, MSG_DATA_REQ, MSG_ERROR, MSG_CONNECTED,
  MSG_FINISHED, MSG_STAT_ENTRY, MSG_LIST_ENTRIES, MSG_RENAMED,
  MSG_RESUME, MSG_SLAVE_STATUS, MSG_SLAVE_ACK, MSG_NET_REQUEST,
  MSG_NET_DROP, MSG_NEED_SUBURL_DATA, MSG_CANRESUME, MSG_AUTH_KEY,
  MSG_DEL_AUTH_KEY, MSG_OPENED, MSG_WRITTEN, MSG_HOST_INFO_REQ
}
enum  RenameDialog_Mode {
  M_OVERWRITE = 1, M_OVERWRITE_ITSELF = 2, M_SKIP = 4, M_SINGLE = 8,
  M_MULTI = 16, M_RESUME = 32, M_NORENAME = 64, M_ISDIR = 128
}
enum  RenameDialog_Result {
  R_RESUME = 6, R_RESUME_ALL = 7, R_OVERWRITE = 4, R_OVERWRITE_ALL = 5,
  R_SKIP = 2, R_AUTO_SKIP = 3, R_RENAME = 1, R_AUTO_RENAME = 8,
  R_CANCEL = 0
}
enum  SkipDialog_Result { S_SKIP = 1, S_AUTO_SKIP = 2, S_CANCEL = 0 }
enum  UndoState {
  MAKINGDIRS = 0, MOVINGFILES, STATINGFILE, REMOVINGDIRS,
  REMOVINGLINKS
}

Functions

static int animationDebugArea ()
QString buildErrorString (int errorCode, const QString &errorText)
QString buildHTMLErrorString (int errorCode, const QString &errorText, const KUrl *reqUrl=0L, int method=-1)
QTime calculateRemaining (KIO::filesize_t totalSize, KIO::filesize_t processedSize, KIO::filesize_t speed)
unsigned int calculateRemainingSeconds (KIO::filesize_t totalSize, KIO::filesize_t processedSize, KIO::filesize_t speed)
bool canPasteMimeSource (const QMimeData *data)
SimpleJob * chmod (const KUrl &url, int permissions)
ChmodJob * chmod (const KFileItemList &lstItems, int permissions, int mask, const QString &newOwner, const QString &newGroup, bool recursive, JobFlags flags=DefaultFlags)
SimpleJob * chown (const KUrl &url, const QString &owner, const QString &group)
QString convertSeconds (unsigned int seconds)
QString convertSize (KIO::filesize_t size)
QString convertSizeFromKiB (KIO::filesize_t kibSize)
CopyJob * copy (const KUrl &src, const KUrl &dest, JobFlags flags=DefaultFlags)
CopyJob * copy (const KUrl::List &src, const KUrl &dest, JobFlags flags=DefaultFlags)
CopyJob * copyAs (const KUrl &src, const KUrl &dest, JobFlags flags=DefaultFlags)
DavJob * davPropFind (const KUrl &url, const QDomDocument &properties, const QString &depth, JobFlags flags=DefaultFlags)
DavJob * davPropPatch (const KUrl &url, const QDomDocument &properties, JobFlags flags=DefaultFlags)
DavJob * davReport (const KUrl &url, const QString &report, const QString &depth, JobFlags flags=DefaultFlags)
DavJob * davSearch (const KUrl &url, const QString &nsURI, const QString &qName, const QString &query, JobFlags flags=DefaultFlags)
QString decodeFileName (const QString &str)
DeleteJob * del (const KUrl &src, JobFlags flags=DefaultFlags)
DeleteJob * del (const KUrl::List &src, JobFlags flags=DefaultFlags)
DirectorySizeJob * directorySize (const KUrl &directory)
DirectorySizeJob * directorySize (const KFileItemList &lstItems)
QString encodeFileName (const QString &str)
FileCopyJob * file_copy (const KUrl &src, const KUrl &dest, int permissions=-1, JobFlags flags=DefaultFlags)
FileCopyJob * file_copy (const KUrl &src, const KUrl &dest, JobFlags flags)
SimpleJob * file_delete (const KUrl &src, JobFlags flags=DefaultFlags)
FileCopyJob * file_move (const KUrl &src, const KUrl &dest, int permissions=-1, JobFlags flags=DefaultFlags)
FileCopyJob * file_move (const KUrl &src, const KUrl &dest, JobFlags flags)
MetaInfoJob * fileMetaInfo (const KFileItemList &items)
MetaInfoJob * fileMetaInfo (const KUrl::List &items)
PreviewJob * filePreview (const KFileItemList &items, int width, int height=0, int iconSize=0, int iconAlpha=70, bool scale=true, bool save=true, const QStringList *enabledPlugins=0)
PreviewJob * filePreview (const KUrl::List &items, int width, int height=0, int iconSize=0, int iconAlpha=70, bool scale=true, bool save=true, const QStringList *enabledPlugins=0)
PreviewJob * filePreview (const KFileItemList &items, const QSize &size, const QStringList *enabledPlugins=0)
TransferJob * get (const KUrl &url, LoadType reload=NoReload, JobFlags flags=DefaultFlags)
QString getCacheControlString (KIO::CacheControl cacheControl)
KJobTrackerInterface * getJobTracker ()
TransferJob * http_delete (const KUrl &url, JobFlags flags=DefaultFlags)
TransferJob * http_post (const KUrl &url, const QByteArray &postData, JobFlags flags=DefaultFlags)
TransferJob * http_post (const KUrl &url, QIODevice *device, qint64 size=-1, JobFlags flags=DefaultFlags)
SimpleJob * http_update_cache (const KUrl &url, bool no_cache, time_t expireDate)
QString itemsSummaryString (uint items, uint files, uint dirs, KIO::filesize_t size, bool showSize)
CopyJob * link (const KUrl &src, const KUrl &destDir, JobFlags flags=DefaultFlags)
CopyJob * link (const KUrl::List &src, const KUrl &destDir, JobFlags flags=DefaultFlags)
CopyJob * linkAs (const KUrl &src, const KUrl &dest, JobFlags flags=DefaultFlags)
ListJob * listDir (const KUrl &url, JobFlags flags=DefaultFlags, bool includeHidden=true)
ListJob * listRecursive (const KUrl &url, JobFlags flags=DefaultFlags, bool includeHidden=true)
MimetypeJob * mimetype (const KUrl &url, JobFlags flags=DefaultFlags)
SimpleJob * mkdir (const KUrl &url, int permissions=-1)
StatJob * mostLocalUrl (const KUrl &url, JobFlags flags=DefaultFlags)
SimpleJob * mount (bool ro, const QByteArray &fstype, const QString &dev, const QString &point, JobFlags flags=DefaultFlags)
CopyJob * move (const KUrl &src, const KUrl &dest, JobFlags flags=DefaultFlags)
CopyJob * move (const KUrl::List &src, const KUrl &dest, JobFlags flags=DefaultFlags)
CopyJob * moveAs (const KUrl &src, const KUrl &dest, JobFlags flags=DefaultFlags)
MultiGetJob * multi_get (long id, const KUrl &url, const MetaData &metaData)
QString number (KIO::filesize_t size)
FileJob * open (const KUrl &url, QIODevice::OpenMode mode)
QDataStream & operator<< (QDataStream &s, const AuthInfo &a)
QDBusArgument & operator<< (QDBusArgument &argument, const AuthInfo &a)
QDataStream & operator>> (QDataStream &s, AuthInfo &a)
const QDBusArgument & operator>> (const QDBusArgument &argument, AuthInfo &a)
KIO::CacheControl parseCacheControl (const QString &cacheControl)
QString pasteActionText ()
Job * pasteClipboard (const KUrl &destURL, QWidget *widget, bool move=false)
void pasteData (const KUrl &destURL, const QByteArray &data, QWidget *widget)
CopyJob * pasteDataAsync (const KUrl &destURL, const QByteArray &data, QWidget *widget, const QString &dialogText=QString())
Job * pasteMimeData (const QMimeData *data, const KUrl &destUrl, const QString &dialogText, QWidget *widget)
CopyJob * pasteMimeSource (const QMimeData *data, const KUrl &destURL, const QString &dialogText, QWidget *widget, bool clipboard=false)
QPixmap pixmapForUrl (const KUrl &_url, mode_t _mode=0, KIconLoader::Group _group=KIconLoader::Desktop, int _force_size=0, int _state=0, QString *_path=0)
TransferJob * put (const KUrl &url, int permissions, JobFlags flags=DefaultFlags)
QByteArray rawErrorDetail (int errorCode, const QString &errorText, const KUrl *reqUrl=0L, int method=-1)
static void readConfig (KConfig *config, const QString &group, MetaData *metaData)
SimpleJob * rename (const KUrl &src, const KUrl &dest, JobFlags flags=DefaultFlags)
SimpleJob * rmdir (const KUrl &url)
SimpleJob * setModificationTime (const KUrl &url, const QDateTime &mtime)
SimpleJob * special (const KUrl &url, const QByteArray &data, JobFlags flags=DefaultFlags)
StatJob * stat (const KUrl &url, JobFlags flags=DefaultFlags)
StatJob * stat (const KUrl &url, KIO::StatJob::StatSide side, short int details, JobFlags flags=DefaultFlags)
StatJob * stat (const KUrl &url, bool sideIsSource, short int details, JobFlags flags=DefaultFlags)
StoredTransferJob * storedGet (const KUrl &url, LoadType reload=NoReload, JobFlags flags=DefaultFlags)
StoredTransferJob * storedHttpPost (const QByteArray &arr, const KUrl &url, JobFlags flags=DefaultFlags)
StoredTransferJob * storedHttpPost (QIODevice *device, const KUrl &url, qint64 size=-1, JobFlags flags=DefaultFlags)
StoredTransferJob * storedPut (const QByteArray &arr, const KUrl &url, int permissions, JobFlags flags=DefaultFlags)
SimpleJob * symlink (const QString &target, const KUrl &dest, JobFlags flags=DefaultFlags)
CopyJob * trash (const KUrl &src, JobFlags flags=DefaultFlags)
CopyJob * trash (const KUrl::List &src, JobFlags flags=DefaultFlags)
SimpleJob * unmount (const QString &point, JobFlags flags=DefaultFlags)
QString unsupportedActionErrorString (const QString &protocol, int cmd)

Variables

static const int switchIconInterval = 1000

Detailed Description

A namespace for KIO globals.


Typedef Documentation

typedef qlonglong KIO::fileoffset_t

64-bit file offset

Definition at line 54 of file global.h.

typedef qulonglong KIO::filesize_t

64-bit file size

Definition at line 56 of file global.h.

typedef QList<UDSEntry> KIO::UDSEntryList

A directory listing is a list of UDSEntry instances.

To list the name and size of all the files in a directory listing you would do:

KIO::UDSEntryList::ConstIterator it = entries.begin();
const KIO::UDSEntryList::ConstIterator end = entries.end();
for (; it != end; ++it) {
const KIO::UDSEntry& entry = *it;
QString name = entry.stringValue( KIO::UDSEntry::UDS_NAME );
bool isDir = entry.isDir();
KIO::filesize_t size = entry.numberValue( KIO::UDSEntry::UDS_SIZE, -1 );
...
}

Definition at line 294 of file udsentry.h.


Enumeration Type Documentation

enum KIO::CacheControl

Specifies how to use the cache.

See also:
parseCacheControl()
getCacheControlString()
Enumerator:
CC_CacheOnly 

Fail request if not in cache.

CC_Cache 

Use cached entry if available.

CC_Verify 

Validate cached entry with remote site if expired.

CC_Refresh 

Always validate cached entry with remote site.

CC_Reload 

Always fetch from remote site.

Definition at line 329 of file global.h.

enum KIO::ChmodJobState
Enumerator:
CHMODJOB_STATE_LISTING 
CHMODJOB_STATE_CHMODING 

Definition at line 50 of file chmodjob.cpp.

enum KIO::Command

Commands that can be invoked by a job.

(Move this to a non-public header)

Enumerator:
CMD_HOST 
CMD_CONNECT 
CMD_DISCONNECT 
CMD_SLAVE_STATUS 
CMD_SLAVE_CONNECT 
CMD_SLAVE_HOLD 
CMD_NONE 
CMD_TESTDIR 
CMD_GET 
CMD_PUT 
CMD_STAT 
CMD_MIMETYPE 
CMD_LISTDIR 
CMD_MKDIR 
CMD_RENAME 
CMD_COPY 
CMD_DEL 
CMD_CHMOD 
CMD_SPECIAL 
CMD_SETMODIFICATIONTIME 
CMD_REPARSECONFIGURATION 
CMD_META_DATA 
CMD_SYMLINK 
CMD_SUBURL 
CMD_MESSAGEBOXANSWER 
CMD_RESUMEANSWER 
CMD_CONFIG 
CMD_MULTI_GET 
CMD_SETLINKDEST 
CMD_OPEN 
CMD_CHOWN 
CMD_READ 
CMD_WRITE 
CMD_SEEK 
CMD_CLOSE 
CMD_HOST_INFO 

Definition at line 149 of file global.h.

enum KIO::DeleteJobState
Enumerator:
DELETEJOB_STATE_STATING 
DELETEJOB_STATE_DELETING_FILES 
DELETEJOB_STATE_DELETING_DIRS 

Definition at line 51 of file deletejob.cpp.

enum KIO::Error

Error codes that can be emitted by KIO.

Enumerator:
ERR_CANNOT_OPEN_FOR_READING 
ERR_CANNOT_OPEN_FOR_WRITING 
ERR_CANNOT_LAUNCH_PROCESS 
ERR_INTERNAL 
ERR_MALFORMED_URL 
ERR_UNSUPPORTED_PROTOCOL 
ERR_NO_SOURCE_PROTOCOL 
ERR_UNSUPPORTED_ACTION 
ERR_IS_DIRECTORY 
ERR_IS_FILE 
ERR_DOES_NOT_EXIST 
ERR_FILE_ALREADY_EXIST 
ERR_DIR_ALREADY_EXIST 
ERR_UNKNOWN_HOST 
ERR_ACCESS_DENIED 
ERR_WRITE_ACCESS_DENIED 
ERR_CANNOT_ENTER_DIRECTORY 
ERR_PROTOCOL_IS_NOT_A_FILESYSTEM 
ERR_CYCLIC_LINK 
ERR_USER_CANCELED 
ERR_CYCLIC_COPY 
ERR_COULD_NOT_CREATE_SOCKET 
ERR_COULD_NOT_CONNECT 
ERR_CONNECTION_BROKEN 
ERR_NOT_FILTER_PROTOCOL 
ERR_COULD_NOT_MOUNT 
ERR_COULD_NOT_UNMOUNT 
ERR_COULD_NOT_READ 
ERR_COULD_NOT_WRITE 
ERR_COULD_NOT_BIND 
ERR_COULD_NOT_LISTEN 
ERR_COULD_NOT_ACCEPT 
ERR_COULD_NOT_LOGIN 
ERR_COULD_NOT_STAT 
ERR_COULD_NOT_CLOSEDIR 
ERR_COULD_NOT_MKDIR 
ERR_COULD_NOT_RMDIR 
ERR_CANNOT_RESUME 
ERR_CANNOT_RENAME 
ERR_CANNOT_CHMOD 
ERR_CANNOT_DELETE 
ERR_SLAVE_DIED 
ERR_OUT_OF_MEMORY 
ERR_UNKNOWN_PROXY_HOST 
ERR_COULD_NOT_AUTHENTICATE 
ERR_ABORTED 
ERR_INTERNAL_SERVER 
ERR_SERVER_TIMEOUT 
ERR_SERVICE_NOT_AVAILABLE 
ERR_UNKNOWN 
ERR_UNKNOWN_INTERRUPT 
ERR_CANNOT_DELETE_ORIGINAL 
ERR_CANNOT_DELETE_PARTIAL 
ERR_CANNOT_RENAME_ORIGINAL 
ERR_CANNOT_RENAME_PARTIAL 
ERR_NEED_PASSWD 
ERR_CANNOT_SYMLINK 
ERR_NO_CONTENT 
ERR_DISK_FULL 
ERR_IDENTICAL_FILES 
ERR_SLAVE_DEFINED 
ERR_UPGRADE_REQUIRED 
ERR_POST_DENIED 
ERR_COULD_NOT_SEEK 
ERR_CANNOT_SETTIME 
ERR_CANNOT_CHOWN 
ERR_POST_NO_SIZE 

Definition at line 193 of file global.h.

enum KIO::Info

Identifiers for KIO informational messages.

Enumerator:
INF_TOTAL_SIZE 
INF_PROCESSED_SIZE 
INF_SPEED 
INF_REDIRECTION 
INF_MIME_TYPE 
INF_ERROR_PAGE 
INF_WARNING 
INF_GETTING_FILE 
INF_UNUSED 
INF_INFOMESSAGE 
INF_META_DATA 
INF_NETWORK_STATUS 
INF_MESSAGEBOX 
INF_POSITION 

Definition at line 46 of file slaveinterface.h.

enum KIO::JobFlag

Flags for the job properties.

Not all flags are supported in all cases. Please see documentation of the calling function!

Enumerator:
DefaultFlags 

Show the progress info GUI, no Resume and no Overwrite.

HideProgressInfo 

Hide progress information dialog, i.e.

don't show a GUI.

Resume 

When set, automatically append to the destination file if it exists already.

WARNING: this is NOT the builtin support for offering the user to resume a previous partial download. The Resume option is much less used, it allows to append to an existing file. This is used by KIO::put(), KIO::file_copy(), KIO::file_move().

Overwrite 

When set, automatically overwrite the destination if it exists already.

This is used by KIO::rename(), KIO::put(), KIO::file_copy(), KIO::file_move(), KIO::symlink(). Otherwise the operation will fail with ERR_FILE_ALREADY_EXIST or ERR_DIR_ALREADY_EXIST.

Definition at line 42 of file jobclasses.h.

enum KIO::LoadType
Enumerator:
Reload 
NoReload 

Definition at line 29 of file job.h.

enum KIO::Message

Identifiers for KIO data messages.

Enumerator:
MSG_DATA 
MSG_DATA_REQ 
MSG_ERROR 
MSG_CONNECTED 
MSG_FINISHED 
MSG_STAT_ENTRY 
MSG_LIST_ENTRIES 
MSG_RENAMED 
MSG_RESUME 
MSG_SLAVE_STATUS 
MSG_SLAVE_ACK 
MSG_NET_REQUEST 
MSG_NET_DROP 
MSG_NEED_SUBURL_DATA 
MSG_CANRESUME 
MSG_AUTH_KEY 
MSG_DEL_AUTH_KEY 
MSG_OPENED 
MSG_WRITTEN 
MSG_HOST_INFO_REQ 

Definition at line 67 of file slaveinterface.h.

enum KIO::RenameDialog_Mode

M_OVERWRITE: We have an existing dest, show details about it and offer to overwrite it.

M_OVERWRITE_ITSELF: Warn that the current operation would overwrite a file with itself, which is not allowed. M_SKIP: Offer a "Skip" button, to skip other files too. Requires M_MULTI. M_SINGLE: Deprecated and unused, please ignore. M_MULTI: Set if the current operation concerns multiple files, so it makes sense to offer buttons that apply the user's choice to all files/folders. M_RESUME: Offer a "Resume" button (plus "Resume All" if M_MULTI) M_NORENAME: Don't offer a "Rename" button M_ISDIR: The dest is a directory, so label the "overwrite" button something like "merge" instead.

Enumerator:
M_OVERWRITE 
M_OVERWRITE_ITSELF 
M_SKIP 
M_SINGLE 
M_MULTI 
M_RESUME 
M_NORENAME 
M_ISDIR 

Definition at line 56 of file renamedialog.h.

enum KIO::RenameDialog_Result

The result of open_RenameDialog().

Enumerator:
R_RESUME 
R_RESUME_ALL 
R_OVERWRITE 
R_OVERWRITE_ALL 
R_SKIP 
R_AUTO_SKIP 
R_RENAME 
R_AUTO_RENAME 
R_CANCEL 

Definition at line 61 of file renamedialog.h.

enum KIO::SkipDialog_Result
Enumerator:
S_SKIP 
S_AUTO_SKIP 
S_CANCEL 

Definition at line 29 of file skipdialog.h.

enum KIO::UndoState
Enumerator:
MAKINGDIRS 
MOVINGFILES 
STATINGFILE 
REMOVINGDIRS 
REMOVINGLINKS 

Definition at line 97 of file fileundomanager_p.h.


Function Documentation

static int KIO::animationDebugArea ( )
static

Definition at line 48 of file delegateanimationhandler.cpp.

QString KIO::buildErrorString ( int  errorCode,
const QString &  errorText 
)

Returns a translated error message for errorCode using the additional error information provided by errorText.

Parameters:
errorCodethe error code
errorTextthe additional error text
Returns:
the created error string

Definition at line 164 of file global.cpp.

QString KIO::buildHTMLErrorString ( int  errorCode,
const QString &  errorText,
const KUrl *  reqUrl = 0L,
int  method = -1 
)

Returns a translated html error message for errorCode using the additional error information provided by errorText , reqUrl (the request URL), and the ioslave method .

Parameters:
errorCodethe error code
errorTextthe additional error text
reqUrlthe request URL
methodthe ioslave method
Returns:
the created error string
QTime KIO::calculateRemaining ( KIO::filesize_t  totalSize,
KIO::filesize_t  processedSize,
KIO::filesize_t  speed 
)

Calculates remaining time from total size, processed size and speed.

Warning: As QTime is limited to 23:59:59, use calculateRemainingSeconds() instead

Parameters:
totalSizetotal size in bytes
processedSizeprocessed size in bytes
speedspeed in bytes per second
Returns:
calculated remaining time

Definition at line 95 of file global.cpp.

unsigned int KIO::calculateRemainingSeconds ( KIO::filesize_t  totalSize,
KIO::filesize_t  processedSize,
KIO::filesize_t  speed 
)

Calculates remaining time in seconds from total size, processed size and speed.

Parameters:
totalSizetotal size in bytes
processedSizeprocessed size in bytes
speedspeed in bytes per second
Returns:
calculated remaining time in seconds

Definition at line 70 of file global.cpp.

bool KIO::canPasteMimeSource ( const QMimeData *  data)

Returns true if pasteMimeSource finds any interesting format in data.

You can use this method to enable/disable the paste action appropriately.

Since:
4.3

Definition at line 288 of file paste.cpp.

SimpleJob * KIO::chmod ( const KUrl &  url,
int  permissions 
)

Changes permissions on a file or directory.

See the other chmod in chmodjob.h for changing many files or directories.

Parameters:
urlThe URL of file or directory.
permissionsThe permissions to set.
Returns:
the job handling the operation.

Definition at line 693 of file job.cpp.

ChmodJob * KIO::chmod ( const KFileItemList &  lstItems,
int  permissions,
int  mask,
const QString &  newOwner,
const QString &  newGroup,
bool  recursive,
JobFlags  flags = DefaultFlags 
)

Creates a job that changes permissions/ownership on several files or directories, optionally recursively.

This version of chmod uses a KFileItemList so that it directly knows what to do with the items. TODO: a version that takes a KUrl::List, and a general job that stats each url and returns a KFileItemList.

Note that change of ownership is only supported for local files.

Inside directories, the "x" bits will only be changed for files that had at least one "x" bit before, and for directories. This emulates the behavior of chmod +X.

Parameters:
lstItemsThe file items representing several files or directories.
permissionsthe permissions we want to set
maskthe bits we are allowed to change. For instance, if mask is 0077, we don't change the "user" bits, only "group" and "others".
newOwnerIf non-empty, the new owner for the files
newGroupIf non-empty, the new group for the files
recursivewhether to open directories recursively
flags,:We support HideProgressInfo here
Returns:
The job handling the operation.

Definition at line 268 of file chmodjob.cpp.

SimpleJob * KIO::chown ( const KUrl &  url,
const QString &  owner,
const QString &  group 
)

Changes ownership and group of a file or directory.

Parameters:
urlThe URL of file or directory.
ownerthe new owner
groupthe new group
Returns:
the job handling the operation.

Definition at line 700 of file job.cpp.

QString KIO::convertSeconds ( unsigned int  seconds)

Convert seconds to a string representing number of days, hours, minutes and seconds.

Parameters:
secondsnumber of seconds to convert
Returns:
string representation in a locale depending format

Definition at line 79 of file global.cpp.

QString KIO::convertSize ( KIO::filesize_t  size)

Converts size from bytes to the string representation.

Parameters:
sizesize in bytes
Returns:
converted size as a string - e.g. 123.4 KiB , 12.0 MiB

Definition at line 53 of file global.cpp.

QString KIO::convertSizeFromKiB ( KIO::filesize_t  kibSize)

Converts size from kibi-bytes (2^10) to the string representation.

Parameters:
kibSizesize in kibi-bytes (2^10)
Returns:
converted size as a string - e.g. 123.4 KiB , 12.0 MiB

Definition at line 58 of file global.cpp.

CopyJob * KIO::copy ( const KUrl &  src,
const KUrl &  dest,
JobFlags  flags = DefaultFlags 
)

Copy a file or directory src into the destination dest, which can be a file (including the final filename) or a directory (into which src will be copied).

This emulates the cp command completely.

Parameters:
srcthe file or directory to copy
destthe destination
flags,:copy() supports HideProgressInfo and Overwrite. Note: Overwrite has the meaning of both "write into existing directories" and "overwrite existing files". However if "dest" exists, then src is copied into a subdir of dest, just like "cp" does. Use copyAs if you don't want that.
Returns:
the job handling the operation
See also:
copyAs()

Definition at line 2161 of file copyjob.cpp.

CopyJob * KIO::copy ( const KUrl::List &  src,
const KUrl &  dest,
JobFlags  flags = DefaultFlags 
)

Copy a list of file/dirs src into a destination directory dest.

Parameters:
srcthe list of files and/or directories
destthe destination
flags,:copy() supports HideProgressInfo and Overwrite. Note: Overwrite has the meaning of both "write into existing directories" and "overwrite existing files". However if "dest" exists, then src is copied into a subdir of dest, just like "cp" does.
Returns:
the job handling the operation

Definition at line 2177 of file copyjob.cpp.

CopyJob * KIO::copyAs ( const KUrl &  src,
const KUrl &  dest,
JobFlags  flags = DefaultFlags 
)

Copy a file or directory src into the destination dest, which is the destination name in any case, even for a directory.

As opposed to copy(), this doesn't emulate cp, but is the only way to copy a directory, giving it a new name and getting an error box if a directory already exists with the same name (or writing the contents of src into dest, when using Overwrite).

Parameters:
srcthe file or directory to copy
destthe destination
flags,:copyAs() supports HideProgressInfo and Overwrite. Note: Overwrite has the meaning of both "write into existing directories" and "overwrite existing files".
  • Returns:
    the job handling the operation

Definition at line 2169 of file copyjob.cpp.

DavJob * KIO::davPropFind ( const KUrl &  url,
const QDomDocument &  properties,
const QString &  depth,
JobFlags  flags = DefaultFlags 
)

Creates a new DavJob that issues a PROPFIND command.

PROPFIND retrieves the properties of the resource identified by the given url.

Parameters:
urlthe URL of the resource
propertiesa propfind document that describes the properties that should be retrieved
depththe depth of the request. Can be "0", "1" or "infinity"
flags,:We support HideProgressInfo here
Returns:
the new DavJob

Definition at line 144 of file davjob.cpp.

DavJob * KIO::davPropPatch ( const KUrl &  url,
const QDomDocument &  properties,
JobFlags  flags = DefaultFlags 
)

Creates a new DavJob that issues a PROPPATCH command.

PROPPATCH sets the properties of the resource identified by the given url.

Parameters:
urlthe URL of the resource
propertiesa PROPPACTCH document that describes the properties that should be modified and its new values
flags,:We support HideProgressInfo here
Returns:
the new DavJob

Definition at line 152 of file davjob.cpp.

DavJob * KIO::davReport ( const KUrl &  url,
const QString &  report,
const QString &  depth,
JobFlags  flags = DefaultFlags 
)

Creates a new DavJob that issues a REPORT command.

Parameters:
urlthe URL of the resource
reporta REPORT document that describes the request to make
depththe depth of the request. Can be "0", "1" or "infinity"
flags,:We support HideProgressInfo here
Returns:
the new DavJob
Since:
4.4

Definition at line 170 of file davjob.cpp.

DavJob * KIO::davSearch ( const KUrl &  url,
const QString &  nsURI,
const QString &  qName,
const QString &  query,
JobFlags  flags = DefaultFlags 
)

Creates a new DavJob that issues a SEARCH command.

Parameters:
urlthe URL of the resource
nsURIthe URI of the search method's qualified name
qNamethe local part of the search method's qualified name
querythe search string
flags,:We support HideProgressInfo here
Returns:
the new DavJob

Definition at line 158 of file davjob.cpp.

QString KIO::decodeFileName ( const QString &  str)

Decodes (from the filename to the text displayed) This doesn't do anything anymore, it used to do the opposite of encodeFileName when encodeFileName was using %2F for '/'.

Parameters:
strthe file name to decode
Returns:
the decoded file name

Definition at line 153 of file global.cpp.

DeleteJob * KIO::del ( const KUrl &  src,
JobFlags  flags = DefaultFlags 
)

Delete a file or directory.

Parameters:
srcfile to delete
flags,:We support HideProgressInfo here
Returns:
the job handling the operation

Definition at line 484 of file deletejob.cpp.

DeleteJob * KIO::del ( const KUrl::List &  src,
JobFlags  flags = DefaultFlags 
)

Deletes a list of files or directories.

Parameters:
srcthe files to delete
flags,:We support HideProgressInfo here
Returns:
the job handling the operation

Definition at line 491 of file deletejob.cpp.

DirectorySizeJob * KIO::directorySize ( const KUrl &  directory)

Computes a directory size (by doing a recursive listing).

Connect to the result signal (this is the preferred solution to avoid blocking the GUI), or use exec() for a synchronous (blocking) calculation.

This one lists a single directory.

Definition at line 202 of file directorysizejob.cpp.

DirectorySizeJob * KIO::directorySize ( const KFileItemList &  lstItems)

Computes a directory size (by doing a recursive listing).

Connect to the result signal (this is the preferred solution to avoid blocking the GUI), or use exec() for a synchronous (blocking) calculation.

This one lists the items from lstItems. The reason we asks for items instead of just urls, is so that we directly know if the item is a file or a directory, and in case of a file, we already have its size.

Definition at line 208 of file directorysizejob.cpp.

QString KIO::encodeFileName ( const QString &  str)

Encodes (from the text displayed to the real filename) This translates '/' into a "unicode fraction slash", QChar(0x2044).

Used by KIO::link, for instance.

Parameters:
strthe file name to encode
Returns:
the encoded file name

Definition at line 146 of file global.cpp.

FileCopyJob * KIO::file_copy ( const KUrl &  src,
const KUrl &  dest,
int  permissions = -1,
JobFlags  flags = DefaultFlags 
)

Copy a single file.

Uses either SlaveBase::copy() if the slave supports that or get() and put() otherwise.

Parameters:
srcWhere to get the file.
destWhere to put the file.
permissionsMay be -1. In this case no special permission mode is set.
flagsCan be HideProgressInfo, Overwrite and Resume here. WARNING: Setting Resume means that the data will be appended to dest if dest exists.
Returns:
the job handling the operation.

Definition at line 2458 of file job.cpp.

FileCopyJob* KIO::file_copy ( const KUrl &  src,
const KUrl &  dest,
JobFlags  flags 
)

Overload for catching code mistakes.

Do NOT call this method (it is not implemented), insert a value for permissions (-1 by default) before the JobFlags.

Since:
4.5
SimpleJob * KIO::file_delete ( const KUrl &  src,
JobFlags  flags = DefaultFlags 
)

Delete a single file.

Parameters:
srcFile to delete.
flagsCan be HideProgressInfo here
Returns:
the job handling the operation.

Definition at line 2470 of file job.cpp.

FileCopyJob * KIO::file_move ( const KUrl &  src,
const KUrl &  dest,
int  permissions = -1,
JobFlags  flags = DefaultFlags 
)

Move a single file.

Use either SlaveBase::rename() if the slave supports that, or copy() and del() otherwise, or eventually get() & put() & del()

Parameters:
srcWhere to get the file.
destWhere to put the file.
permissionsMay be -1. In this case no special permission mode is set.
flagsCan be HideProgressInfo, Overwrite and Resume here. WARNING: Setting Resume means that the data will be appended to dest if dest exists.
Returns:
the job handling the operation.

Definition at line 2464 of file job.cpp.

FileCopyJob* KIO::file_move ( const KUrl &  src,
const KUrl &  dest,
JobFlags  flags 
)

Overload for catching code mistakes.

Do NOT call this method (it is not implemented), insert a value for permissions (-1 by default) before the JobFlags.

Since:
4.3
MetaInfoJob * KIO::fileMetaInfo ( const KFileItemList &  items)

Retrieves meta information for the given items.

Parameters:
itemsfiles to get metainfo for
Returns:
the MetaInfoJob to retrieve the items
Deprecated:
use strigi or KFileMetaInfo

Definition at line 159 of file metainfojob.cpp.

MetaInfoJob * KIO::fileMetaInfo ( const KUrl::List &  items)

Retrieves meta information for the given items.

Parameters:
itemsfiles to get metainfo for
Returns:
the MetaInfoJob to retrieve the items
Deprecated:
use strigi or KFileMetaInfo

Definition at line 164 of file metainfojob.cpp.

PreviewJob * KIO::filePreview ( const KFileItemList &  items,
int  width,
int  height = 0,
int  iconSize = 0,
int  iconAlpha = 70,
bool  scale = true,
bool  save = true,
const QStringList *  enabledPlugins = 0 
)

Creates a PreviewJob to generate or retrieve a preview image for the given URL.

Parameters:
itemsfiles to get previews for
widththe maximum width to use
heightthe maximum height to use, if this is 0, the same value as width is used.
iconSizethe size of the mimetype icon to overlay over the preview or zero to not overlay an icon. This has no effect if the preview plugin that will be used doesn't use icon overlays.
iconAlphatransparency to use for the icon overlay
scaleif the image is to be scaled to the requested size or returned in its original size
saveif the image should be cached for later use
enabledPluginsif non-zero, this points to a list containing the names of the plugins that may be used.
Returns:
the new PreviewJob
See also:
PreviewJob::availablePlugins()
Deprecated:
Use KIO::filePreview(KFileItemList, QSize, QStringList) in combination with the setter-methods instead. Note that the semantics of enabledPlugins has been slightly changed.

Definition at line 755 of file previewjob.cpp.

PreviewJob * KIO::filePreview ( const KUrl::List &  items,
int  width,
int  height = 0,
int  iconSize = 0,
int  iconAlpha = 70,
bool  scale = true,
bool  save = true,
const QStringList *  enabledPlugins = 0 
)

Creates a PreviewJob to generate or retrieve a preview image for the given URL.

Parameters:
itemsfiles to get previews for
widththe maximum width to use
heightthe maximum height to use, if this is 0, the same value as width is used.
iconSizethe size of the mimetype icon to overlay over the preview or zero to not overlay an icon. This has no effect if the preview plugin that will be used doesn't use icon overlays.
iconAlphatransparency to use for the icon overlay
scaleif the image is to be scaled to the requested size or returned in its original size
saveif the image should be cached for later use
enabledPluginsif non-zero, this points to a list containing the names of the plugins that may be used.
Returns:
the new PreviewJob
See also:
PreviewJob::availablePlugins()
Deprecated:
Use KIO::filePreview(KFileItemList, QSize, QStringList) in combination with the setter-methods instead. Note that the semantics of enabledPlugins has been slightly changed.

Definition at line 763 of file previewjob.cpp.

PreviewJob * KIO::filePreview ( const KFileItemList &  items,
const QSize &  size,
const QStringList *  enabledPlugins = 0 
)

Creates a PreviewJob to generate a preview image for the given items.

Parameters:
itemsList of files to create previews for.
sizeDesired size of the preview.
enabledPluginsIf non-zero it defines the list of plugins that are considered for generating the preview. If enabledPlugins is zero the plugins specified in the KConfigGroup "PreviewSettings" are used.
Since:
4.7

Definition at line 777 of file previewjob.cpp.

TransferJob * KIO::get ( const KUrl &  url,
LoadType  reload = NoReload,
JobFlags  flags = DefaultFlags 
)

Get (a.k.a.

read). This is the job to use in order to "download" a file into memory. The slave emits the data through the data() signal.

Special case: if you want to determine the mimetype of the file first, and then read it with the appropriate component, you can still use a KIO::get() directly. When that job emits the mimeType signal, (which is guaranteed to happen before it emits any data), put the job on hold: job->putOnHold(); KIO::Scheduler::publishSlaveOnHold(); and forget about the job. The next time someone does a KIO::get() on the same URL (even in another process) this job will be resumed. This saves KIO from doing two requests to the server.

Parameters:
urlthe URL of the file
reload,:Reload to reload the file, NoReload if it can be taken from the cache
flagsCan be HideProgressInfo here
Returns:
the job handling the operation.

Definition at line 1340 of file job.cpp.

QString KIO::getCacheControlString ( KIO::CacheControl  cacheControl)

Returns a string representation of the given cache control method.

Parameters:
cacheControlthe cache control method
Returns:
the string representation
See also:
parseCacheControl()

Definition at line 1223 of file global.cpp.

KJobTrackerInterface * KIO::getJobTracker ( )

Definition at line 1246 of file global.cpp.

TransferJob * KIO::http_delete ( const KUrl &  url,
JobFlags  flags = DefaultFlags 
)

HTTP DELETE.

Though this function servers the same purpose as KIO::file_delete, unlike file_delete it accomodates HTTP sepecific actions such as redirections.

Parameters:
srcurl resource to delete.
flagsCan be HideProgressInfo here
Returns:
the job handling the operation.
Since:
4.7.3

Definition at line 1622 of file job.cpp.

TransferJob * KIO::http_post ( const KUrl &  url,
const QByteArray &  postData,
JobFlags  flags = DefaultFlags 
)

HTTP POST (for form data).

Example:

job = KIO::http_post( url, postData, KIO::HideProgressInfo );
job->addMetaData("content-type", contentType );
job->addMetaData("referrer", referrerURL);

postData is the data that you want to send and contentType is the complete HTTP header line that specifies the content's MIME type, for example "Content-Type: text/xml".

You MUST specify content-type!

Often contentType is "Content-Type: application/x-www-form-urlencoded" and the postData is then an ASCII string (without null-termination!) with characters like space, linefeed and percent escaped like %20, %0A and %25.

Parameters:
urlWhere to write the data.
postDataEncoded data to post.
flagsCan be HideProgressInfo here
Returns:
the job handling the operation.

Definition at line 1568 of file job.cpp.

TransferJob * KIO::http_post ( const KUrl &  url,
QIODevice *  device,
qint64  size = -1,
JobFlags  flags = DefaultFlags 
)

HTTP POST.

This function, unlike the one that accepts a QByteArray, accepts an IO device from which to read the encoded data to be posted to the server in order to to avoid holding the content of very large post requests, e.g. multimedia file uploads, in memory.

Parameters:
urlWhere to write the data.
postDataEncoded data to post.
sizeSize of the encoded post data.
flagsCan be HideProgressInfo here
Returns:
the job handling the operation.
Since:
4.7

Definition at line 1592 of file job.cpp.

SimpleJob * KIO::http_update_cache ( const KUrl &  url,
bool  no_cache,
time_t  expireDate 
)

HTTP cache update.

Parameters:
urlUrl to update, protocol must be "http".
no_cacheIf true, cache entry for url is deleted.
expireDateLocal machine time indicating when the entry is supposed to expire.
Returns:
the job handling the operation.

Definition at line 944 of file job.cpp.

QString KIO::itemsSummaryString ( uint  items,
uint  files,
uint  dirs,
KIO::filesize_t  size,
bool  showSize 
)

Helper for showing information about a set of files and directories.

Parameters:
itemsthe number of items (= files + dirs + number of symlinks :)
filesthe number of files
dirsthe number of dirs
sizethe sum of the size of the files
showSizewhether to show the size in the result
Returns:
the summary string

Definition at line 119 of file global.cpp.

CopyJob * KIO::link ( const KUrl &  src,
const KUrl &  destDir,
JobFlags  flags = DefaultFlags 
)

Create a link.

If the protocols and hosts are the same, a Unix symlink will be created. Otherwise, a .desktop file of Type Link and pointing to the src URL will be created.

Parameters:
srcThe existing file or directory, 'target' of the link.
destDirDestination directory where the link will be created.
flags,:link() supports HideProgressInfo only
Returns:
the job handling the operation

Definition at line 2205 of file copyjob.cpp.

CopyJob * KIO::link ( const KUrl::List &  src,
const KUrl &  destDir,
JobFlags  flags = DefaultFlags 
)

Create several links If the protocols and hosts are the same, a Unix symlink will be created.

Otherwise, a .desktop file of Type Link and pointing to the src URL will be created.

Parameters:
srcThe existing files or directories, 'targets' of the link.
destDirDestination directory where the links will be created.
flags,:link() supports HideProgressInfo only
Returns:
the job handling the operation
See also:
link()

Definition at line 2212 of file copyjob.cpp.

CopyJob * KIO::linkAs ( const KUrl &  src,
const KUrl &  dest,
JobFlags  flags = DefaultFlags 
)

Create a link.

Unlike link() this operation will fail when the directory already exists. If the protocols and hosts are the same, a Unix symlink will be created. Otherwise, a .desktop file of Type Link and pointing to the src URL will be created.

Parameters:
srcThe existing file or directory, 'target' of the link.
destDestination directory where the link will be created.
flags,:linkAs() supports HideProgressInfo only
Returns:
the job handling the operation
See also:
link ()
copyAs()

Definition at line 2217 of file copyjob.cpp.

ListJob * KIO::listDir ( const KUrl &  url,
JobFlags  flags = DefaultFlags,
bool  includeHidden = true 
)

List the contents of url, which is assumed to be a directory.

"." and ".." are returned, filter them out if you don't want them.

Parameters:
urlthe url of the directory
flagsCan be HideProgressInfo here
includeHiddentrue for all files, false to cull out UNIX hidden files/dirs (whose names start with dot)
Returns:
the job handling the operation.

Definition at line 2704 of file job.cpp.

ListJob * KIO::listRecursive ( const KUrl &  url,
JobFlags  flags = DefaultFlags,
bool  includeHidden = true 
)

The same as the previous method, but recurses subdirectories.

Directory links are not followed.

"." and ".." are returned but only for the toplevel directory. Filter them out if you don't want them.

Parameters:
urlthe url of the directory
flagsCan be HideProgressInfo here
includeHiddentrue for all files, false to cull out UNIX hidden files/dirs (whose names start with dot)
Returns:
the job handling the operation.

Definition at line 2709 of file job.cpp.

MimetypeJob * KIO::mimetype ( const KUrl &  url,
JobFlags  flags = DefaultFlags 
)

Find mimetype for one file or directory.

If you are going to download the file right after determining its mimetype, then don't use this, prefer using a KIO::get() job instead. See the note about putting the job on hold once the mimetype is determined.

Parameters:
urlthe URL of the file
flagsCan be HideProgressInfo here
Returns:
the job handling the operation.

Definition at line 1841 of file job.cpp.

SimpleJob * KIO::mkdir ( const KUrl &  url,
int  permissions = -1 
)

Creates a single directory.

Parameters:
urlThe URL of the directory to create.
permissionsThe permissions to set after creating the directory (unix-style), -1 for default permissions.
Returns:
A pointer to the job handling the operation.

Definition at line 679 of file job.cpp.

StatJob * KIO::mostLocalUrl ( const KUrl &  url,
JobFlags  flags = DefaultFlags 
)

Tries to map a local URL for the given URL, using a KIO job.

Starts a (stat) job for determining the "most local URL" for a given URL. Retrieve the result with StatJob::mostLocalUrl in the result slot.

Parameters:
urlThe URL we are testing.
Since:
4.4

Definition at line 912 of file job.cpp.

SimpleJob * KIO::mount ( bool  ro,
const QByteArray &  fstype,
const QString &  dev,
const QString &  point,
JobFlags  flags = DefaultFlags 
)

Mount filesystem.

Special job for kio_file.

Parameters:
roMount read-only if true.
fstypeFile system type (e.g. "ext2", can be empty).
devDevice (e.g. /dev/sda0).
pointMount point, can be null.
flagsCan be HideProgressInfo here
Returns:
the job handling the operation.

Definition at line 733 of file job.cpp.

CopyJob * KIO::move ( const KUrl &  src,
const KUrl &  dest,
JobFlags  flags = DefaultFlags 
)

Moves a file or directory src to the given destination dest.

Parameters:
srcthe file or directory to copy
destthe destination
flags,:move() supports HideProgressInfo and Overwrite. Note: Overwrite has the meaning of both "write into existing directories" and "overwrite existing files". However if "dest" exists, then src is copied into a subdir of dest, just like "cp" does.
Returns:
the job handling the operation
See also:
copy()
moveAs()

Definition at line 2183 of file copyjob.cpp.

CopyJob * KIO::move ( const KUrl::List &  src,
const KUrl &  dest,
JobFlags  flags = DefaultFlags 
)

Moves a list of files or directories src to the given destination dest.

Parameters:
srcthe list of files or directories to copy
destthe destination
flags,:move() supports HideProgressInfo and Overwrite. Note: Overwrite has the meaning of both "write into existing directories" and "overwrite existing files". However if "dest" exists, then src is copied into a subdir of dest, just like "cp" does.
Returns:
the job handling the operation
See also:
copy()

Definition at line 2199 of file copyjob.cpp.

CopyJob * KIO::moveAs ( const KUrl &  src,
const KUrl &  dest,
JobFlags  flags = DefaultFlags 
)

Moves a file or directory src to the given destination dest.

Unlike move() this operation will not move src into dest when dest exists: it will either fail, or move the contents of src into it if Overwrite is set.

Parameters:
srcthe file or directory to copy
destthe destination
flags,:moveAs() supports HideProgressInfo and Overwrite. Note: Overwrite has the meaning of both "write into existing directories" and "overwrite existing files".
Returns:
the job handling the operation
See also:
copyAs()

Definition at line 2191 of file copyjob.cpp.

MultiGetJob * KIO::multi_get ( long  id,
const KUrl &  url,
const MetaData &  metaData 
)

Creates a new multiple get job.

Parameters:
idthe id of the get operation
urlthe URL of the file
metaDatathe MetaData associated with the file
Returns:
the job handling the operation.
See also:
get()

Definition at line 2974 of file job.cpp.

QString KIO::number ( KIO::filesize_t  size)

Converts a size to a string representation Not unlike QString::number(...)

Parameters:
sizesize in bytes
Returns:
converted size as a string - e.g. 123456789

Definition at line 63 of file global.cpp.

FileJob * KIO::open ( const KUrl &  url,
QIODevice::OpenMode  mode 
)

Open ( random access I/O )

The file-job emits open() when opened

Parameters:
urlthe URL of the file
modethe access privileges: see OpenMode
Returns:
The file-handling job. It will never return 0. Errors are handled asynchronously (emitted as signals).

Definition at line 211 of file filejob.cpp.

QDataStream & KIO::operator<< ( QDataStream &  s,
const AuthInfo &  a 
)

Definition at line 209 of file authinfo.cpp.

QDBusArgument & KIO::operator<< ( QDBusArgument &  argument,
const AuthInfo &  a 
)

Definition at line 230 of file authinfo.cpp.

QDataStream & KIO::operator>> ( QDataStream &  s,
AuthInfo &  a 
)

Definition at line 219 of file authinfo.cpp.

const QDBusArgument & KIO::operator>> ( const QDBusArgument &  argument,
AuthInfo &  a 
)

Definition at line 242 of file authinfo.cpp.

KIO::CacheControl KIO::parseCacheControl ( const QString &  cacheControl)

Parses the string representation of the cache control option.

Parameters:
cacheControlthe string representation
Returns:
the cache control value
See also:
getCacheControlString()

Definition at line 1204 of file global.cpp.

QString KIO::pasteActionText ( )

Returns the text to use for the Paste action, when the application supports pasting files, urls, and clipboard data, using pasteClipboard().

Returns:
a string suitable for KAction::setText, or an empty string if pasting isn't possible right now.

Definition at line 381 of file paste.cpp.

KIO::Job * KIO::pasteClipboard ( const KUrl &  destURL,
QWidget *  widget,
bool  move = false 
)

Pastes the content of the clipboard to the given destination URL.

URLs are treated separately (performing a file copy) from other data (which is saved into a file after asking the user to choose a filename and the preferred data format)

Parameters:
destURLthe URL to receive the data
widgetparent widget to use for dialogs
movetrue to move the data, false to copy – now ignored and handled automatically
Returns:
the job that handles the operation
See also:
pasteData()

Definition at line 330 of file paste.cpp.

void KIO::pasteData ( const KUrl &  destURL,
const QByteArray &  data,
QWidget *  widget 
)

Pastes the given data to the given destination URL.

NOTE: This method is blocking (uses NetAccess for saving the data). Please consider using pasteDataAsync instead.

Parameters:
destURLthe URL of the directory where the data will be pasted. The filename to use in that directory is prompted by this method.
datathe data to copy
widgetparent widget to use for dialogs
See also:
pasteClipboard()

This method is a candidate for disappearing in KDE5, email faure at kde.org if you are using it in your application, then I'll reconsider.

Definition at line 356 of file paste.cpp.

KIO::CopyJob * KIO::pasteDataAsync ( const KUrl &  destURL,
const QByteArray &  data,
QWidget *  widget,
const QString &  dialogText = QString() 
)

Pastes the given data to the given destination URL.

Note that this method requires the caller to have chosen the QByteArray to paste before hand, unlike pasteClipboard and pasteMimeSource.

Parameters:
destURLthe URL of the directory where the data will be pasted. The filename to use in that directory is prompted by this method.
datathe data to copy
dialogTextthe text to show in the dialog
See also:
pasteClipboard()

This method is a candidate for disappearing in KDE5, email faure at kde.org if you are using it in your application, then I'll reconsider.

Definition at line 367 of file paste.cpp.

KIO::Job * KIO::pasteMimeData ( const QMimeData *  data,
const KUrl &  destUrl,
const QString &  dialogText,
QWidget *  widget 
)

Save the given mime data to the given destination URL after offering the user to choose a data format.

This is the method used when handling drops (of anything else than URLs) onto dolphin and konqueror.

Parameters:
datathe QMimeData, usually from a QDropEvent
destUrlthe URL of the directory where the data will be pasted. The filename to use in that directory is prompted by this method.
dialogTextthe text to show in the dialog
widgetparent widget to use for dialogs
clipboardwhether the QMimeData comes from QClipboard. If you use pasteClipboard for that case, you never have to worry about this parameter.
See also:
pasteClipboard()

Definition at line 398 of file paste.cpp.

KIO::CopyJob * KIO::pasteMimeSource ( const QMimeData *  data,
const KUrl &  destURL,
const QString &  dialogText,
QWidget *  widget,
bool  clipboard = false 
)
Deprecated:
because it returns a CopyJob*, and this is better implemented without a copy job.

Use pasteMimeData instead. Note that you'll have to tell the user in case of an error (no data to paste), while pasteMimeSource did that.

Definition at line 245 of file paste.cpp.

QPixmap KIO::pixmapForUrl ( const KUrl &  _url,
mode_t  _mode = 0,
KIconLoader::Group  _group = KIconLoader::Desktop,
int  _force_size = 0,
int  _state = 0,
QString *  _path = 0 
)

Convenience method to find the pixmap for a URL.

Call this one when you don't know the mimetype.

Parameters:
_urlURL for the file.
_modethe mode of the file. The mode may modify the icon with overlays that show special properties of the icon. Use 0 for default
_groupThe icon group where the icon is going to be used.
_force_sizeOverride globally configured icon size. Use 0 for the default size
_stateThe icon state, one of: KIconLoader::DefaultState, KIconLoader::ActiveState or KIconLoader::DisabledState.
_pathOutput parameter to get the full path. Seldom needed. Ignored if 0
Returns:
the pixmap of the URL, can be a default icon if not found

Definition at line 1239 of file global.cpp.

TransferJob * KIO::put ( const KUrl &  url,
int  permissions,
JobFlags  flags = DefaultFlags 
)

Put (a.k.a.

write)

  @param url Where to write data.
  @param permissions May be -1. In this case no special permission mode is set.
  @param flags Can be HideProgressInfo, Overwrite and Resume here. WARNING:
  Setting Resume means that the data will be appended to @p dest if @p dest exists.
  @return the job handling the operation.
  @see multi_get()

Definition at line 1685 of file job.cpp.

QByteArray KIO::rawErrorDetail ( int  errorCode,
const QString &  errorText,
const KUrl *  reqUrl = 0L,
int  method = -1 
)

Returns translated error details for errorCode using the additional error information provided by errorText , reqUrl (the request URL), and the ioslave method .

Parameters:
errorCodethe error code
errorTextthe additional error text
reqUrlthe request URL
methodthe ioslave method
Returns:
the following data:
  • QString errorName - the name of the error
  • QString techName - if not null, the more technical name of the error
  • QString description - a description of the error
  • QStringList causes - a list of possible causes of the error
  • QStringList solutions - a liso of solutions for the error

Definition at line 473 of file global.cpp.

static void KIO::readConfig ( KConfig *  config,
const QString &  group,
MetaData *  metaData 
)
static

Definition at line 51 of file slaveconfig.cpp.

SimpleJob * KIO::rename ( const KUrl &  src,
const KUrl &  dest,
JobFlags  flags = DefaultFlags 
)

Rename a file or directory.

Warning: this operation fails if a direct renaming is not possible (like with files or dirs on separate partitions) Use move or file_move in this case.

Parameters:
srcThe original URL
destThe final URL
flagsCan be Overwrite here
Returns:
the job handling the operation.

Definition at line 713 of file job.cpp.

SimpleJob * KIO::rmdir ( const KUrl &  url)

Removes a single directory.

The directory is assumed to be empty. The job will fail if the directory is not empty. Use KIO::del() (DeleteJob) to delete non-empty directories.

Parameters:
urlThe URL of the directory to remove.
Returns:
A pointer to the job handling the operation.

Definition at line 686 of file job.cpp.

SimpleJob * KIO::setModificationTime ( const KUrl &  url,
const QDateTime &  mtime 
)

Changes the modification time on a file or directory.

Parameters:
urlThe URL of file or directory.
permissionsThe permissions to set.
Returns:
the job handling the operation.

Definition at line 706 of file job.cpp.

SimpleJob * KIO::special ( const KUrl &  url,
const QByteArray &  data,
JobFlags  flags = DefaultFlags 
)

Execute any command that is specific to one slave (protocol).

Examples are : HTTP POST, mount and unmount (kio_file)

Parameters:
urlThe URL isn't passed to the slave, but is used to know which slave to send it to :-)
dataPacked data. The meaning is completely dependent on the slave, but usually starts with an int for the command number.
flagsCan be HideProgressInfo here
Returns:
the job handling the operation.

Definition at line 727 of file job.cpp.

StatJob * KIO::stat ( const KUrl &  url,
JobFlags  flags = DefaultFlags 
)

Find all details for one file or directory.

Parameters:
urlthe URL of the file
flagsCan be HideProgressInfo here
Returns:
the job handling the operation.

Definition at line 906 of file job.cpp.

StatJob * KIO::stat ( const KUrl &  url,
KIO::StatJob::StatSide  side,
short int  details,
JobFlags  flags = DefaultFlags 
)

Find all details for one file or directory.

This version of the call includes two additional booleans, sideIsSource and details.

Parameters:
urlthe URL of the file
sideis SourceSide when stating a source file (we will do a get on it if the stat works) and DestinationSide when stating a destination file (target of a copy). The reason for this parameter is that in some cases the kioslave might not be able to determine a file's existence (e.g. HTTP doesn't allow it, FTP has issues with case-sensitivity on some systems). When the slave can't reliably determine the existence of a file, it will:
  • be optimistic if SourceSide, i.e. it will assume the file exists, and if it doesn't this will appear when actually trying to download it
  • be pessimistic if DestinationSide, i.e. it will assume the file doesn't exist, to prevent showing "about to overwrite" errors to the user. If you simply want to check for existence without downloading/uploading afterwards, then you should use DestinationSide.
detailsselects the level of details we want. By default this is 2 (all details wanted, including modification time, size, etc.), setDetails(1) is used when deleting: we don't need all the information if it takes too much time, no need to follow symlinks etc. setDetails(0) is used for very simple probing: we'll only get the answer "it's a file or a directory or a symlink, or it doesn't exist". This is used by KRun and DeleteJob.
flagsCan be HideProgressInfo here
Returns:
the job handling the operation.

Definition at line 934 of file job.cpp.

StatJob * KIO::stat ( const KUrl &  url,
bool  sideIsSource,
short int  details,
JobFlags  flags = DefaultFlags 
)

Find all details for one file or directory.

This version of the call includes two additional booleans, sideIsSource and details.

Parameters:
urlthe URL of the file
sideIsSourceis true when stating a source file (we will do a get on it if the stat works) and false when stating a destination file (target of a copy). The reason for this parameter is that in some cases the kioslave might not be able to determine a file's existence (e.g. HTTP doesn't allow it, FTP has issues with case-sensitivity on some systems). When the slave can't reliably determine the existence of a file, it will:
  • be optimistic if sideIsSource=true, i.e. it will assume the file exists, and if it doesn't this will appear when actually trying to download it
  • be pessimistic if sideIsSource=false, i.e. it will assume the file doesn't exist, to prevent showing "about to overwrite" errors to the user. If you simply want to check for existence without downloading/uploading afterwards, then you should use sideIsSource=false.
detailsselects the level of details we want. By default this is 2 (all details wanted, including modification time, size, etc.), setDetails(1) is used when deleting: we don't need all the information if it takes too much time, no need to follow symlinks etc. setDetails(0) is used for very simple probing: we'll only get the answer "it's a file or a directory, or it doesn't exist". This is used by KRun.
flagsCan be HideProgressInfo here
Returns:
the job handling the operation.

Definition at line 923 of file job.cpp.

StoredTransferJob * KIO::storedGet ( const KUrl &  url,
LoadType  reload = NoReload,
JobFlags  flags = DefaultFlags 
)

Get (a.k.a.

read), into a single QByteArray.

See also:
StoredTransferJob
Parameters:
urlthe URL of the file
reload,:Reload to reload the file, NoReload if it can be taken from the cache
flagsCan be HideProgressInfo here
Returns:
the job handling the operation.

Definition at line 1751 of file job.cpp.

StoredTransferJob * KIO::storedHttpPost ( const QByteArray &  arr,
const KUrl &  url,
JobFlags  flags = DefaultFlags 
)

HTTP POST (a.k.a.

write) data from a single QByteArray.

See also:
StoredTransferJob
Parameters:
arrThe data to write
urlWhere to write data.
flagsCan be HideProgressInfo here.
Returns:
the job handling the operation.
Since:
4.2

Definition at line 1631 of file job.cpp.

StoredTransferJob * KIO::storedHttpPost ( QIODevice *  device,
const KUrl &  url,
qint64  size = -1,
JobFlags  flags = DefaultFlags 
)

HTTP POST (a.k.a.

write) data from the given IO device.

See also:
StoredTransferJob
Parameters:
deviceDevice from which the encoded data to be posted is read.
urlWhere to write data.
sizeSize of the encoded data to be posted.
flagsCan be HideProgressInfo here.
Returns:
the job handling the operation.
Since:
4.7

Definition at line 1649 of file job.cpp.

StoredTransferJob * KIO::storedPut ( const QByteArray &  arr,
const KUrl &  url,
int  permissions,
JobFlags  flags = DefaultFlags 
)

Put (a.k.a.

write) data from a single QByteArray.

See also:
StoredTransferJob
Parameters:
arrThe data to write
urlWhere to write data.
permissionsMay be -1. In this case no special permission mode is set.
flagsCan be HideProgressInfo, Overwrite and Resume here. WARNING: Setting Resume means that the data will be appended to dest if dest exists.
Returns:
the job handling the operation.

Definition at line 1761 of file job.cpp.

SimpleJob * KIO::symlink ( const QString &  target,
const KUrl &  dest,
JobFlags  flags = DefaultFlags 
)

Create or move a symlink.

This is the lowlevel operation, similar to file_copy and file_move. It doesn't do any check (other than those the slave does) and it doesn't show rename and skip dialogs - use KIO::link for that.

Parameters:
targetThe string that will become the "target" of the link (can be relative)
destThe symlink to create.
flagsCan be Overwrite and HideProgressInfo
Returns:
the job handling the operation.

Definition at line 720 of file job.cpp.

CopyJob * KIO::trash ( const KUrl &  src,
JobFlags  flags = DefaultFlags 
)

Trash a file or directory.

This is currently only supported for local files and directories. Use "KUrl src; src.setPath( path );" to create a URL from a path.

Parameters:
srcfile to delete
flags,:trash() supports HideProgressInfo only
Returns:
the job handling the operation

Definition at line 2224 of file copyjob.cpp.

CopyJob * KIO::trash ( const KUrl::List &  src,
JobFlags  flags = DefaultFlags 
)

Trash a list of files or directories.

This is currently only supported for local files and directories.

Parameters:
srcthe files to delete
flags,:trash() supports HideProgressInfo only
Returns:
the job handling the operation

Definition at line 2231 of file copyjob.cpp.

SimpleJob * KIO::unmount ( const QString &  point,
JobFlags  flags = DefaultFlags 
)

Unmount filesystem.

Special job for kio_file.

Parameters:
pointPoint to unmount.
flagsCan be HideProgressInfo here
Returns:
the job handling the operation.

Definition at line 744 of file job.cpp.

QString KIO::unsupportedActionErrorString ( const QString &  protocol,
int  cmd 
)

Returns an appropriate error message if the given command cmd is an unsupported action (ERR_UNSUPPORTED_ACTION).

Parameters:
protocolname of the protocol
cmdgiven command
See also:
enum Command

Definition at line 376 of file global.cpp.


Variable Documentation

const int KIO::switchIconInterval = 1000
static

Definition at line 183 of file delegateanimationhandler.cpp.

This file is part of the KDE documentation.
Documentation copyright © 1996-2013 The KDE developers.
Generated on Tue Jul 16 2013 11:48:02 by doxygen 1.8.1.1 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

KIO

Skip menu "KIO"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Related Pages

kdelibs-4.10.5 API Reference

Skip menu "kdelibs-4.10.5 API Reference"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDEWebKit
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • kio
  • KIOSlave
  • KJS
  •   KJS-API
  •   WTF
  • kjsembed
  • KNewStuff
  • KParts
  • KPty
  • Kross
  • KUnitConversion
  • KUtils
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver
Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal