kdeui Library API Documentation

KWritePermsIcon Class Reference

Auth icon for write permission display. More...

#include <kauthicon.h>

Inheritance diagram for KWritePermsIcon:

Inheritance graph
[legend]
Collaboration diagram for KWritePermsIcon:

Collaboration graph
[legend]
List of all members.

Public Slots

void updateStatus ()
 Re-implement this method if you want the icon to update itself when something external has changed (i.e.


Public Member Functions

 KWritePermsIcon (const QString &fileName, QWidget *parent=0, const char *name=0)
bool status () const
void setFileName (const QString &fileName)
 make the icon watch a new filename.


Protected Member Functions

virtual void virtual_hook (int id, void *data)

Protected Attributes

bool writable
QFileInfo fi

Detailed Description

Auth icon for write permission display.

See also:
KAuthIcon
Author:
Preston Brown <pbrown@kde.org>

Definition at line 131 of file kauthicon.h.


Member Function Documentation

bool KWritePermsIcon::status  )  const [inline, virtual]
 

Returns:
whether or not the monitored file is writable.

Implements KAuthIcon.

Definition at line 141 of file kauthicon.h.

void KWritePermsIcon::setFileName const QString fileName  )  [inline]
 

make the icon watch a new filename.

Parameters:
fileName the new file to monitor / display status for.

Definition at line 147 of file kauthicon.h.

References QFileInfo::setFile(), and updateStatus().

void KWritePermsIcon::updateStatus  )  [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).

Implements KAuthIcon.

Definition at line 182 of file kauthicon.cpp.

References KAuthIcon::authChanged(), QFileInfo::isWritable(), QLabel::setPixmap(), QLabel::setText(), and QWidget::update().

Referenced by setFileName().


The documentation for this class was generated from the following files:
KDE Logo
This file is part of the documentation for kdelibs Version 3.1.5.
Documentation copyright © 1996-2002 the KDE developers.
Generated on Wed Jan 28 13:05:27 2004 by doxygen 1.3.4 written by Dimitri van Heesch, © 1997-2001