19 #define _KAUTHICON_H "$Id$"
21 #include <tqfileinfo.h>
26 #include <tdelibs_export.h>
30 class KAuthIconPrivate;
55 KAuthIcon(TQWidget *parent = 0,
const char *name = 0);
58 virtual TQSize sizeHint()
const;
88 TQString openLockText;
91 virtual void virtual_hook(
int id,
void* data );
96 class KRootPermsIconPrivate;
123 virtual void virtual_hook(
int id,
void* data );
125 KRootPermsIconPrivate *d;
128 class KWritePermsIconPrivate;
138 TQ_PROPERTY( TQString fileName READ fileName WRITE setFileName )
141 KWritePermsIcon(
const TQString & fileName, TQWidget *parent = 0,
const char *name = 0);
158 TQString
fileName()
const {
return fi.fileName(); }
168 virtual void virtual_hook(
int id,
void* data );
170 KWritePermsIconPrivate *d;
A base class for authorization icon widgets.
void authChanged(bool authorized)
this signal is emitted when authorization has changed from its previous state.
bool status() const
return whether or not the current user has root permissions.
virtual void updateStatus()=0
Re-implement this method if you want the icon to update itself when something external has changed (i...
Auth icon for write permission display.
Icon to show whether or not a user has root permissions.
virtual bool status() const =0
return the status of whatever is being monitored.
void setFileName(const TQString &fileName)
make the icon watch a new filename.
TQString fileName() const
return the filename of the currently watched file.