\section{KShell\-Completion Class Reference}
\label{classKShellCompletion}\index{KShellCompletion@{KShellCompletion}}
This class does shell-like completion of file names. Shell-like completion of file names.  


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

Inheritance diagram for KShell\-Completion:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=65pt]{classKShellCompletion__inherit__graph}
\end{center}
\end{figure}
Collaboration diagram for KShell\-Completion:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=180pt]{classKShellCompletion__coll__graph}
\end{center}
\end{figure}
\subsection*{Public Member Functions}
\begin{CompactItemize}
\item 
{\bf KShell\-Completion} ()
\item 
{\bf QString} {\bf make\-Completion} (const {\bf QString} \&text)
\end{CompactItemize}
\subsection*{Protected Member Functions}
\begin{CompactItemize}
\item 
void {\bf post\-Process\-Match} ({\bf QString} $\ast${\bf match}) const \label{classKShellCompletion_b0}

\item 
void {\bf post\-Process\-Matches} ({\bf QString\-List} $\ast${\bf matches}) const \label{classKShellCompletion_b1}

\item 
void {\bf post\-Process\-Matches} ({\bf KCompletion\-Matches} $\ast${\bf matches}) const \label{classKShellCompletion_b2}

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

\end{CompactItemize}


\subsection{Detailed Description}
This class does shell-like completion of file names. Shell-like completion of file names. 

A string passed to {\bf make\-Completion()}{\rm (p.\,\pageref{classKShellCompletion_a1})} will be interpreted as a shell command line. Completion will be done on the last argument on the line. Returned matches consist of the first arguments (uncompleted) plus the completed last argument.

\begin{Desc}
\item[Author:]David Smith $<${\tt dsmith@algonet.se}$>$ \end{Desc}




Definition at line 40 of file kshellcompletion.h.

\subsection{Constructor \& Destructor Documentation}
\index{KShellCompletion@{KShell\-Completion}!KShellCompletion@{KShellCompletion}}
\index{KShellCompletion@{KShellCompletion}!KShellCompletion@{KShell\-Completion}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}KShell\-Completion::KShell\-Completion ()}\label{classKShellCompletion_a0}


Constructs a KShell\-Completion object. 



Definition at line 33 of file kshellcompletion.cpp.

\subsection{Member Function Documentation}
\index{KShellCompletion@{KShell\-Completion}!makeCompletion@{makeCompletion}}
\index{makeCompletion@{makeCompletion}!KShellCompletion@{KShell\-Completion}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf QString} KShell\-Completion::make\-Completion (const {\bf QString} \& {\em text})\hspace{0.3cm}{\tt  [virtual]}}\label{classKShellCompletion_a1}


Finds completions to the given text. 

The first match is returned and emitted in the signal {\bf match()}. \begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em text}]the text to complete \end{description}
\end{Desc}
\begin{Desc}
\item[Returns:]the first match, or QString::null if not found\end{Desc}


Reimplemented from {\bf KURLCompletion} {\rm (p.\,\pageref{classKURLCompletion_a3})}.

Definition at line 46 of file kshellcompletion.cpp.

References QString::length(), KURLCompletion::make\-Completion(), and KURLCompletion::set\-Mode().

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