Main Page   Modules   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members   Related Pages  

KAuthIcon Class Reference

ABC for authorization icon widgets. More...

#include <kauthicon.h>

Inheritance diagram for KAuthIcon:

KRootPermsIcon KWritePermsIcon List of all members.

Public Slots

virtual void updateStatus ()=0

Signals

void authChanged (bool authorized)

Public Methods

 KAuthIcon (QWidget *parent=0, const char *name=0)
virtual bool status () const=0

Detailed Description

ABC 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 authChanged(bool) to setEnabled(bool) for a widget to turn it on and off depending on the status of whatever it is you are monitoring.

See also:
KRootPermsIcon, KWritePermsIcon
Author:
Preston Brown <pbrown@kde.org>

Definition at line 44 of file kauthicon.h.


Constructor & Destructor Documentation

KAuthIcon::KAuthIcon QWidget *    parent = 0,
const char *    name = 0
 

Constructor.


Member Function Documentation

void KAuthIcon::authChanged bool    authorized [signal]
 

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

Parameters:
authorized  will be true if the type of authorization described by the icon is true, otherwise it will be false.

virtual bool KAuthIcon::status   [pure virtual]
 

return the status of whatever is being monitored.

Implemented in KRootPermsIcon, and KWritePermsIcon.

virtual void KAuthIcon::updateStatus   [pure virtual, slot]
 

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 KRootPermsIcon, and KWritePermsIcon.


The documentation for this class was generated from the following file:
Generated on Wed Aug 13 23:30:06 2003 for kdelibs by doxygen1.2.18