\section{KProtocol\-Info Class Reference}
\label{classKProtocolInfo}\index{KProtocolInfo@{KProtocolInfo}}
Information about I/O (Internet, etc.) protocols supported by {\bf KDE}.  


{\tt \#include $<$kprotocolinfo.h$>$}

Inheritance diagram for KProtocol\-Info:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=57pt]{classKProtocolInfo__inherit__graph}
\end{center}
\end{figure}
Collaboration diagram for KProtocol\-Info:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=171pt]{classKProtocolInfo__coll__graph}
\end{center}
\end{figure}
\subsection*{Public Types}
\begin{CompactItemize}
\item 
typedef {\bf KShared\-Ptr}$<$ {\bf KProtocol\-Info} $>$ {\bf Ptr}\label{classKProtocolInfo_w0}

\item 
typedef {\bf QValue\-List}$<$ {\bf Extra\-Field} $>$ {\bf Extra\-Field\-List}\label{classKProtocolInfo_w1}

\item 
enum {\bf Type} \{ {\bf T\_\-STREAM}, 
{\bf T\_\-FILESYSTEM}, 
{\bf T\_\-NONE}, 
{\bf T\_\-ERROR}
 \}
\item 
enum {\bf File\-Name\-Used\-For\-Copying} \{ {\bf Name}, 
{\bf From\-URL}
 \}
\end{CompactItemize}
\subsection*{Public Member Functions}
\begin{CompactItemize}
\item 
{\bf KProtocol\-Info} (const {\bf QString} \&path)
\item 
virtual bool {\bf is\-Valid} () const 
\item 
virtual {\bf QString} {\bf name} () const 
\item 
{\bf KProtocol\-Info} ({\bf QData\-Stream} \&\_\-str, int {\bf offset})\label{classKProtocolInfo_a3}

\item 
virtual void {\bf load} ({\bf QData\-Stream} \&)\label{classKProtocolInfo_a5}

\item 
virtual void {\bf save} ({\bf QData\-Stream} \&)\label{classKProtocolInfo_a6}

\end{CompactItemize}
\subsection*{Static Public Member Functions}
\begin{CompactItemize}
\item 
static {\bf QString\-List} {\bf protocols} ()
\item 
static bool {\bf is\-Known\-Protocol} (const {\bf KURL} \&url)
\item 
static bool {\bf is\-Known\-Protocol} (const {\bf QString} \&protocol)
\item 
static {\bf QString} {\bf exec} (const {\bf QString} \&protocol)
\item 
static {\bf Type} {\bf input\-Type} (const {\bf KURL} \&url)
\item 
static {\bf Type} {\bf output\-Type} (const {\bf KURL} \&url)
\item 
static {\bf QString\-List} {\bf listing} (const {\bf KURL} \&url)
\item 
static {\bf Extra\-Field\-List} {\bf extra\-Fields} (const {\bf KURL} \&url)
\item 
static bool {\bf is\-Source\-Protocol} (const {\bf KURL} \&url)
\item 
static bool {\bf is\-Helper\-Protocol} (const {\bf KURL} \&url)
\item 
static bool {\bf is\-Helper\-Protocol} (const {\bf QString} \&protocol)
\item 
static bool {\bf is\-Filter\-Protocol} (const {\bf KURL} \&url)
\item 
static bool {\bf is\-Filter\-Protocol} (const {\bf QString} \&protocol)
\item 
static bool {\bf supports\-Listing} (const {\bf KURL} \&url)
\item 
static bool {\bf supports\-Reading} (const {\bf KURL} \&url)
\item 
static bool {\bf supports\-Writing} (const {\bf KURL} \&url)
\item 
static bool {\bf supports\-Make\-Dir} (const {\bf KURL} \&url)
\item 
static bool {\bf supports\-Deleting} (const {\bf KURL} \&url)
\item 
static bool {\bf supports\-Linking} (const {\bf KURL} \&url)
\item 
static bool {\bf supports\-Moving} (const {\bf KURL} \&url)
\item 
static bool {\bf can\-Copy\-From\-File} (const {\bf KURL} \&url)
\item 
static bool {\bf can\-Copy\-To\-File} (const {\bf KURL} \&url)
\item 
static bool {\bf can\-Rename\-From\-File} (const {\bf KURL} \&url)
\item 
static bool {\bf can\-Rename\-To\-File} (const {\bf KURL} \&url)
\item 
static bool {\bf can\-Delete\-Recursive} (const {\bf KURL} \&url)
\item 
static File\-Name\-Used\-For\-Copying {\bf file\-Name\-Used\-For\-Copying} (const {\bf KURL} \&url)
\item 
static {\bf QString} {\bf default\-Mimetype} (const {\bf KURL} \&url)
\item 
static {\bf QString} {\bf icon} (const {\bf QString} \&protocol)
\item 
static {\bf QString} {\bf config} (const {\bf QString} \&protocol)
\item 
static int {\bf max\-Slaves} (const {\bf QString} \&protocol)
\item 
static bool {\bf determine\-Mimetype\-From\-Extension} (const {\bf QString} \&protocol)
\item 
static {\bf QString} {\bf doc\-Path} (const {\bf QString} \&protocol)
\item 
static {\bf QString} {\bf protocol\-Class} (const {\bf QString} \&protocol)
\item 
static bool {\bf show\-File\-Preview} (const {\bf QString} \&protocol)
\item 
static {\bf KURL::URIMode} {\bf uri\-Parse\-Mode} (const {\bf QString} \&protocol)
\item 
static {\bf QString\-List} {\bf capabilities} (const {\bf QString} \&protocol)
\item 
static {\bf QString} {\bf proxied\-By} (const {\bf QString} \&protocol)
\item 
static {\bf Type} {\bf input\-Type} (const {\bf QString} \&protocol) KDE\_\-DEPRECATED
\item 
static {\bf Type} {\bf output\-Type} (const {\bf QString} \&protocol) KDE\_\-DEPRECATED
\item 
static {\bf QString\-List} {\bf listing} (const {\bf QString} \&protocol) KDE\_\-DEPRECATED
\item 
static bool {\bf is\-Source\-Protocol} (const {\bf QString} \&protocol) KDE\_\-DEPRECATED
\item 
static bool {\bf supports\-Listing} (const {\bf QString} \&protocol) KDE\_\-DEPRECATED
\item 
static bool {\bf supports\-Reading} (const {\bf QString} \&protocol) KDE\_\-DEPRECATED
\item 
static bool {\bf supports\-Writing} (const {\bf QString} \&protocol) KDE\_\-DEPRECATED
\item 
static bool {\bf supports\-Make\-Dir} (const {\bf QString} \&protocol) KDE\_\-DEPRECATED
\item 
static bool {\bf supports\-Deleting} (const {\bf QString} \&protocol) KDE\_\-DEPRECATED
\item 
static bool {\bf supports\-Linking} (const {\bf QString} \&protocol) KDE\_\-DEPRECATED
\item 
static bool {\bf supports\-Moving} (const {\bf QString} \&protocol) KDE\_\-DEPRECATED
\item 
static bool {\bf can\-Copy\-From\-File} (const {\bf QString} \&protocol) KDE\_\-DEPRECATED
\item 
static bool {\bf can\-Copy\-To\-File} (const {\bf QString} \&protocol) KDE\_\-DEPRECATED
\item 
static {\bf QString} {\bf default\-Mimetype} (const {\bf QString} \&protocol) KDE\_\-DEPRECATED
\end{CompactItemize}
\subsection*{Protected Member Functions}
\begin{CompactItemize}
\item 
bool {\bf can\-Rename\-From\-File} () const \label{classKProtocolInfo_b0}

\item 
bool {\bf can\-Rename\-To\-File} () const \label{classKProtocolInfo_b1}

\item 
bool {\bf can\-Delete\-Recursive} () const \label{classKProtocolInfo_b2}

\item 
File\-Name\-Used\-For\-Copying {\bf file\-Name\-Used\-For\-Copying} () const \label{classKProtocolInfo_b3}

\item 
virtual void {\bf virtual\_\-hook} (int id, void $\ast$data)\label{classKProtocolInfo_b4}

\end{CompactItemize}
\subsection*{Static Protected Member Functions}
\begin{CompactItemize}
\item 
static {\bf KProtocol\-Info} $\ast$ {\bf find\-Protocol} (const {\bf KURL} \&url)\label{classKProtocolInfo_f0}

\end{CompactItemize}
\subsection*{Protected Attributes}
\begin{CompactItemize}
\item 
{\bf QString} {\bf m\_\-name}\label{classKProtocolInfo_p0}

\item 
{\bf QString} {\bf m\_\-exec}\label{classKProtocolInfo_p1}

\item 
{\bf Type} {\bf m\_\-input\-Type}\label{classKProtocolInfo_p2}

\item 
{\bf Type} {\bf m\_\-output\-Type}\label{classKProtocolInfo_p3}

\item 
{\bf QString\-List} {\bf m\_\-listing}\label{classKProtocolInfo_p4}

\item 
bool {\bf m\_\-is\-Source\-Protocol}\label{classKProtocolInfo_p5}

\item 
bool {\bf m\_\-is\-Helper\-Protocol}\label{classKProtocolInfo_p6}

\item 
bool {\bf m\_\-supports\-Listing}\label{classKProtocolInfo_p7}

\item 
bool {\bf m\_\-supports\-Reading}\label{classKProtocolInfo_p8}

\item 
bool {\bf m\_\-supports\-Writing}\label{classKProtocolInfo_p9}

\item 
bool {\bf m\_\-supports\-Make\-Dir}\label{classKProtocolInfo_p10}

\item 
bool {\bf m\_\-supports\-Deleting}\label{classKProtocolInfo_p11}

\item 
bool {\bf m\_\-supports\-Linking}\label{classKProtocolInfo_p12}

\item 
bool {\bf m\_\-supports\-Moving}\label{classKProtocolInfo_p13}

\item 
{\bf QString} {\bf m\_\-default\-Mimetype}\label{classKProtocolInfo_p14}

\item 
bool {\bf m\_\-determine\-Mimetype\-From\-Extension}\label{classKProtocolInfo_p15}

\item 
{\bf QString} {\bf m\_\-icon}\label{classKProtocolInfo_p16}

\item 
bool {\bf m\_\-can\-Copy\-From\-File}\label{classKProtocolInfo_p17}

\item 
bool {\bf m\_\-can\-Copy\-To\-File}\label{classKProtocolInfo_p18}

\item 
{\bf QString} {\bf m\_\-config}\label{classKProtocolInfo_p19}

\item 
int {\bf m\_\-max\-Slaves}\label{classKProtocolInfo_p20}

\end{CompactItemize}
\subsection*{Friends}
\begin{CompactItemize}
\item 
class {\bf KProtocol\-Info\-Factory}\label{classKProtocolInfo_n0}

\end{CompactItemize}
\subsection*{Classes}
\begin{CompactItemize}
\item 
struct {\bf Extra\-Field}
\begin{CompactList}\small\item\em Definition of an extra field in the UDS entries, returned by a list\-Dir operation. \item\end{CompactList}\end{CompactItemize}


\subsection{Detailed Description}
Information about I/O (Internet, etc.) protocols supported by {\bf KDE}. 

This class is useful if you want to know which protocols {\bf KDE} supports. In addition you can find out lots of information about a certain protocol. A KProtocol\-Info instance represents a single protocol. Most of the functionality is provided by the static methods that scan the $\ast$.protocol files of all installed kioslaves to get this information.

$\ast$.protocol files are installed in the \char`\"{}services\char`\"{} resource.

\begin{Desc}
\item[Author:]Torben Weis $<${\tt weis@kde.org}$>$ \end{Desc}




Definition at line 44 of file kprotocolinfo.h.

\subsection{Member Enumeration Documentation}
\index{KProtocolInfo@{KProtocol\-Info}!Type@{Type}}
\index{Type@{Type}!KProtocolInfo@{KProtocol\-Info}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}enum {\bf KProtocol\-Info::Type}}\label{classKProtocolInfo_w8}


Describes the type of a protocol. 

\begin{Desc}
\item[Enumeration values: ]\par
\begin{description}
\index{T_STREAM@{T\_\-STREAM}!KProtocolInfo@{KProtocolInfo}}\index{KProtocolInfo@{KProtocolInfo}!T_STREAM@{T\_\-STREAM}}\item[{\em 
T\_\-STREAM\label{classKProtocolInfo_w8w2}
}]protocol returns a stream \index{T_FILESYSTEM@{T\_\-FILESYSTEM}!KProtocolInfo@{KProtocolInfo}}\index{KProtocolInfo@{KProtocolInfo}!T_FILESYSTEM@{T\_\-FILESYSTEM}}\item[{\em 
T\_\-FILESYSTEM\label{classKProtocolInfo_w8w3}
}]protocol describes location in a file system \index{T_NONE@{T\_\-NONE}!KProtocolInfo@{KProtocolInfo}}\index{KProtocolInfo@{KProtocolInfo}!T_NONE@{T\_\-NONE}}\item[{\em 
T\_\-NONE\label{classKProtocolInfo_w8w4}
}]no information about the tyope available \index{T_ERROR@{T\_\-ERROR}!KProtocolInfo@{KProtocolInfo}}\index{KProtocolInfo@{KProtocolInfo}!T_ERROR@{T\_\-ERROR}}\item[{\em 
T\_\-ERROR\label{classKProtocolInfo_w8w5}
}]used to signal an error \end{description}
\end{Desc}



Definition at line 117 of file kprotocolinfo.h.

\subsection{Constructor \& Destructor Documentation}
\index{KProtocolInfo@{KProtocol\-Info}!KProtocolInfo@{KProtocolInfo}}
\index{KProtocolInfo@{KProtocolInfo}!KProtocolInfo@{KProtocol\-Info}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}KProtocol\-Info::KProtocol\-Info (const {\bf QString} \& {\em path})}\label{classKProtocolInfo_a0}


Read a protocol description file. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em path}]the path of the description file \end{description}
\end{Desc}


\subsection{Member Function Documentation}
\index{KProtocolInfo@{KProtocol\-Info}!isValid@{isValid}}
\index{isValid@{isValid}!KProtocolInfo@{KProtocol\-Info}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}virtual bool KProtocol\-Info::is\-Valid () const\hspace{0.3cm}{\tt  [inline, virtual]}}\label{classKProtocolInfo_a1}


Returns whether the protocol description file is valid. 

\begin{Desc}
\item[Returns:]true if valid, false otherwise \end{Desc}


Implements {\bf KSycoca\-Entry}.

Definition at line 64 of file kprotocolinfo.h.\index{KProtocolInfo@{KProtocol\-Info}!name@{name}}
\index{name@{name}!KProtocolInfo@{KProtocol\-Info}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}virtual {\bf QString} KProtocol\-Info::name () const\hspace{0.3cm}{\tt  [inline, virtual]}}\label{classKProtocolInfo_a2}


Returns the name of the protocol. 

This corresponds to the \char`\"{}protocol=\char`\"{} field in the protocol description file.

\begin{Desc}
\item[Returns:]the name of the protocol \end{Desc}
\begin{Desc}
\item[See also:]{\bf KURL::protocol()} \end{Desc}


Implements {\bf KSycoca\-Entry}.

Definition at line 74 of file kprotocolinfo.h.\index{KProtocolInfo@{KProtocol\-Info}!protocols@{protocols}}
\index{protocols@{protocols}!KProtocolInfo@{KProtocol\-Info}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}static {\bf QString\-List} KProtocol\-Info::protocols ()\hspace{0.3cm}{\tt  [static]}}\label{classKProtocolInfo_e0}


Returns list of all known protocols. 

\begin{Desc}
\item[Returns:]a list of all known protocols \end{Desc}
\index{KProtocolInfo@{KProtocol\-Info}!isKnownProtocol@{isKnownProtocol}}
\index{isKnownProtocol@{isKnownProtocol}!KProtocolInfo@{KProtocol\-Info}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}bool KProtocol\-Info::is\-Known\-Protocol (const {\bf KURL} \& {\em url})\hspace{0.3cm}{\tt  [static]}}\label{classKProtocolInfo_e1}


Returns whether a protocol is installed that is able to handle {\tt url}. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em url}]the url to check \end{description}
\end{Desc}
\begin{Desc}
\item[Returns:]true if the protocol is known \end{Desc}
\begin{Desc}
\item[See also:]{\bf name()}{\rm (p.\,\pageref{classKProtocolInfo_a2})} \end{Desc}


Definition at line 109 of file kprotocolinfo.cpp.

Referenced by KURLBar::read\-Item().\index{KProtocolInfo@{KProtocol\-Info}!isKnownProtocol@{isKnownProtocol}}
\index{isKnownProtocol@{isKnownProtocol}!KProtocolInfo@{KProtocol\-Info}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}bool KProtocol\-Info::is\-Known\-Protocol (const {\bf QString} \& {\em protocol})\hspace{0.3cm}{\tt  [static]}}\label{classKProtocolInfo_e2}


Same as above except you can supply just the protocol instead of the whole URL. 



Definition at line 114 of file kprotocolinfo.cpp.

References KProtocol\-Info\-Factory::find\-Protocol(), and KProtocol\-Info\-Factory::self().\index{KProtocolInfo@{KProtocol\-Info}!exec@{exec}}
\index{exec@{exec}!KProtocolInfo@{KProtocol\-Info}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}static {\bf QString} KProtocol\-Info::exec (const {\bf QString} \& {\em protocol})\hspace{0.3cm}{\tt  [static]}}\label{classKProtocolInfo_e3}


Returns the library / executable to open for the protocol {\tt protocol} Example : \char`\"{}kio\_\-ftp\char`\"{}, meaning either the executable \char`\"{}kio\_\-ftp\char`\"{} or the library \char`\"{}kio\_\-ftp.la\char`\"{} (recommended), whichever is available. 

This corresponds to the \char`\"{}exec=\char`\"{} field in the protocol description file. \begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em protocol}]the protocol to check \end{description}
\end{Desc}
\begin{Desc}
\item[Returns:]the executable of library to open, or QString::null for unsupported protocols \end{Desc}
\begin{Desc}
\item[See also:]{\bf KURL::protocol()} \end{Desc}
\index{KProtocolInfo@{KProtocol\-Info}!inputType@{inputType}}
\index{inputType@{inputType}!KProtocolInfo@{KProtocol\-Info}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf KProtocol\-Info::Type} KProtocol\-Info::input\-Type (const {\bf KURL} \& {\em url})\hspace{0.3cm}{\tt  [static]}}\label{classKProtocolInfo_e4}


Returns whether the protocol should be treated as a filesystem or as a stream when reading from it. 

This corresponds to the \char`\"{}input=\char`\"{} field in the protocol description file. Valid values for this field are \char`\"{}filesystem\char`\"{}, \char`\"{}stream\char`\"{} or \char`\"{}none\char`\"{} (default).

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em url}]the url to check \end{description}
\end{Desc}
\begin{Desc}
\item[Returns:]the input type of the given {\tt url} \end{Desc}


Definition at line 51 of file kprotocolinfo.cpp.

References T\_\-NONE.\index{KProtocolInfo@{KProtocol\-Info}!outputType@{outputType}}
\index{outputType@{outputType}!KProtocolInfo@{KProtocol\-Info}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf KProtocol\-Info::Type} KProtocol\-Info::output\-Type (const {\bf KURL} \& {\em url})\hspace{0.3cm}{\tt  [static]}}\label{classKProtocolInfo_e5}


Returns whether the protocol should be treated as a filesystem or as a stream when writing to it. 

This corresponds to the \char`\"{}output=\char`\"{} field in the protocol description file. Valid values for this field are \char`\"{}filesystem\char`\"{}, \char`\"{}stream\char`\"{} or \char`\"{}none\char`\"{} (default).

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em url}]the url to check \end{description}
\end{Desc}
\begin{Desc}
\item[Returns:]the output type of the given {\tt url} \end{Desc}


Definition at line 60 of file kprotocolinfo.cpp.

References T\_\-NONE.\index{KProtocolInfo@{KProtocol\-Info}!listing@{listing}}
\index{listing@{listing}!KProtocolInfo@{KProtocol\-Info}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf QString\-List} KProtocol\-Info::listing (const {\bf KURL} \& {\em url})\hspace{0.3cm}{\tt  [static]}}\label{classKProtocolInfo_e6}


Returns the list of fields this protocol returns when listing The current possibilities are Name, Type, Size, Date, Access\-Date, Access, Owner, Group, Link, URL, Mime\-Type as well as Extra1, Extra2 etc. 

for extra fields (see extra\-Fields).

This corresponds to the \char`\"{}listing=\char`\"{} field in the protocol description file. The supported fields should be separated with ',' in the protocol description file.

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em url}]the url to check \end{description}
\end{Desc}
\begin{Desc}
\item[Returns:]a list of field names \end{Desc}


Definition at line 130 of file kprotocolinfo.cpp.\index{KProtocolInfo@{KProtocol\-Info}!extraFields@{extraFields}}
\index{extraFields@{extraFields}!KProtocolInfo@{KProtocol\-Info}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}static {\bf Extra\-Field\-List} KProtocol\-Info::extra\-Fields (const {\bf KURL} \& {\em url})\hspace{0.3cm}{\tt  [static]}}\label{classKProtocolInfo_e7}


Definition of extra fields in the UDS entries, returned by a list\-Dir operation. 

This corresponds to the \char`\"{}Extra\-Names=\char`\"{} and \char`\"{}Extra\-Types=\char`\"{} fields in the protocol description file. Those two lists should be separated with ',' in the protocol description file. See {\bf Extra\-Field}{\rm (p.\,\pageref{structKProtocolInfo_1_1ExtraField})} for details about names and types

\begin{Desc}
\item[Since:]3.2 \end{Desc}
\index{KProtocolInfo@{KProtocol\-Info}!isSourceProtocol@{isSourceProtocol}}
\index{isSourceProtocol@{isSourceProtocol}!KProtocolInfo@{KProtocol\-Info}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}bool KProtocol\-Info::is\-Source\-Protocol (const {\bf KURL} \& {\em url})\hspace{0.3cm}{\tt  [static]}}\label{classKProtocolInfo_e8}


Returns whether the protocol can act as a source protocol. 

A source protocol retrieves data from or stores data to the location specified by a URL. A source protocol is the opposite of a filter protocol.

The \char`\"{}source=\char`\"{} field in the protocol description file determines whether a protocol is a source protocol or a filter protocol. \begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em url}]the url to check \end{description}
\end{Desc}
\begin{Desc}
\item[Returns:]true if the protocol is a source of data (e.g. http), false if the protocol is a filter (e.g. gzip) \end{Desc}


Definition at line 70 of file kprotocolinfo.cpp.\index{KProtocolInfo@{KProtocol\-Info}!isHelperProtocol@{isHelperProtocol}}
\index{isHelperProtocol@{isHelperProtocol}!KProtocolInfo@{KProtocol\-Info}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}bool KProtocol\-Info::is\-Helper\-Protocol (const {\bf KURL} \& {\em url})\hspace{0.3cm}{\tt  [static]}}\label{classKProtocolInfo_e9}


Returns whether the protocol can act as a helper protocol. 

A helper protocol invokes an external application and does not return a file or stream.

This corresponds to the \char`\"{}helper=\char`\"{} field in the protocol description file. Valid values for this field are \char`\"{}true\char`\"{} or \char`\"{}false\char`\"{} (default).

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em url}]the url to check \end{description}
\end{Desc}
\begin{Desc}
\item[Returns:]true if the protocol is a helper protocol (e.g. vnc), false if not (e.g. http) \end{Desc}


Definition at line 94 of file kprotocolinfo.cpp.

Referenced by KRun::process\-Desktop\-Exec().\index{KProtocolInfo@{KProtocol\-Info}!isHelperProtocol@{isHelperProtocol}}
\index{isHelperProtocol@{isHelperProtocol}!KProtocolInfo@{KProtocol\-Info}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}bool KProtocol\-Info::is\-Helper\-Protocol (const {\bf QString} \& {\em protocol})\hspace{0.3cm}{\tt  [static]}}\label{classKProtocolInfo_e10}


Same as above except you can supply just the protocol instead of the whole URL. 



Definition at line 99 of file kprotocolinfo.cpp.

References KProtocol\-Info\-Factory::find\-Protocol(), and KProtocol\-Info\-Factory::self().\index{KProtocolInfo@{KProtocol\-Info}!isFilterProtocol@{isFilterProtocol}}
\index{isFilterProtocol@{isFilterProtocol}!KProtocolInfo@{KProtocol\-Info}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}bool KProtocol\-Info::is\-Filter\-Protocol (const {\bf KURL} \& {\em url})\hspace{0.3cm}{\tt  [static]}}\label{classKProtocolInfo_e11}


Returns whether the protocol can act as a filter protocol. 

A filter protocol can operate on data that is passed to it but does not retrieve/store data itself, like gzip. A filter protocol is the opposite of a source protocol.

The \char`\"{}source=\char`\"{} field in the protocol description file determines whether a protocol is a source protocol or a filter protocol. Valid values for this field are \char`\"{}true\char`\"{} (default) for source protocol or \char`\"{}false\char`\"{} for filter protocol.

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em url}]the url to check \end{description}
\end{Desc}
\begin{Desc}
\item[Returns:]true if the protocol is a filter (e.g. gzip), false if the protocol is a helper or source \end{Desc}


Definition at line 79 of file kprotocolinfo.cpp.\index{KProtocolInfo@{KProtocol\-Info}!isFilterProtocol@{isFilterProtocol}}
\index{isFilterProtocol@{isFilterProtocol}!KProtocolInfo@{KProtocol\-Info}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}bool KProtocol\-Info::is\-Filter\-Protocol (const {\bf QString} \& {\em protocol})\hspace{0.3cm}{\tt  [static]}}\label{classKProtocolInfo_e12}


Same as above except you can supply just the protocol instead of the whole URL. 



Definition at line 84 of file kprotocolinfo.cpp.

References KProtocol\-Info\-Factory::find\-Protocol(), and KProtocol\-Info\-Factory::self().\index{KProtocolInfo@{KProtocol\-Info}!supportsListing@{supportsListing}}
\index{supportsListing@{supportsListing}!KProtocolInfo@{KProtocol\-Info}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}bool KProtocol\-Info::supports\-Listing (const {\bf KURL} \& {\em url})\hspace{0.3cm}{\tt  [static]}}\label{classKProtocolInfo_e13}


Returns whether the protocol can list files/objects. 

If a protocol supports listing it can be browsed in e.g. file-dialogs and konqueror.

Whether a protocol supports listing is determined by the \char`\"{}listing=\char`\"{} field in the protocol description file. If the protocol support listing it should list the fields it provides in this field. If the protocol does not support listing this field should remain empty (default.)

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em url}]the url to check \end{description}
\end{Desc}
\begin{Desc}
\item[Returns:]true if the protocol support listing \end{Desc}
\begin{Desc}
\item[See also:]{\bf listing()}{\rm (p.\,\pageref{classKProtocolInfo_e6})} \end{Desc}


Definition at line 121 of file kprotocolinfo.cpp.\index{KProtocolInfo@{KProtocol\-Info}!supportsReading@{supportsReading}}
\index{supportsReading@{supportsReading}!KProtocolInfo@{KProtocol\-Info}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}bool KProtocol\-Info::supports\-Reading (const {\bf KURL} \& {\em url})\hspace{0.3cm}{\tt  [static]}}\label{classKProtocolInfo_e14}


Returns whether the protocol can retrieve data from URLs. 

This corresponds to the \char`\"{}reading=\char`\"{} field in the protocol description file. Valid values for this field are \char`\"{}true\char`\"{} or \char`\"{}false\char`\"{} (default).

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em url}]the url to check \end{description}
\end{Desc}
\begin{Desc}
\item[Returns:]true if it is possible to read from the URL \end{Desc}


Definition at line 139 of file kprotocolinfo.cpp.\index{KProtocolInfo@{KProtocol\-Info}!supportsWriting@{supportsWriting}}
\index{supportsWriting@{supportsWriting}!KProtocolInfo@{KProtocol\-Info}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}bool KProtocol\-Info::supports\-Writing (const {\bf KURL} \& {\em url})\hspace{0.3cm}{\tt  [static]}}\label{classKProtocolInfo_e15}


Returns whether the protocol can store data to URLs. 

This corresponds to the \char`\"{}writing=\char`\"{} field in the protocol description file. Valid values for this field are \char`\"{}true\char`\"{} or \char`\"{}false\char`\"{} (default).

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em url}]the url to check \end{description}
\end{Desc}
\begin{Desc}
\item[Returns:]true if the protocol supports writing \end{Desc}


Definition at line 148 of file kprotocolinfo.cpp.\index{KProtocolInfo@{KProtocol\-Info}!supportsMakeDir@{supportsMakeDir}}
\index{supportsMakeDir@{supportsMakeDir}!KProtocolInfo@{KProtocol\-Info}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}bool KProtocol\-Info::supports\-Make\-Dir (const {\bf KURL} \& {\em url})\hspace{0.3cm}{\tt  [static]}}\label{classKProtocolInfo_e16}


Returns whether the protocol can create directories/folders. 

This corresponds to the \char`\"{}makedir=\char`\"{} field in the protocol description file. Valid values for this field are \char`\"{}true\char`\"{} or \char`\"{}false\char`\"{} (default).

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em url}]the url to check \end{description}
\end{Desc}
\begin{Desc}
\item[Returns:]true if the protocol can create directories \end{Desc}


Definition at line 157 of file kprotocolinfo.cpp.\index{KProtocolInfo@{KProtocol\-Info}!supportsDeleting@{supportsDeleting}}
\index{supportsDeleting@{supportsDeleting}!KProtocolInfo@{KProtocol\-Info}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}bool KProtocol\-Info::supports\-Deleting (const {\bf KURL} \& {\em url})\hspace{0.3cm}{\tt  [static]}}\label{classKProtocolInfo_e17}


Returns whether the protocol can delete files/objects. 

This corresponds to the \char`\"{}deleting=\char`\"{} field in the protocol description file. Valid values for this field are \char`\"{}true\char`\"{} or \char`\"{}false\char`\"{} (default).

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em url}]the url to check \end{description}
\end{Desc}
\begin{Desc}
\item[Returns:]true if the protocol supports deleting \end{Desc}


Definition at line 166 of file kprotocolinfo.cpp.\index{KProtocolInfo@{KProtocol\-Info}!supportsLinking@{supportsLinking}}
\index{supportsLinking@{supportsLinking}!KProtocolInfo@{KProtocol\-Info}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}bool KProtocol\-Info::supports\-Linking (const {\bf KURL} \& {\em url})\hspace{0.3cm}{\tt  [static]}}\label{classKProtocolInfo_e18}


Returns whether the protocol can create links between files/objects. 

This corresponds to the \char`\"{}linking=\char`\"{} field in the protocol description file. Valid values for this field are \char`\"{}true\char`\"{} or \char`\"{}false\char`\"{} (default).

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em url}]the url to check \end{description}
\end{Desc}
\begin{Desc}
\item[Returns:]true if the protocol supports linking \end{Desc}


Definition at line 175 of file kprotocolinfo.cpp.\index{KProtocolInfo@{KProtocol\-Info}!supportsMoving@{supportsMoving}}
\index{supportsMoving@{supportsMoving}!KProtocolInfo@{KProtocol\-Info}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}bool KProtocol\-Info::supports\-Moving (const {\bf KURL} \& {\em url})\hspace{0.3cm}{\tt  [static]}}\label{classKProtocolInfo_e19}


Returns whether the protocol can move files/objects between different locations. 

This corresponds to the \char`\"{}moving=\char`\"{} field in the protocol description file. Valid values for this field are \char`\"{}true\char`\"{} or \char`\"{}false\char`\"{} (default).

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em url}]the url to check \end{description}
\end{Desc}
\begin{Desc}
\item[Returns:]true if the protocol supports moving \end{Desc}


Definition at line 184 of file kprotocolinfo.cpp.\index{KProtocolInfo@{KProtocol\-Info}!canCopyFromFile@{canCopyFromFile}}
\index{canCopyFromFile@{canCopyFromFile}!KProtocolInfo@{KProtocol\-Info}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}bool KProtocol\-Info::can\-Copy\-From\-File (const {\bf KURL} \& {\em url})\hspace{0.3cm}{\tt  [static]}}\label{classKProtocolInfo_e20}


Returns whether the protocol can copy files/objects directly from the filesystem itself. 

If not, the application will read files from the filesystem using the file-protocol and pass the data on to the destination protocol.

This corresponds to the \char`\"{}copy\-From\-File=\char`\"{} field in the protocol description file. Valid values for this field are \char`\"{}true\char`\"{} or \char`\"{}false\char`\"{} (default).

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em url}]the url to check \end{description}
\end{Desc}
\begin{Desc}
\item[Returns:]true if the protocol can copy files from the local file system \end{Desc}


Definition at line 193 of file kprotocolinfo.cpp.\index{KProtocolInfo@{KProtocol\-Info}!canCopyToFile@{canCopyToFile}}
\index{canCopyToFile@{canCopyToFile}!KProtocolInfo@{KProtocol\-Info}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}bool KProtocol\-Info::can\-Copy\-To\-File (const {\bf KURL} \& {\em url})\hspace{0.3cm}{\tt  [static]}}\label{classKProtocolInfo_e21}


Returns whether the protocol can copy files/objects directly to the filesystem itself. 

If not, the application will receive the data from the source protocol and store it in the filesystem using the file-protocol.

This corresponds to the \char`\"{}copy\-To\-File=\char`\"{} field in the protocol description file. Valid values for this field are \char`\"{}true\char`\"{} or \char`\"{}false\char`\"{} (default).

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em url}]the url to check \end{description}
\end{Desc}
\begin{Desc}
\item[Returns:]true if the protocol can copy files to the local file system \end{Desc}


Definition at line 203 of file kprotocolinfo.cpp.\index{KProtocolInfo@{KProtocol\-Info}!canRenameFromFile@{canRenameFromFile}}
\index{canRenameFromFile@{canRenameFromFile}!KProtocolInfo@{KProtocol\-Info}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}bool KProtocol\-Info::can\-Rename\-From\-File (const {\bf KURL} \& {\em url})\hspace{0.3cm}{\tt  [static]}}\label{classKProtocolInfo_e22}


Returns whether the protocol can rename (i.e. 

move fast) files/objects directly from the filesystem itself. If not, the application will read files from the filesystem using the file-protocol and pass the data on to the destination protocol.

This corresponds to the \char`\"{}rename\-From\-File=\char`\"{} field in the protocol description file. Valid values for this field are \char`\"{}true\char`\"{} or \char`\"{}false\char`\"{} (default).

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em url}]the url to check \end{description}
\end{Desc}
\begin{Desc}
\item[Returns:]true if the protocol can rename/move files from the local file system \end{Desc}
\begin{Desc}
\item[Since:]3.4 \end{Desc}


Definition at line 212 of file kprotocolinfo.cpp.\index{KProtocolInfo@{KProtocol\-Info}!canRenameToFile@{canRenameToFile}}
\index{canRenameToFile@{canRenameToFile}!KProtocolInfo@{KProtocol\-Info}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}bool KProtocol\-Info::can\-Rename\-To\-File (const {\bf KURL} \& {\em url})\hspace{0.3cm}{\tt  [static]}}\label{classKProtocolInfo_e23}


Returns whether the protocol can rename (i.e. 

move fast) files/objects directly to the filesystem itself. If not, the application will receive the data from the source protocol and store it in the filesystem using the file-protocol.

This corresponds to the \char`\"{}rename\-To\-File=\char`\"{} field in the protocol description file. Valid values for this field are \char`\"{}true\char`\"{} or \char`\"{}false\char`\"{} (default).

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em url}]the url to check \end{description}
\end{Desc}
\begin{Desc}
\item[Returns:]true if the protocol can rename files to the local file system \end{Desc}
\begin{Desc}
\item[Since:]3.4 \end{Desc}


Definition at line 222 of file kprotocolinfo.cpp.\index{KProtocolInfo@{KProtocol\-Info}!canDeleteRecursive@{canDeleteRecursive}}
\index{canDeleteRecursive@{canDeleteRecursive}!KProtocolInfo@{KProtocol\-Info}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}bool KProtocol\-Info::can\-Delete\-Recursive (const {\bf KURL} \& {\em url})\hspace{0.3cm}{\tt  [static]}}\label{classKProtocolInfo_e24}


Returns whether the protocol can recursively delete directories by itself. 

If not (the usual case) then {\bf KIO}{\rm (p.\,\pageref{namespaceKIO})} will list the directory and delete files and empty directories one by one.

This corresponds to the \char`\"{}delete\-Recursive=\char`\"{} field in the protocol description file. Valid values for this field are \char`\"{}true\char`\"{} or \char`\"{}false\char`\"{} (default).

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em url}]the url to check \end{description}
\end{Desc}
\begin{Desc}
\item[Returns:]true if the protocol can delete non-empty directories by itself. \end{Desc}
\begin{Desc}
\item[Since:]3.4 \end{Desc}


Definition at line 231 of file kprotocolinfo.cpp.\index{KProtocolInfo@{KProtocol\-Info}!fileNameUsedForCopying@{fileNameUsedForCopying}}
\index{fileNameUsedForCopying@{fileNameUsedForCopying}!KProtocolInfo@{KProtocol\-Info}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}KProtocol\-Info::File\-Name\-Used\-For\-Copying KProtocol\-Info::file\-Name\-Used\-For\-Copying (const {\bf KURL} \& {\em url})\hspace{0.3cm}{\tt  [static]}}\label{classKProtocolInfo_e25}


This setting defines the strategy to use for generating a filename, when copying a file or directory to another directory. 

By default the destination filename is made out of the filename in the source URL. However if the ioslave displays names that are different from the filename of the URL (e.g. kio\_\-fonts shows Arial for arial.ttf, or kio\_\-trash shows foo.txt and uses some internal URL), using Name means that the display name (UDS\_\-NAME) will be used to as the filename in the destination directory.

This corresponds to the \char`\"{}file\-Name\-Used\-For\-Copying=\char`\"{} field in the protocol description file. Valid values for this field are \char`\"{}Name\char`\"{} or \char`\"{}From\-URL\char`\"{} (default).

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em url}]the url to check \end{description}
\end{Desc}
\begin{Desc}
\item[Returns:]how to generate the filename in the destination directory when copying/moving \end{Desc}
\begin{Desc}
\item[Since:]3.4 \end{Desc}


Definition at line 240 of file kprotocolinfo.cpp.\index{KProtocolInfo@{KProtocol\-Info}!defaultMimetype@{defaultMimetype}}
\index{defaultMimetype@{defaultMimetype}!KProtocolInfo@{KProtocol\-Info}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf QString} KProtocol\-Info::default\-Mimetype (const {\bf KURL} \& {\em url})\hspace{0.3cm}{\tt  [static]}}\label{classKProtocolInfo_e26}


Returns default mimetype for this URL based on the protocol. 

This corresponds to the \char`\"{}default\-Mimetype=\char`\"{} field in the protocol description file.

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em url}]the url to check \end{description}
\end{Desc}
\begin{Desc}
\item[Returns:]the default mime type of the protocol, or null if unknown \end{Desc}


Definition at line 249 of file kprotocolinfo.cpp.

Referenced by KMime\-Type::find\-By\-URL().\index{KProtocolInfo@{KProtocol\-Info}!icon@{icon}}
\index{icon@{icon}!KProtocolInfo@{KProtocol\-Info}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}static {\bf QString} KProtocol\-Info::icon (const {\bf QString} \& {\em protocol})\hspace{0.3cm}{\tt  [static]}}\label{classKProtocolInfo_e27}


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

This corresponds to the \char`\"{}Icon=\char`\"{} field in the protocol description file.

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em protocol}]the protocol to check \end{description}
\end{Desc}
\begin{Desc}
\item[Returns:]the icon of the protocol, or null if unknown \end{Desc}


Referenced by KMime\-Type::icon\-For\-URL().\index{KProtocolInfo@{KProtocol\-Info}!config@{config}}
\index{config@{config}!KProtocolInfo@{KProtocol\-Info}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}static {\bf QString} KProtocol\-Info::config (const {\bf QString} \& {\em protocol})\hspace{0.3cm}{\tt  [static]}}\label{classKProtocolInfo_e28}


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

This is useful if two similar protocols need to share a single config file, e.g. http and https.

This corresponds to the \char`\"{}config=\char`\"{} field in the protocol description file. The default is the protocol name, see {\bf name()}{\rm (p.\,\pageref{classKProtocolInfo_a2})}

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em protocol}]the protocol to check \end{description}
\end{Desc}
\begin{Desc}
\item[Returns:]the config file, or null if unknown \end{Desc}
\index{KProtocolInfo@{KProtocol\-Info}!maxSlaves@{maxSlaves}}
\index{maxSlaves@{maxSlaves}!KProtocolInfo@{KProtocol\-Info}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}static int KProtocol\-Info::max\-Slaves (const {\bf QString} \& {\em protocol})\hspace{0.3cm}{\tt  [static]}}\label{classKProtocolInfo_e29}


Returns the soft limit on the number of slaves for this protocol. 

This limits the number of slaves used for a single operation, note that multiple operations may result in a number of instances that exceeds this soft limit.

This corresponds to the \char`\"{}max\-Instances=\char`\"{} field in the protocol description file. The default is 1.

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em protocol}]the protocol to check \end{description}
\end{Desc}
\begin{Desc}
\item[Returns:]the maximum number of slaves, or 1 if unknown \end{Desc}
\index{KProtocolInfo@{KProtocol\-Info}!determineMimetypeFromExtension@{determineMimetypeFromExtension}}
\index{determineMimetypeFromExtension@{determineMimetypeFromExtension}!KProtocolInfo@{KProtocol\-Info}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}static bool KProtocol\-Info::determine\-Mimetype\-From\-Extension (const {\bf QString} \& {\em protocol})\hspace{0.3cm}{\tt  [static]}}\label{classKProtocolInfo_e30}


Returns whether mimetypes can be determined based on extension for this protocol. 

For some protocols, e.g. http, the filename extension in the URL can not be trusted to truly reflect the file type.

This corresponds to the \char`\"{}determine\-Mimetype\-From\-Extension=\char`\"{} field in the protocol description file. Valid values for this field are \char`\"{}true\char`\"{} (default) or \char`\"{}false\char`\"{}.

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em protocol}]the protocol to check \end{description}
\end{Desc}
\begin{Desc}
\item[Returns:]true if the mime types can be determined by extension \end{Desc}


Referenced by KMime\-Type::find\-By\-URL().\index{KProtocolInfo@{KProtocol\-Info}!docPath@{docPath}}
\index{docPath@{docPath}!KProtocolInfo@{KProtocol\-Info}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}static {\bf QString} KProtocol\-Info::doc\-Path (const {\bf QString} \& {\em protocol})\hspace{0.3cm}{\tt  [static]}}\label{classKProtocolInfo_e31}


Returns the documentation path for the specified protocol. 

This corresponds to the \char`\"{}Doc\-Path=\char`\"{} field in the protocol description file.

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em protocol}]the protocol to check \end{description}
\end{Desc}
\begin{Desc}
\item[Returns:]the docpath of the protocol, or null if unknown \end{Desc}
\begin{Desc}
\item[Since:]3.2 \end{Desc}
\index{KProtocolInfo@{KProtocol\-Info}!protocolClass@{protocolClass}}
\index{protocolClass@{protocolClass}!KProtocolInfo@{KProtocol\-Info}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}static {\bf QString} KProtocol\-Info::protocol\-Class (const {\bf QString} \& {\em protocol})\hspace{0.3cm}{\tt  [static]}}\label{classKProtocolInfo_e32}


Returns the protocol class for the specified protocol. 

This corresponds to the \char`\"{}Class=\char`\"{} field in the protocol description file.

The following classes are defined: \begin{itemize}
\item \char`\"{}:internet\char`\"{} for common internet protocols \item \char`\"{}:local\char`\"{} for protocols that access local resources\end{itemize}
Protocol classes always start with a ':' so that they can not be confused with the protocols themselves.

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em protocol}]the protocol to check \end{description}
\end{Desc}
\begin{Desc}
\item[Returns:]the class of the protocol, or null if unknown \end{Desc}
\begin{Desc}
\item[Since:]3.2 \end{Desc}


Referenced by KIO::Forwarding\-Slave\-Base::prepare\-UDSEntry().\index{KProtocolInfo@{KProtocol\-Info}!showFilePreview@{showFilePreview}}
\index{showFilePreview@{showFilePreview}!KProtocolInfo@{KProtocol\-Info}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}static bool KProtocol\-Info::show\-File\-Preview (const {\bf QString} \& {\em protocol})\hspace{0.3cm}{\tt  [static]}}\label{classKProtocolInfo_e33}


Returns whether file previews should be shown for the specified protocol. 

This corresponds to the \char`\"{}Show\-Previews=\char`\"{} field in the protocol description file.

By default previews are shown if protocol\-Class is :local.

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em protocol}]the protocol to check \end{description}
\end{Desc}
\begin{Desc}
\item[Returns:]true if previews should be shown by default, false otherwise \end{Desc}
\begin{Desc}
\item[Since:]3.2 \end{Desc}
\index{KProtocolInfo@{KProtocol\-Info}!uriParseMode@{uriParseMode}}
\index{uriParseMode@{uriParseMode}!KProtocolInfo@{KProtocol\-Info}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}static {\bf KURL::URIMode} KProtocol\-Info::uri\-Parse\-Mode (const {\bf QString} \& {\em protocol})\hspace{0.3cm}{\tt  [static]}}\label{classKProtocolInfo_e34}


Returns the suggested URI parsing mode for the {\bf KURL} parser. 

This corresponds to the \char`\"{}URIMode=\char`\"{} field in the protocol description file.

The following parsing modes are defined: \begin{itemize}
\item \char`\"{}url\char`\"{} for a standards compliant URL \item \char`\"{}rawuri\char`\"{} for a non-conformant URI for which URL parsing would be meaningless \item \char`\"{}mailto\char`\"{} for a mailto style URI (the path part contains only an email address)\end{itemize}
\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em protocol}]the protocol to check \end{description}
\end{Desc}
\begin{Desc}
\item[Returns:]the suggested parsing mode, or {\bf KURL::Auto} if unspecified\end{Desc}
\begin{Desc}
\item[Since:]3.2 \end{Desc}
\index{KProtocolInfo@{KProtocol\-Info}!capabilities@{capabilities}}
\index{capabilities@{capabilities}!KProtocolInfo@{KProtocol\-Info}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}static {\bf QString\-List} KProtocol\-Info::capabilities (const {\bf QString} \& {\em protocol})\hspace{0.3cm}{\tt  [static]}}\label{classKProtocolInfo_e35}


Returns the list of capabilities provided by the kioslave implementing this protocol. 

This corresponds to the \char`\"{}Capabilities=\char`\"{} field in the protocol description file.

The capability names are not defined globally, they are up to each slave implementation. For example when adding support for a new special command for mounting, one would add the string \char`\"{}Mount\char`\"{} to the capabilities list, and applications could check for that string before sending a special() command that would otherwise do nothing on older kioslave implementations.

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em protocol}]the protocol to check \end{description}
\end{Desc}
\begin{Desc}
\item[Returns:]the list of capabilities.\end{Desc}
\begin{Desc}
\item[Since:]3.3 \end{Desc}
\index{KProtocolInfo@{KProtocol\-Info}!proxiedBy@{proxiedBy}}
\index{proxiedBy@{proxiedBy}!KProtocolInfo@{KProtocol\-Info}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}static {\bf QString} KProtocol\-Info::proxied\-By (const {\bf QString} \& {\em protocol})\hspace{0.3cm}{\tt  [static]}}\label{classKProtocolInfo_e36}


Returns the name of the protocol through which the request will be routed if proxy support is enabled. 

A good example of this is the ftp protocol for which proxy support is commonly handled by the http protocol.

This corresponds to the \char`\"{}Proxied\-By=\char`\"{} in the protocol description file.

\begin{Desc}
\item[Since:]3.3 \end{Desc}
\index{KProtocolInfo@{KProtocol\-Info}!inputType@{inputType}}
\index{inputType@{inputType}!KProtocolInfo@{KProtocol\-Info}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}static {\bf Type} KProtocol\-Info::input\-Type (const {\bf QString} \& {\em protocol})\hspace{0.3cm}{\tt  [static]}}\label{classKProtocolInfo_e37}


\begin{Desc}
\item[{\bf Deprecated}]\end{Desc}
\index{KProtocolInfo@{KProtocol\-Info}!outputType@{outputType}}
\index{outputType@{outputType}!KProtocolInfo@{KProtocol\-Info}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}static {\bf Type} KProtocol\-Info::output\-Type (const {\bf QString} \& {\em protocol})\hspace{0.3cm}{\tt  [static]}}\label{classKProtocolInfo_e38}


\begin{Desc}
\item[{\bf Deprecated}]\end{Desc}
\index{KProtocolInfo@{KProtocol\-Info}!listing@{listing}}
\index{listing@{listing}!KProtocolInfo@{KProtocol\-Info}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}static {\bf QString\-List} KProtocol\-Info::listing (const {\bf QString} \& {\em protocol})\hspace{0.3cm}{\tt  [static]}}\label{classKProtocolInfo_e39}


\begin{Desc}
\item[{\bf Deprecated}]Returns the list of fields this protocol returns when listing The current possibilities are Name, Type, Size, Date, Access\-Date, Access, Owner, Group, Link, URL, Mime\-Type \end{Desc}
\index{KProtocolInfo@{KProtocol\-Info}!isSourceProtocol@{isSourceProtocol}}
\index{isSourceProtocol@{isSourceProtocol}!KProtocolInfo@{KProtocol\-Info}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}static bool KProtocol\-Info::is\-Source\-Protocol (const {\bf QString} \& {\em protocol})\hspace{0.3cm}{\tt  [static]}}\label{classKProtocolInfo_e40}


\begin{Desc}
\item[{\bf Deprecated}]\end{Desc}
\index{KProtocolInfo@{KProtocol\-Info}!supportsListing@{supportsListing}}
\index{supportsListing@{supportsListing}!KProtocolInfo@{KProtocol\-Info}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}static bool KProtocol\-Info::supports\-Listing (const {\bf QString} \& {\em protocol})\hspace{0.3cm}{\tt  [static]}}\label{classKProtocolInfo_e41}


\begin{Desc}
\item[{\bf Deprecated}]\end{Desc}
\index{KProtocolInfo@{KProtocol\-Info}!supportsReading@{supportsReading}}
\index{supportsReading@{supportsReading}!KProtocolInfo@{KProtocol\-Info}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}static bool KProtocol\-Info::supports\-Reading (const {\bf QString} \& {\em protocol})\hspace{0.3cm}{\tt  [static]}}\label{classKProtocolInfo_e42}


\begin{Desc}
\item[{\bf Deprecated}]\end{Desc}
\index{KProtocolInfo@{KProtocol\-Info}!supportsWriting@{supportsWriting}}
\index{supportsWriting@{supportsWriting}!KProtocolInfo@{KProtocol\-Info}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}static bool KProtocol\-Info::supports\-Writing (const {\bf QString} \& {\em protocol})\hspace{0.3cm}{\tt  [static]}}\label{classKProtocolInfo_e43}


\begin{Desc}
\item[{\bf Deprecated}]\end{Desc}
\index{KProtocolInfo@{KProtocol\-Info}!supportsMakeDir@{supportsMakeDir}}
\index{supportsMakeDir@{supportsMakeDir}!KProtocolInfo@{KProtocol\-Info}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}static bool KProtocol\-Info::supports\-Make\-Dir (const {\bf QString} \& {\em protocol})\hspace{0.3cm}{\tt  [static]}}\label{classKProtocolInfo_e44}


\begin{Desc}
\item[{\bf Deprecated}]\end{Desc}
\index{KProtocolInfo@{KProtocol\-Info}!supportsDeleting@{supportsDeleting}}
\index{supportsDeleting@{supportsDeleting}!KProtocolInfo@{KProtocol\-Info}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}static bool KProtocol\-Info::supports\-Deleting (const {\bf QString} \& {\em protocol})\hspace{0.3cm}{\tt  [static]}}\label{classKProtocolInfo_e45}


\begin{Desc}
\item[{\bf Deprecated}]\end{Desc}
\index{KProtocolInfo@{KProtocol\-Info}!supportsLinking@{supportsLinking}}
\index{supportsLinking@{supportsLinking}!KProtocolInfo@{KProtocol\-Info}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}static bool KProtocol\-Info::supports\-Linking (const {\bf QString} \& {\em protocol})\hspace{0.3cm}{\tt  [static]}}\label{classKProtocolInfo_e46}


\begin{Desc}
\item[{\bf Deprecated}]\end{Desc}
\index{KProtocolInfo@{KProtocol\-Info}!supportsMoving@{supportsMoving}}
\index{supportsMoving@{supportsMoving}!KProtocolInfo@{KProtocol\-Info}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}static bool KProtocol\-Info::supports\-Moving (const {\bf QString} \& {\em protocol})\hspace{0.3cm}{\tt  [static]}}\label{classKProtocolInfo_e47}


\begin{Desc}
\item[{\bf Deprecated}]\end{Desc}
\index{KProtocolInfo@{KProtocol\-Info}!canCopyFromFile@{canCopyFromFile}}
\index{canCopyFromFile@{canCopyFromFile}!KProtocolInfo@{KProtocol\-Info}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}static bool KProtocol\-Info::can\-Copy\-From\-File (const {\bf QString} \& {\em protocol})\hspace{0.3cm}{\tt  [static]}}\label{classKProtocolInfo_e48}


\begin{Desc}
\item[{\bf Deprecated}]\end{Desc}
\index{KProtocolInfo@{KProtocol\-Info}!canCopyToFile@{canCopyToFile}}
\index{canCopyToFile@{canCopyToFile}!KProtocolInfo@{KProtocol\-Info}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}static bool KProtocol\-Info::can\-Copy\-To\-File (const {\bf QString} \& {\em protocol})\hspace{0.3cm}{\tt  [static]}}\label{classKProtocolInfo_e49}


\begin{Desc}
\item[{\bf Deprecated}]\end{Desc}
\index{KProtocolInfo@{KProtocol\-Info}!defaultMimetype@{defaultMimetype}}
\index{defaultMimetype@{defaultMimetype}!KProtocolInfo@{KProtocol\-Info}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}static {\bf QString} KProtocol\-Info::default\-Mimetype (const {\bf QString} \& {\em protocol})\hspace{0.3cm}{\tt  [static]}}\label{classKProtocolInfo_e50}


\begin{Desc}
\item[{\bf Deprecated}]\end{Desc}


The documentation for this class was generated from the following files:\begin{CompactItemize}
\item 
kprotocolinfo.h\item 
kprotocolinfo.cpp\end{CompactItemize}
