\section{KSycoca\-Entry Class Reference}
\label{classKSycocaEntry}\index{KSycocaEntry@{KSycocaEntry}}
Base class for all Sycoca entries.  


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

Inheritance diagram for KSycoca\-Entry:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=241pt]{classKSycocaEntry__inherit__graph}
\end{center}
\end{figure}
Collaboration diagram for KSycoca\-Entry:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=81pt]{classKSycocaEntry__coll__graph}
\end{center}
\end{figure}
\subsection*{Public Types}
\begin{CompactItemize}
\item 
typedef {\bf KShared\-Ptr}$<$ {\bf KSycoca\-Entry} $>$ {\bf Ptr}\label{classKSycocaEntry_w0}

\item 
typedef {\bf QValue\-List}$<$ {\bf Ptr} $>$ {\bf List}\label{classKSycocaEntry_w1}

\end{CompactItemize}
\subsection*{Public Member Functions}
\begin{CompactItemize}
\item 
virtual bool {\bf is\-Type} ({\bf KSycoca\-Type} t) const \label{classKSycocaEntry_a0}

\item 
virtual {\bf KSycoca\-Type} {\bf sycoca\-Type} () const \label{classKSycocaEntry_a1}

\item 
{\bf KSycoca\-Entry} (const {\bf QString} \&path)
\item 
{\bf KSycoca\-Entry} ({\bf QData\-Stream} \&\_\-str, int offset)\label{classKSycocaEntry_a3}

\item 
virtual {\bf QString} {\bf name} () const =0
\item 
{\bf QString} {\bf entry\-Path} () const 
\item 
virtual bool {\bf is\-Valid} () const =0
\item 
virtual bool {\bf is\-Deleted} () const 
\item 
int {\bf offset} ()\label{classKSycocaEntry_a8}

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

\item 
virtual void {\bf load} ({\bf QData\-Stream} \&)=0\label{classKSycocaEntry_a10}

\end{CompactItemize}
\subsection*{Static Public Member Functions}
\begin{CompactItemize}
\item 
static void {\bf read} ({\bf QData\-Stream} \&s, {\bf QString} \&str)
\item 
static void {\bf read} ({\bf QData\-Stream} \&s, {\bf QString\-List} \&list)\label{classKSycocaEntry_e1}

\end{CompactItemize}
\subsection*{Protected Member Functions}
\begin{CompactItemize}
\item 
virtual void {\bf virtual\_\-hook} (int id, void $\ast$data)\label{classKSycocaEntry_b0}

\end{CompactItemize}
\subsection*{Protected Attributes}
\begin{CompactItemize}
\item 
bool {\bf m\_\-b\-Deleted}\label{classKSycocaEntry_p0}

\item 
{\bf QString} {\bf m\-Path}\label{classKSycocaEntry_p1}

\end{CompactItemize}
\subsection*{Related Functions}
(Note that these are not member functions.) \begin{CompactItemize}
\item 
enum {\bf KSycoca\-Type} \{ \par
{\bf KST\_\-KSycoca\-Entry} =  0, 
{\bf KST\_\-KService} =  1, 
{\bf KST\_\-KService\-Type} =  2, 
{\bf KST\_\-KMime\-Type} =  3, 
\par
{\bf KST\_\-KFolder\-Type} =  4, 
{\bf KST\_\-KDEDesktop\-Mime\-Type} =  5, 
{\bf KST\_\-KExec\-Mime\-Type} =  6, 
{\bf KST\_\-KService\-Group} =  7, 
\par
{\bf KST\_\-KImage\-IOFormat} =  8, 
{\bf KST\_\-KProtocol\-Info} =  9, 
{\bf KST\_\-KService\-Separator} =  10, 
{\bf KST\_\-KCustom} =  1000
 \}
\end{CompactItemize}


\subsection{Detailed Description}
Base class for all Sycoca entries. 

You can't create an instance of KSycoca\-Entry, but it provides the common functionality for servicetypes and services. 



Definition at line 37 of file ksycocaentry.h.

\subsection{Constructor \& Destructor Documentation}
\index{KSycocaEntry@{KSycoca\-Entry}!KSycocaEntry@{KSycocaEntry}}
\index{KSycocaEntry@{KSycocaEntry}!KSycocaEntry@{KSycoca\-Entry}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}KSycoca\-Entry::KSycoca\-Entry (const {\bf QString} \& {\em path})\hspace{0.3cm}{\tt  [inline]}}\label{classKSycocaEntry_a2}


Default constructor. 



Definition at line 51 of file ksycocaentry.h.

\subsection{Member Function Documentation}
\index{KSycocaEntry@{KSycoca\-Entry}!read@{read}}
\index{read@{read}!KSycocaEntry@{KSycoca\-Entry}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KSycoca\-Entry::read ({\bf QData\-Stream} \& {\em s}, {\bf QString} \& {\em str})\hspace{0.3cm}{\tt  [static]}}\label{classKSycocaEntry_e0}


Safe demarshalling functions. 



Definition at line 459 of file ksycoca.cpp.

References QString::set\-Length(), and QString::unicode().\index{KSycocaEntry@{KSycoca\-Entry}!name@{name}}
\index{name@{name}!KSycocaEntry@{KSycoca\-Entry}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}virtual {\bf QString} KSycoca\-Entry::name () const\hspace{0.3cm}{\tt  [pure virtual]}}\label{classKSycocaEntry_a4}


\begin{Desc}
\item[Returns:]the name of this entry \end{Desc}


Implemented in {\bf KProtocol\-Info}, {\bf KService}, {\bf KService\-Group}, and {\bf KService\-Type}.\index{KSycocaEntry@{KSycoca\-Entry}!entryPath@{entryPath}}
\index{entryPath@{entryPath}!KSycocaEntry@{KSycoca\-Entry}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf QString} KSycoca\-Entry::entry\-Path () const\hspace{0.3cm}{\tt  [inline]}}\label{classKSycocaEntry_a5}


\begin{Desc}
\item[Returns:]the path of this entry The path can be absolute or relative. The corresponding factory should know relative to what. \end{Desc}


Definition at line 79 of file ksycocaentry.h.\index{KSycocaEntry@{KSycoca\-Entry}!isValid@{isValid}}
\index{isValid@{isValid}!KSycocaEntry@{KSycoca\-Entry}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}virtual bool KSycoca\-Entry::is\-Valid () const\hspace{0.3cm}{\tt  [pure virtual]}}\label{classKSycocaEntry_a6}


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


Implemented in {\bf KProtocol\-Info}, {\bf KService}, {\bf KService\-Group}, and {\bf KService\-Type}.\index{KSycocaEntry@{KSycoca\-Entry}!isDeleted@{isDeleted}}
\index{isDeleted@{isDeleted}!KSycocaEntry@{KSycoca\-Entry}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}virtual bool KSycoca\-Entry::is\-Deleted () const\hspace{0.3cm}{\tt  [inline, virtual]}}\label{classKSycocaEntry_a7}


\begin{Desc}
\item[Returns:]true if deleted \end{Desc}


Definition at line 89 of file ksycocaentry.h.

\subsection{Friends And Related Function Documentation}
\index{KSycocaEntry@{KSycoca\-Entry}!KSycocaType@{KSycocaType}}
\index{KSycocaType@{KSycocaType}!KSycocaEntry@{KSycoca\-Entry}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}enum {\bf KSycoca\-Type}\hspace{0.3cm}{\tt  [related]}}\label{classKSycocaEntry_m0}


A KSycoca\-Type is a code (out of the KSycoca\-Type enum) assigned to each class type derived from KSycoca\-Entry . 

To use it, call the macro K\_\-SYCOCATYPE( your\_\-typecode, parent\_\-class ) at the top of your class definition. 

Definition at line 31 of file ksycocatype.h.

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