class KProtocolInfo

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

Definition#include <kprotocolinfo.h>
InheritsKSycocaEntry
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

 KProtocolInfo ( const QString & path)

Read a protocol description file

 KProtocolInfo ( QDataStream& _str, int offset)

KProtocolInfo ()

[virtual]

QString  name ()

[const virtual]

Reimplemented from KSycocaEntry.

bool  isValid ()

[const virtual]

Reimplemented from KSycocaEntry.

void  load (QDataStream& )

[virtual]

Load the protocol info from a stream.

Reimplemented from KSycocaEntry.

void  save (QDataStream& )

[virtual]

Save the protocol info to a stream.

Reimplemented from KSycocaEntry.

enum Type {T_STREAM, T_FILESYSTEM, T_NONE, T_ERROR }

QString  exec ( const QString& protocol )

[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 QString& protocol )

[static]

Type  outputType ( const QString& protocol )

[static]

QStringList  listing ( const QString& protocol )

[static]

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

bool  isSourceProtocol ( const QString& protocol )

[static]

bool  isHelperProtocol ( const QString& protocol )

[static]

bool  isFilterProtocol ( const QString& protocol )

[static]

bool  isKnownProtocol ( const QString& protocol )

[static]

bool  supportsListing ( const QString& protocol )

[static]

bool  supportsReading ( const QString& protocol )

[static]

bool  supportsWriting ( const QString& protocol )

[static]

bool  supportsMakeDir ( const QString& protocol )

[static]

bool  supportsDeleting ( const QString& protocol )

[static]

bool  supportsLinking ( const QString& protocol )

[static]

bool  supportsMoving ( const QString& protocol )

[static]

QString  icon ( const QString& protocol )

[static]

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

QString  defaultMimetype ( const QString& protocol )

[static]

Returns: default mimetype for this protocol

bool  determineMimetypeFromExtension ( const QString &protocol )

[static]

QStringList  protocols ()

[static]

Returns: list of all known protocols

QString m_name

[protected]

QString m_exec

[protected]

Type m_inputType

[protected]

Type m_outputType

[protected]

QStringList m_listing

[protected]

bool m_isSourceProtocol

[protected]

bool m_isHelperProtocol

[protected]

bool m_supportsListing

[protected]

bool m_supportsReading

[protected]

bool m_supportsWriting

[protected]

bool m_supportsMakeDir

[protected]

bool m_supportsDeleting

[protected]

bool m_supportsLinking

[protected]

bool m_supportsMoving

[protected]

QString m_defaultMimetype

[protected]

bool m_determineMimetypeFromExtension

[protected]

QString m_icon

[protected]