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

noticeConfigWidget.h

Go to the documentation of this file.
00001 
00006 /*
00007                =.            This file is part of the Opie Project
00008              .=l.            Copyright (C) 2004 Opie Developer Team <opie-devel@handhelds.org>
00009            .>+-=
00010  _;:,     .>    :=|.         This library is free software; you can
00011 .> <`_,   >  .   <=          redistribute it and/or  modify it under
00012 :`=1 )Y*s>-.--   :           the terms of the GNU Library General Public
00013 .="- .-=="i,     .._         License as published by the Free Software
00014  - .   .-<_>     .<>         Foundation; either version 2 of the License,
00015      ._= =}       :          or (at your option) any later version.
00016     .%`+i>       _;_.
00017     .i_,=:_.      -<s.       This library is distributed in the hope that
00018      +  .  -:.       =       it will be useful,  but WITHOUT ANY WARRANTY;
00019     : ..    .:,     . . .    without even the implied warranty of
00020     =_        +     =;=|`    MERCHANTABILITY or FITNESS FOR A
00021   _.=:.       :    :=>`:     PARTICULAR PURPOSE. See the GNU
00022 ..}^=.=       =       ;      Library General Public License for more
00023 ++=   -.     .`     .:       details.
00024  :     =  ...= . :.=-
00025  -.   .:....=;==+<;          You should have received a copy of the GNU
00026   -_. . .   )=.  =           Library General Public License along with
00027     --        :-=`           this library; see the file COPYING.LIB.
00028                              If not, write to the Free Software Foundation,
00029                              Inc., 59 Temple Place - Suite 330,
00030                              Boston, MA 02111-1307, USA.
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 

Generated on Sat Nov 5 16:17:46 2005 for OPIE by  doxygen 1.4.2