• Skip to content
  • Skip to link menu
Trinity API Reference
  • Trinity API Reference
  • tdeui
 

tdeui

Public Slots | Signals | Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
KAuthIcon Class Referenceabstract

#include <kauthicon.h>

Inheritance diagram for KAuthIcon:
KRootPermsIcon KWritePermsIcon

Public Slots

virtual void updateStatus ()=0
 

Signals

void authChanged (bool authorized)
 

Public Member Functions

 KAuthIcon (TQWidget *parent=0, const char *name=0)
 
virtual TQSize sizeHint () const
 
virtual bool status () const =0
 

Protected Member Functions

virtual void virtual_hook (int id, void *data)
 

Protected Attributes

TQHBoxLayout * layout
 
TQLabel * lockBox
 
TQLabel * lockLabel
 
TQPixmap lockPM
 
TQPixmap openLockPM
 
TQString lockText
 
TQString openLockText
 

Detailed Description

A base class for authorization icon widgets.

This is the base class from which different authorization icon widget which actually do something should be derived. You can use these widgets to show that the user has (or doesn't have) the ability to do something, and why that is.

One of the most useful things you can do with this is connect authChanged(bool) to setEnabled(bool) for a widget to turn it on and off depending on the status of whatever it is you are monitoring.

See also
KRootPermsIcon, KWritePermsIcon
Author
Preston Brown pbrow.nosp@m.n@kd.nosp@m.e.org

Definition at line 47 of file kauthicon.h.

Constructor & Destructor Documentation

◆ KAuthIcon()

KAuthIcon::KAuthIcon ( TQWidget *  parent = 0,
const char *  name = 0 
)

Constructor.

Definition at line 94 of file kauthicon.cpp.

◆ ~KAuthIcon()

KAuthIcon::~KAuthIcon ( )

Definition at line 130 of file kauthicon.cpp.

Member Function Documentation

◆ authChanged

void KAuthIcon::authChanged ( bool  authorized)
signal

this signal is emitted when authorization has changed from its previous state.

Parameters
authorizedwill be true if the type of authorization described by the icon is true, otherwise it will be false.

◆ sizeHint()

TQSize KAuthIcon::sizeHint ( void  ) const
virtual

Definition at line 135 of file kauthicon.cpp.

◆ status()

virtual bool KAuthIcon::status ( ) const
pure virtual

return the status of whatever is being monitored.

Implemented in KRootPermsIcon, and KWritePermsIcon.

◆ updateStatus

virtual void KAuthIcon::updateStatus ( )
pure virtualslot

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).

◆ virtual_hook()

void KAuthIcon::virtual_hook ( int  id,
void *  data 
)
protectedvirtual

Definition at line 194 of file kauthicon.cpp.

Member Data Documentation

◆ layout

TQHBoxLayout* KAuthIcon::layout
protected

Definition at line 81 of file kauthicon.h.

◆ lockBox

TQLabel* KAuthIcon::lockBox
protected

Definition at line 83 of file kauthicon.h.

◆ lockLabel

TQLabel* KAuthIcon::lockLabel
protected

Definition at line 84 of file kauthicon.h.

◆ lockPM

TQPixmap KAuthIcon::lockPM
protected

Definition at line 85 of file kauthicon.h.

◆ lockText

TQString KAuthIcon::lockText
protected

Definition at line 87 of file kauthicon.h.

◆ openLockPM

TQPixmap KAuthIcon::openLockPM
protected

Definition at line 86 of file kauthicon.h.

◆ openLockText

TQString KAuthIcon::openLockText
protected

Definition at line 88 of file kauthicon.h.


The documentation for this class was generated from the following files:
  • kauthicon.h
  • kauthicon.cpp

tdeui

Skip menu "tdeui"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

tdeui

Skip menu "tdeui"
  • arts
  • dcop
  • dnssd
  • interfaces
  •   kspeech
  •     interface
  •     library
  •   tdetexteditor
  • kate
  • kded
  • kdoctools
  • kimgio
  • kjs
  • libtdemid
  • libtdescreensaver
  • tdeabc
  • tdecmshell
  • tdecore
  • tdefx
  • tdehtml
  • tdeinit
  • tdeio
  •   bookmarks
  •   httpfilter
  •   kpasswdserver
  •   kssl
  •   tdefile
  •   tdeio
  •   tdeioexec
  • tdeioslave
  •   http
  • tdemdi
  •   tdemdi
  • tdenewstuff
  • tdeparts
  • tdeprint
  • tderandr
  • tderesources
  • tdespell2
  • tdesu
  • tdeui
  • tdeunittest
  • tdeutils
  • tdewallet
Generated for tdeui by doxygen 1.9.4
This website is maintained by Timothy Pearson.