19#define _KAUTHICON_H "$Id$"
21#include <tqfileinfo.h>
26#include <tdelibs_export.h>
30class 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 );
96class KRootPermsIconPrivate;
108 KRootPermsIcon(TQWidget *parent = 0,
const char *name = 0);
123 virtual void virtual_hook(
int id,
void* data );
125 KRootPermsIconPrivate *d;
128class KWritePermsIconPrivate;
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;
void authChanged(bool authorized)
this signal is emitted when authorization has changed from its previous state.
KAuthIcon(TQWidget *parent=0, const char *name=0)
Constructor.
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...
bool status() const
return whether or not the current user has root permissions.
TQString fileName() const
return the filename of the currently watched file.
void setFileName(const TQString &fileName)
make the icon watch a new filename.