# class KProtocolInfo | Information about I/O (Internet, etc. More...
Definition | `#include <kprotocolinfo.h>`
Inherits | KSycocaEntry [public ]
List of all Methods
Annotated List
Files
Globals
Hierarchy
Index

#### Public Types

- typedef KSharedPtr<KProtocolInfo> Ptr
- enum Type { T_STREAM, T_FILESYSTEM, T_NONE, T_ERROR }

#### Public Methods

- KProtocolInfo ( const QString & path)
- KProtocolInfo ( QDataStream& _str, int offset)
- virtual ~KProtocolInfo ()
- virtual QString name () const
- virtual bool isValid () const
- virtual void load (QDataStream& )
- virtual void save (QDataStream& )

#### Public Static Methods

- static QString exec ( const QString& protocol )
- static Type inputType ( const QString& protocol )
- static Type outputType ( const QString& protocol )
- static QStringList listing ( const QString& protocol )
- static 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 QString defaultMimetype ( const QString& protocol )
- static bool determineMimetypeFromExtension ( const QString &protocol )
- static QStringList protocols ()

#### Protected Members

- QString m_name
- QString m_exec
- Type m_inputType
- Type m_outputType
- QStringList m_listing
- bool m_isSourceProtocol
- bool m_isHelperProtocol
- bool m_supportsListing
- bool m_supportsReading
- bool m_supportsWriting
- bool m_supportsMakeDir
- bool m_supportsDeleting
- bool m_supportsLinking
- bool m_supportsMoving
- QString m_defaultMimetype
- bool m_determineMimetypeFromExtension
- QString m_icon

## 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 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]

QString icon ( const QString& protocol ) | ### icon

[static]

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

QString defaultMimetype ( const QString& protocol ) | ### defaultMimetype

[static]

Returns: default mimetype for this 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]

- Author: Torben Weis <weis@kde.org>
- Generated: root@sparc.ports.openbsd.org on Wed May 2 09:40:40 2001, using kdoc 2.0a53.