00001
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034 #ifndef NOTICECONFIGWIDGET_H
00035 #define NOTICECONFIGWIDGET_H
00036
00037 #include <qpushbutton.h>
00038 #include <qmultilineedit.h>
00039 #include <qpe/config.h>
00040
00041 #include <opie2/multiauthconfigwidget.h>
00042
00043 static char defaultNoticeText [] = QT_TRANSLATE_NOOP( "QObject", "<h2>NOTICE TO USERS</h2>\n"
00044 "<p>This is a private computer system and is the property of "
00045 "the company XXX / Mr or Ms X. It is for authorized "
00046 "use only. Users have no expectation of privacy.</p>\n"
00047 "<p><strong>Unauthorized or improper use of this system may result in "
00048 "disciplinary action and civil and criminal penalties. <em>By continuing to use "
00049 "this system you indicate your awareness of and consent to these "
00050 "terms. LOG OFF IMMEDIATELY if you do not agree to them.</em></strong></p>");
00051
00052 class NoticeConfigWidget : public Opie::Security::MultiauthConfigWidget {
00053
00054 Q_OBJECT
00055
00056 public:
00057 NoticeConfigWidget(QWidget* parent, const char* name);
00058 virtual ~NoticeConfigWidget();
00059 virtual void writeConfig();
00060 private:
00061 QMultiLineEdit * noticeMLE;
00062 QPushButton * resetNoticeButton;
00063 private slots:
00064 void resetNotice();
00065 private:
00066 Config * m_config;
00067 QString getNoticeText();
00068 void setNoticeText(QString noticeText);
00069 };
00070
00071 #endif // NOTICECONFIGWIDGET_H
00072