.TH "KNamedCommand" kde3 "11 Jun 2005" "Version Version 3.4.1" "kdeui Library" \" -*- nroff -*-
.ad l
.nh
.SH NAME
KNamedCommand \- A command which stores its name.  

.PP
.SH SYNOPSIS
.br
.PP
\fC#include <kcommand.h>\fP
.PP
Inherits \fBKCommand\fP.
.PP
Inherited by \fBKMacroCommand\fP.
.PP
.SS "Public Member Functions"

.in +1c
.ti -1c
.RI "virtual \fBQString\fP \fBname\fP () const "
.br
.ti -1c
.RI "void \fBsetName\fP (const \fBQString\fP &name)"
.br
.in -1c
.SS "Protected Member Functions"

.in +1c
.ti -1c
.RI "\fBKNamedCommand\fP (const \fBQString\fP &name)"
.br
.ti -1c
.RI "virtual void \fBvirtual_hook\fP (int id, void *data)"
.br
.in -1c
.SH "Detailed Description"
.PP 
A command which stores its name. 

It is more memory-efficient to use \fBKCommand\fP and to implement the \fBname()\fP method, but in some cases it's more simple or more flexible to store the name at creation time. 
.PP
Definition at line 78 of file kcommand.h.
.SH "Constructor & Destructor Documentation"
.PP 
.SS "KNamedCommand::KNamedCommand (const \fBQString\fP & name)\fC [inline, protected]\fP"
.PP
Creates a command. 
.PP
\fBParameters:\fP
.RS 4
\fIname\fP the name of this command, translated, since it will appear in the menus. 
.RE
.PP

.PP
Definition at line 86 of file kcommand.h.
.SH "Member Function Documentation"
.PP 
.SS "virtual \fBQString\fP KNamedCommand::name () const\fC [inline, virtual]\fP"
.PP
\fBReturns:\fP
.RS 4
the name of this command 
.RE
.PP

.PP
Implements \fBKCommand\fP.
.PP
Definition at line 92 of file kcommand.h.
.SS "void KNamedCommand::setName (const \fBQString\fP & name)\fC [inline]\fP"
.PP
Updates the name of this command. 
.PP
Rarely necessary. 
.PP
Definition at line 97 of file kcommand.h.

.SH "Author"
.PP 
Generated automatically by Doxygen for kdeui Library from the source code.
