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);
152 void setFileName(
const TQString & fileName) { fi.setFile(fileName); updateStatus(); }
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.
virtual bool status() const =0
return the status of whatever is being monitored.
virtual void updateStatus()=0
Re-implement this method if you want the icon to update itself when something external has changed (i...
Icon to show whether or not a user has root permissions.
bool status() const
return whether or not the current user has root permissions.
Auth icon for write permission display.
TQString fileName() const
return the filename of the currently watched file.
void setFileName(const TQString &fileName)
make the icon watch a new filename.