summaryrefslogtreecommitdiff
path: root/noncore/securityplugins/notice/noticeConfigWidget.h
Unidiff
Diffstat (limited to 'noncore/securityplugins/notice/noticeConfigWidget.h') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/securityplugins/notice/noticeConfigWidget.h71
1 files changed, 71 insertions, 0 deletions
diff --git a/noncore/securityplugins/notice/noticeConfigWidget.h b/noncore/securityplugins/notice/noticeConfigWidget.h
new file mode 100644
index 0000000..69f15bf
--- a/dev/null
+++ b/noncore/securityplugins/notice/noticeConfigWidget.h
@@ -0,0 +1,71 @@
1/**
2 * \file noticeConfigWidget.h
3 * \brief Notice plugin configuration widget
4 * \author Clément Séveillac (clement . seveillac (at) via . ecp . fr)
5 */
6/*
7 =. This file is part of the Opie Project
8 .=l. Copyright (C) 2004 Opie Developer Team <opie-devel@handhelds.org>
9 .>+-=
10 _;:, .> :=|. This library is free software; you can
11.> <`_, > . <= redistribute it and/or modify it under
12:`=1 )Y*s>-.-- : the terms of the GNU Library General Public
13.="- .-=="i, .._ License as published by the Free Software
14 - . .-<_> .<> Foundation; either version 2 of the License,
15 ._= =} : or (at your option) any later version.
16 .%`+i> _;_.
17 .i_,=:_. -<s. This library is distributed in the hope that
18 + . -:. = it will be useful, but WITHOUT ANY WARRANTY;
19 : .. .:, . . . without even the implied warranty of
20 =_ + =;=|` MERCHANTABILITY or FITNESS FOR A
21 _.=:. : :=>`: PARTICULAR PURPOSE. See the GNU
22..}^=.= = ; Library General Public License for more
23++= -. .` .: details.
24 : = ...= . :.=-
25 -. .:....=;==+<; You should have received a copy of the GNU
26 -_. . . )=. = Library General Public License along with
27 -- :-=` this library; see the file COPYING.LIB.
28 If not, write to the Free Software Foundation,
29 Inc., 59 Temple Place - Suite 330,
30 Boston, MA 02111-1307, USA.
31
32*/
33
34#ifndef NOTICECONFIGWIDGET_H
35#define NOTICECONFIGWIDGET_H
36
37#include <qpushbutton.h>
38#include <qmultilineedit.h>
39#include <qpe/config.h>
40
41#include <opie2/multiauthconfigwidget.h>
42
43static char defaultNoticeText [] = "<h2>NOTICE TO USERS</h2>\n"
44 "<p>This is a private computer system and is the property of "
45 "the company XXX / Mr or Ms X. It is for authorized "
46 "use only. Users have no expectation of privacy.</p>\n"
47 "<p><strong>Unauthorized or improper use of this system may result in "
48 "disciplinary action and civil and criminal penalties. <em>By continuing to use "
49 "this system you indicate your awareness of and consent to these "
50 "terms. LOG OFF IMMEDIATELY if you do not agree to them.</em></strong></p>";
51
52class NoticeConfigWidget : public MultiauthConfigWidget {
53
54 Q_OBJECT
55
56public:
57 NoticeConfigWidget(QWidget* parent, const char* name);
58 virtual ~NoticeConfigWidget();
59 virtual void writeConfig();
60private:
61 QMultiLineEdit * noticeMLE;
62 QPushButton * resetNoticeButton;
63private slots:
64 void resetNotice();
65private:
66 Config * m_config;
67 QString getNoticeText();
68 void setNoticeText(QString noticeText);
69};
70
71#endif // NOTICECONFIGWIDGET_H