\section{KAuth\-Icon Class Reference}
\label{classKAuthIcon}\index{KAuthIcon@{KAuthIcon}}
A base class for authorization icon widgets.  


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

Inheritance diagram for KAuth\-Icon:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=120pt]{classKAuthIcon__inherit__graph}
\end{center}
\end{figure}
Collaboration diagram for KAuth\-Icon:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=226pt]{classKAuthIcon__coll__graph}
\end{center}
\end{figure}
\subsection*{Public Slots}
\begin{CompactItemize}
\item 
virtual void {\bf update\-Status} ()=0
\end{CompactItemize}
\subsection*{Signals}
\begin{CompactItemize}
\item 
void {\bf auth\-Changed} (bool authorized)
\end{CompactItemize}
\subsection*{Public Member Functions}
\begin{CompactItemize}
\item 
{\bf KAuth\-Icon} ({\bf QWidget} $\ast$parent=0, const char $\ast$name=0)
\item 
virtual {\bf QSize} {\bf size\-Hint} () const \label{classKAuthIcon_a2}

\item 
virtual bool {\bf status} () const =0
\end{CompactItemize}
\subsection*{Protected Member Functions}
\begin{CompactItemize}
\item 
virtual void {\bf virtual\_\-hook} (int id, void $\ast$data)\label{classKAuthIcon_b0}

\end{CompactItemize}
\subsection*{Protected Attributes}
\begin{CompactItemize}
\item 
{\bf QHBox\-Layout} $\ast$ {\bf layout}\label{classKAuthIcon_p0}

\item 
{\bf QLabel} $\ast$ {\bf lock\-Box}\label{classKAuthIcon_p1}

\item 
{\bf QLabel} $\ast$ {\bf lock\-Label}\label{classKAuthIcon_p2}

\item 
{\bf QPixmap} {\bf lock\-PM}\label{classKAuthIcon_p3}

\item 
{\bf QPixmap} {\bf open\-Lock\-PM}\label{classKAuthIcon_p4}

\item 
{\bf QString} {\bf lock\-Text}\label{classKAuthIcon_p5}

\item 
{\bf QString} {\bf open\-Lock\-Text}\label{classKAuthIcon_p6}

\end{CompactItemize}


\subsection{Detailed Description}
A base class for authorization icon widgets. 

This is the base class from which different authorization icon widget which actually do something should be derived. You can use these widgets to show that the user has (or doesn't have) the ability to do something, and why that is.

One of the most useful things you can do with this is connect {\bf auth\-Changed(bool)}{\rm (p.\,\pageref{classKAuthIcon_l0})} to {\bf set\-Enabled(bool)} for a widget to turn it on and off depending on the status of whatever it is you are monitoring.

\begin{Desc}
\item[See also:]{\bf KRoot\-Perms\-Icon}{\rm (p.\,\pageref{classKRootPermsIcon})}, {\bf KWrite\-Perms\-Icon}{\rm (p.\,\pageref{classKWritePermsIcon})} \end{Desc}
\begin{Desc}
\item[Author:]Preston Brown $<${\tt pbrown@kde.org}$>$ \end{Desc}




Definition at line 47 of file kauthicon.h.

\subsection{Constructor \& Destructor Documentation}
\index{KAuthIcon@{KAuth\-Icon}!KAuthIcon@{KAuthIcon}}
\index{KAuthIcon@{KAuthIcon}!KAuthIcon@{KAuth\-Icon}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}KAuth\-Icon::KAuth\-Icon ({\bf QWidget} $\ast$ {\em parent} = {\tt 0}, const char $\ast$ {\em name} = {\tt 0})}\label{classKAuthIcon_a0}


Constructor. 



Definition at line 94 of file kauthicon.cpp.

References QWidget::resize(), QLabel::set\-Alignment(), QLabel::set\-Pixmap(), QLabel::set\-Text(), and QWidget::size\-Hint().

\subsection{Member Function Documentation}
\index{KAuthIcon@{KAuth\-Icon}!status@{status}}
\index{status@{status}!KAuthIcon@{KAuth\-Icon}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}virtual bool KAuth\-Icon::status () const\hspace{0.3cm}{\tt  [pure virtual]}}\label{classKAuthIcon_a3}


return the status of whatever is being monitored. 



Implemented in {\bf KRoot\-Perms\-Icon} {\rm (p.\,\pageref{classKRootPermsIcon_a2})}, and {\bf KWrite\-Perms\-Icon} {\rm (p.\,\pageref{classKWritePermsIcon_a2})}.\index{KAuthIcon@{KAuth\-Icon}!updateStatus@{updateStatus}}
\index{updateStatus@{updateStatus}!KAuthIcon@{KAuth\-Icon}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}virtual void KAuth\-Icon::update\-Status ()\hspace{0.3cm}{\tt  [pure virtual, slot]}}\label{classKAuthIcon_i0}


Re-implement this method if you want the icon to update itself when something external has changed (i.e. 

a file on disk, uid/gid). 

Implemented in {\bf KRoot\-Perms\-Icon} {\rm (p.\,\pageref{classKRootPermsIcon_i0})}, and {\bf KWrite\-Perms\-Icon} {\rm (p.\,\pageref{classKWritePermsIcon_i0})}.

Referenced by KWrite\-Perms\-Icon::set\-File\-Name().\index{KAuthIcon@{KAuth\-Icon}!authChanged@{authChanged}}
\index{authChanged@{authChanged}!KAuthIcon@{KAuth\-Icon}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KAuth\-Icon::auth\-Changed (bool {\em authorized})\hspace{0.3cm}{\tt  [signal]}}\label{classKAuthIcon_l0}


this signal is emitted when authorization has changed from its previous state. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em authorized}]will be true if the type of authorization described by the icon is true, otherwise it will be false. \end{description}
\end{Desc}


Referenced by KWrite\-Perms\-Icon::update\-Status(), and KRoot\-Perms\-Icon::update\-Status().

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