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;
62 virtual bool status()
const = 0;
69 virtual void updateStatus() = 0;
78 void authChanged(
bool authorized);
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;
Icon to show whether or not a user has root permissions.
void setFileName(const TQString &fileName)
make the icon watch a new filename.
Auth icon for write permission display.
virtual void updateStatus()=0
Re-implement this method if you want the icon to update itself when something external has changed (i...
TQString fileName() const
return the filename of the currently watched file.
A base class for authorization icon widgets.
bool status() const
return whether or not the current user has root permissions.