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

NoticeConfigWidget Class Reference

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

Inheritance diagram for NoticeConfigWidget:

Inheritance graph
[legend]
Collaboration diagram for NoticeConfigWidget:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 NoticeConfigWidget (QWidget *parent, const char *name)
 constructs the widget, filling the noticeMLE QMultiLineEdit with the "noticeText" entry
virtual ~NoticeConfigWidget ()
 nothing to do
virtual void writeConfig ()
 write the notice text in the multiauth.conf Config file

Private Slots

void resetNotice ()
 reset the notice text to the hard-coded example defaultNoticeText

Private Member Functions

QString getNoticeText ()
 get the notice text from the config file (with true new lines)
void setNoticeText (QString noticeText)
 set the notice text in our m_config config file (escaping new lines)

Private Attributes

QMultiLineEdit * noticeMLE
QPushButton * resetNoticeButton
Configm_config

Constructor & Destructor Documentation

NoticeConfigWidget::NoticeConfigWidget QWidget *  parent,
const char *  name
 

constructs the widget, filling the noticeMLE QMultiLineEdit with the "noticeText" entry

Definition at line 14 of file noticeConfigWidget.cpp.

References Qt::AlignHCenter, Qt::AlignTop, getNoticeText(), noticeMLE, resetNotice(), resetNoticeButton, tr, and Qt::Vertical.

NoticeConfigWidget::~NoticeConfigWidget  )  [virtual]
 

nothing to do

Definition at line 45 of file noticeConfigWidget.cpp.


Member Function Documentation

QString NoticeConfigWidget::getNoticeText  )  [private]
 

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

if no text has been defined yet returns defaultNoticeText

Definition at line 67 of file noticeConfigWidget.cpp.

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

Referenced by NoticeConfigWidget().

void NoticeConfigWidget::resetNotice  )  [private, slot]
 

reset the notice text to the hard-coded example defaultNoticeText

Definition at line 58 of file noticeConfigWidget.cpp.

References defaultNoticeText, noticeMLE, and tr.

Referenced by NoticeConfigWidget().

void NoticeConfigWidget::setNoticeText QString  noticeText  )  [private]
 

set the notice text in our m_config config file (escaping new lines)

Definition at line 76 of file noticeConfigWidget.cpp.

References QString::replace(), Config::setGroup(), and Config::writeEntry().

Referenced by writeConfig().

void NoticeConfigWidget::writeConfig  )  [virtual]
 

write the notice text in the multiauth.conf Config file

Implements Opie::Security::MultiauthConfigWidget.

Definition at line 49 of file noticeConfigWidget.cpp.

References noticeMLE, odebug, oendl, and setNoticeText().


Member Data Documentation

Config* NoticeConfigWidget::m_config [private]
 

Definition at line 66 of file noticeConfigWidget.h.

QMultiLineEdit* NoticeConfigWidget::noticeMLE [private]
 

Definition at line 61 of file noticeConfigWidget.h.

Referenced by NoticeConfigWidget(), resetNotice(), and writeConfig().

QPushButton* NoticeConfigWidget::resetNoticeButton [private]
 

Definition at line 62 of file noticeConfigWidget.h.

Referenced by NoticeConfigWidget().


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