\section{KNamed\-Command Class Reference}
\label{classKNamedCommand}\index{KNamedCommand@{KNamedCommand}}
A command which stores its name.  


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

Inheritance diagram for KNamed\-Command:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=72pt]{classKNamedCommand__inherit__graph}
\end{center}
\end{figure}
Collaboration diagram for KNamed\-Command:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=102pt]{classKNamedCommand__coll__graph}
\end{center}
\end{figure}
\subsection*{Public Member Functions}
\begin{CompactItemize}
\item 
virtual {\bf QString} {\bf name} () const 
\item 
void {\bf set\-Name} (const  {\bf QString} \&name)
\begin{CompactList}\small\item\em Updates the name of this command. \item\end{CompactList}\end{CompactItemize}
\subsection*{Protected Member Functions}
\begin{CompactItemize}
\item 
{\bf KNamed\-Command} (const  {\bf QString} \&name)
\begin{CompactList}\small\item\em Creates a command. \item\end{CompactList}\item 
virtual void {\bf virtual\_\-hook} (int id, void $\ast$data)\label{classKNamedCommand_b1}

\end{CompactItemize}


\subsection{Detailed Description}
A command which stores its name. 

This class mostly exists for compatibility with KDE-2.x It is more memory-efficient to use {\bf KCommand}{\rm (p.\,\pageref{classKCommand})} and to implement the {\bf name()}{\rm (p.\,\pageref{classKNamedCommand_a0})} method. 



Definition at line 77 of file kcommand.h.

\subsection{Constructor \& Destructor Documentation}
\index{KNamedCommand@{KNamed\-Command}!KNamedCommand@{KNamedCommand}}
\index{KNamedCommand@{KNamedCommand}!KNamedCommand@{KNamed\-Command}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}KNamed\-Command::KNamed\-Command (const {\bf QString} \& {\em name})\hspace{0.3cm}{\tt  [inline, protected]}}\label{classKNamedCommand_b0}


Creates a command. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em name}]the name of this command, translated, since it will appear in the menus. \end{description}
\end{Desc}


Definition at line 85 of file kcommand.h.

References name().

\subsection{Member Function Documentation}
\index{KNamedCommand@{KNamed\-Command}!name@{name}}
\index{name@{name}!KNamedCommand@{KNamed\-Command}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}virtual {\bf QString} KNamed\-Command::name () const\hspace{0.3cm}{\tt  [inline, virtual]}}\label{classKNamedCommand_a0}


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


Implements {\bf KCommand} {\rm (p.\,\pageref{classKCommand_a3})}.

Definition at line 91 of file kcommand.h.

Referenced by KNamed\-Command().\index{KNamedCommand@{KNamed\-Command}!setName@{setName}}
\index{setName@{setName}!KNamedCommand@{KNamed\-Command}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KNamed\-Command::set\-Name (const {\bf QString} \& {\em name})\hspace{0.3cm}{\tt  [inline]}}\label{classKNamedCommand_a1}


Updates the name of this command. 

Rarely necessary. 

Definition at line 96 of file kcommand.h.

References KStd\-Accel::name().

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