summaryrefslogtreecommitdiff
path: root/libopie2/opiesecurity/multiauthconfigwidget.h
Unidiff
Diffstat (limited to 'libopie2/opiesecurity/multiauthconfigwidget.h') (more/less context) (show whitespace changes)
-rw-r--r--libopie2/opiesecurity/multiauthconfigwidget.h68
1 files changed, 68 insertions, 0 deletions
diff --git a/libopie2/opiesecurity/multiauthconfigwidget.h b/libopie2/opiesecurity/multiauthconfigwidget.h
new file mode 100644
index 0000000..cd6f047
--- a/dev/null
+++ b/libopie2/opiesecurity/multiauthconfigwidget.h
@@ -0,0 +1,68 @@
1/**
2 * \file multiauthconfigwidget.h
3 * \brief Defines the Opie multiauth configuration widget interface.
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 MULTIAUTHCONFIGWIDGET_H
35#define MULTIAUTHCONFIGWIDGET_H
36
37#include <qwidget.h>
38#include <qobject.h>
39
40/// Base class of all Opie multiauth config widgets
41/**
42 * A base class for all Opie Multiauth Config Widgets.
43 * This will let a Opie multiauth plugin to add the possibility of configuration.
44 * Plugins need to inherit from this class and need to implement
45 * the pure virtual method to control configuration.
46 * The Plugin should read its configuration during creation of the Widget
47 *
48 * \author Clement Seveillac (helped by Maximilian Reiß's Today framework)
49 */
50class MultiauthConfigWidget : public QWidget {
51
52 Q_OBJECT
53
54 public:
55
56 /// standard widget constructor
57 MultiauthConfigWidget( QWidget *parent, const char *name ) : QWidget( parent, name ) {}
58 virtual ~MultiauthConfigWidget() {}
59
60 /// Method to reimplement, supposed to save the plugin configuration
61 /**
62 * Plugins need to reimplement this in the config widget
63 * Used when the config dialog is closed to write config stuff
64 */
65 virtual void writeConfig() = 0;
66};
67
68#endif // MULTIAUTHCONFIGWIDGET_H