Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

NoticePlugin Class Reference

Multi-authentication plugin, having the user accept a (legal, etc.) notice text. More...

#include </home/clem/local/src/opie/noncore/securityplugins/notice/noticeplugin.h>

Inheritance diagram for NoticePlugin:

Inheritance graph
[legend]
Collaboration diagram for NoticePlugin:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 NoticePlugin ()
 creates and initializes the m_config Config object
virtual ~NoticePlugin ()
 deletes the m_config Config object and noticeW if necessary
int authenticate ()
 Displays the configured message and an 'Accept' button.
Opie::Security::MultiauthConfigWidgetconfigWidget (QWidget *parent)
 return the Notice widget configuration widget
QString pixmapNameConfig () const
 return the path of the small tab icon
QString pixmapNameWidget () const
 return the path of the big icon for the active/order checklist
QString pluginName () const
 Simply return its name (Notice plugin).

Private Member Functions

QString getNoticeText ()
 get the notice text from our m_config config file (with true new lines)

Private Attributes

NoticeConfigWidgetm_noticeW

Detailed Description

Multi-authentication plugin, having the user accept a (legal, etc.) notice text.

The plugin itself, implementing the main authenticate() function.

Definition at line 46 of file noticeplugin.h.


Constructor & Destructor Documentation

NoticePlugin::NoticePlugin  ) 
 

creates and initializes the m_config Config object

Definition at line 12 of file noticeplugin.cpp.

NoticePlugin::~NoticePlugin  )  [virtual]
 

deletes the m_config Config object and noticeW if necessary

Definition at line 16 of file noticeplugin.cpp.

References m_noticeW.


Member Function Documentation

int NoticePlugin::authenticate  )  [virtual]
 

Displays the configured message and an 'Accept' button.

Returns:
the outcome code of this authentication (can be only success)

Implements Opie::Security::MultiauthPluginObject.

Definition at line 49 of file noticeplugin.cpp.

References getNoticeText(), oApp, tr, Qt::WStyle_Customize, Qt::WStyle_NoBorder, and Qt::WStyle_StaysOnTop.

MultiauthConfigWidget * NoticePlugin::configWidget QWidget *  parent  )  [virtual]
 

return the Notice widget configuration widget

Returns:
noticeW, the NoticeConfigWidget

Implements Opie::Security::MultiauthPluginObject.

Definition at line 29 of file noticeplugin.cpp.

References m_noticeW.

QString NoticePlugin::getNoticeText  )  [private]
 

get the notice text from our m_config config file (with true new lines)

if no text has been defined yet returns defaultNoticeText

Definition at line 78 of file noticeplugin.cpp.

References defaultNoticeText, Config::readEntry(), Config::setGroup(), and tr.

Referenced by authenticate().

QString NoticePlugin::pixmapNameConfig  )  const [virtual]
 

return the path of the small tab icon

Implements Opie::Security::MultiauthPluginObject.

Definition at line 36 of file noticeplugin.cpp.

QString NoticePlugin::pixmapNameWidget  )  const [virtual]
 

return the path of the big icon for the active/order checklist

Implements Opie::Security::MultiauthPluginObject.

Definition at line 41 of file noticeplugin.cpp.

QString NoticePlugin::pluginName  )  const [virtual]
 

Simply return its name (Notice plugin).

Implements Opie::Security::MultiauthPluginObject.

Definition at line 21 of file noticeplugin.cpp.


Member Data Documentation

NoticeConfigWidget* NoticePlugin::m_noticeW [private]
 

Definition at line 59 of file noticeplugin.h.

Referenced by configWidget(), and ~NoticePlugin().


The documentation for this class was generated from the following files:
Generated on Sat Nov 5 17:41:39 2005 for OPIE by  doxygen 1.4.2