class KProtocolInfo

Information about I/O (Internet, etc. More...

Definition#include <kprotocolinfo.h>
InheritsKSycocaEntry (kdecore) [public ]
List of all Methods
Annotated List
Files
Globals
Hierarchy
Index

Public Types

Public Methods

Public Static Methods

Protected Members


Detailed Description

Information about I/O (Internet, etc.) protocols supported by KDE.

This class is useful if you want to know which protocols KDE supports. In addition you can find out lots of information about a certain protocol. KProtocolInfo scans the *.protocol files of all installed kioslaves to get this information.

typedef KSharedPtr<KProtocolInfo> Ptr

Ptr

 KProtocolInfo ( const QString & path)

KProtocolInfo

Read a protocol description file

 KProtocolInfo ( QDataStream& _str, int offset)

KProtocolInfo

 ~KProtocolInfo ()

~KProtocolInfo

[virtual]

QString  name ()

name

[const virtual]

Reimplemented from KSycocaEntry.

bool  isValid ()

isValid

[const virtual]

Reimplemented from KSycocaEntry.

void  load (QDataStream& )

load

[virtual]

Load the protocol info from a stream.

Reimplemented from KSycocaEntry.

void  save (QDataStream& )

save

[virtual]

Save the protocol info to a stream.

Reimplemented from KSycocaEntry.

enum Type { T_STREAM, T_FILESYSTEM, T_NONE, T_ERROR }

Type

QString  exec ( const QString& protocol )

exec

[static]

Returns: the library / executable to open for the protocol protocol Example : "kio_ftp", meaning either the executable "kio_ftp" or the library "kio_ftp.la" (recommended), whichever is available.

Type  inputType ( const KURL &url )

inputType

[static]

Type  outputType ( const KURL &url )

outputType

[static]

QStringList  listing ( const KURL &url )

listing

[static]

Returns: the list of fields this protocol returns when listing The current possibilities are Name, Type, Size, Date, AccessDate, Access, Owner, Group, Link, URL, MimeType

bool  isSourceProtocol ( const KURL &url )

isSourceProtocol

[static]

bool  isHelperProtocol ( const KURL &url )

isHelperProtocol

[static]

bool  isFilterProtocol ( const KURL &url )

isFilterProtocol

[static]

bool  isKnownProtocol ( const KURL &url )

isKnownProtocol

[static]

bool  supportsListing ( const KURL &url )

supportsListing

[static]

bool  supportsReading ( const KURL &url )

supportsReading

[static]

bool  supportsWriting ( const KURL &url )

supportsWriting

[static]

bool  supportsMakeDir ( const KURL &url )

supportsMakeDir

[static]

bool  supportsDeleting ( const KURL &url )

supportsDeleting

[static]

bool  supportsLinking ( const KURL &url )

supportsLinking

[static]

bool  supportsMoving ( const KURL &url )

supportsMoving

[static]

bool  canCopyFromFile ( const KURL &url )

canCopyFromFile

[static]

bool  canCopyToFile ( const KURL &url )

canCopyToFile

[static]

QString  defaultMimetype ( const KURL& url )

defaultMimetype

[static]

Returns: default mimetype for this URL based on the protocol

Type  inputType ( const QString& protocol )

inputType

[static]

Type  outputType ( const QString& protocol )

outputType

[static]

QStringList  listing ( const QString& protocol )

listing

[static]

Returns: the list of fields this protocol returns when listing The current possibilities are Name, Type, Size, Date, AccessDate, Access, Owner, Group, Link, URL, MimeType

bool  isSourceProtocol ( const QString& protocol )

isSourceProtocol

[static]

bool  isHelperProtocol ( const QString& protocol )

isHelperProtocol

[static]

bool  isFilterProtocol ( const QString& protocol )

isFilterProtocol

[static]

bool  isKnownProtocol ( const QString& protocol )

isKnownProtocol

[static]

bool  supportsListing ( const QString& protocol )

supportsListing

[static]

bool  supportsReading ( const QString& protocol )

supportsReading

[static]

bool  supportsWriting ( const QString& protocol )

supportsWriting

[static]

bool  supportsMakeDir ( const QString& protocol )

supportsMakeDir

[static]

bool  supportsDeleting ( const QString& protocol )

supportsDeleting

[static]

bool  supportsLinking ( const QString& protocol )

supportsLinking

[static]

bool  supportsMoving ( const QString& protocol )

supportsMoving

[static]

bool  canCopyFromFile ( const QString& protocol )

canCopyFromFile

[static]

bool  canCopyToFile ( const QString& protocol )

canCopyToFile

[static]

QString  defaultMimetype ( const QString& protocol)

defaultMimetype

[static]

QString  icon ( const QString& protocol )

icon

[static]

Returns: the name of the icon, associated with the specified protocol

QString  config ( const QString& protocol )

config

[static]

Returns: the name of the config file associated with the specified protocol

bool  determineMimetypeFromExtension ( const QString &protocol )

determineMimetypeFromExtension

[static]

QStringList  protocols ()

protocols

[static]

Returns: list of all known protocols

QString m_name

m_name

[protected]

QString m_exec

m_exec

[protected]

Type m_inputType

m_inputType

[protected]

Type m_outputType

m_outputType

[protected]

QStringList m_listing

m_listing

[protected]

bool m_isSourceProtocol

m_isSourceProtocol

[protected]

bool m_isHelperProtocol

m_isHelperProtocol

[protected]

bool m_supportsListing

m_supportsListing

[protected]

bool m_supportsReading

m_supportsReading

[protected]

bool m_supportsWriting

m_supportsWriting

[protected]

bool m_supportsMakeDir

m_supportsMakeDir

[protected]

bool m_supportsDeleting

m_supportsDeleting

[protected]

bool m_supportsLinking

m_supportsLinking

[protected]

bool m_supportsMoving

m_supportsMoving

[protected]

QString m_defaultMimetype

m_defaultMimetype

[protected]

bool m_determineMimetypeFromExtension

m_determineMimetypeFromExtension

[protected]

QString m_icon

m_icon

[protected]

bool m_canCopyFromFile

m_canCopyFromFile

[protected]

bool m_canCopyToFile

m_canCopyToFile

[protected]

QString m_config

m_config

[protected]