\section{KAuth\-Icon Class Reference}
\label{classKAuthIcon}\index{KAuthIcon@{KAuthIcon}}
This is the base class from which different authorization icon widget which actually do something should be derived. ABC for authorization icon widgets.  


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

Inheritance diagram for KAuth\-Icon:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=123pt]{classKAuthIcon__inherit__graph}
\end{center}
\end{figure}
Collaboration diagram for KAuth\-Icon:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=253pt]{classKAuthIcon__coll__graph}
\end{center}
\end{figure}
\subsection*{Public Slots}
\begin{CompactItemize}
\item 
virtual void {\bf update\-Status} ()=0
\begin{CompactList}\small\item\em Re-implement this method if you want the icon to update itself when something external has changed (i.e. \item\end{CompactList}\end{CompactItemize}
\subsection*{Signals}
\begin{CompactItemize}
\item 
void {\bf auth\-Changed} (bool authorized)
\begin{CompactList}\small\item\em this signal is emitted when authorization has changed from its previous state. \item\end{CompactList}\end{CompactItemize}
\subsection*{Public Member Functions}
\begin{CompactItemize}
\item 
{\bf KAuth\-Icon} ({\bf QWidget} $\ast$parent=0, const  char $\ast$name=0)
\begin{CompactList}\small\item\em Constructor. \item\end{CompactList}\item 
virtual {\bf QSize} {\bf size\-Hint} () const \label{classKAuthIcon_a2}

\item 
virtual bool {\bf status} () const =0
\begin{CompactList}\small\item\em return the status of whatever is being monitored. \item\end{CompactList}\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}
This is the base class from which different authorization icon widget which actually do something should be derived. ABC for authorization icon widgets. 

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}{\rm (p.\,\pageref{classKAuthIcon_l0})}(bool) 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 44 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} = 0, const char $\ast$ {\em name} = 0)}\label{classKAuthIcon_a0}


Constructor. 



Definition at line 94 of file kauthicon.cpp.

References KStd\-Accel::name(), 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})}.\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}
