summaryrefslogtreecommitdiff
path: root/noncore/securityplugins/dummy
Unidiff
Diffstat (limited to 'noncore/securityplugins/dummy') (more/less context) (show whitespace changes)
-rw-r--r--noncore/securityplugins/dummy/.cvsignore3
-rw-r--r--noncore/securityplugins/dummy/Makefile204
-rw-r--r--noncore/securityplugins/dummy/config.in4
-rw-r--r--noncore/securityplugins/dummy/dummyplugin.control11
-rw-r--r--noncore/securityplugins/dummy/dummyplugin.cpp92
-rw-r--r--noncore/securityplugins/dummy/dummyplugin.h66
-rw-r--r--noncore/securityplugins/dummy/dummyplugin.pro19
-rw-r--r--noncore/securityplugins/dummy/dummypluginimpl.cpp28
-rw-r--r--noncore/securityplugins/dummy/dummypluginimpl.h58
9 files changed, 485 insertions, 0 deletions
diff --git a/noncore/securityplugins/dummy/.cvsignore b/noncore/securityplugins/dummy/.cvsignore
new file mode 100644
index 0000000..a4e0e29
--- a/dev/null
+++ b/noncore/securityplugins/dummy/.cvsignore
@@ -0,0 +1,3 @@
1.moc
2.obj
3Makefile
diff --git a/noncore/securityplugins/dummy/Makefile b/noncore/securityplugins/dummy/Makefile
new file mode 100644
index 0000000..f6a1f9f
--- a/dev/null
+++ b/noncore/securityplugins/dummy/Makefile
@@ -0,0 +1,204 @@
1#############################################################################
2# Makefile for building: libmultiauthdummyplugin.so.1.0.0
3# Generated by qmake (1.05a) (Qt 3.1.2) on: Mon Jun 14 11:00:19 2004
4# Project: dummyplugin.pro
5# Template: lib
6# Command: $(QMAKE) -o Makefile dummyplugin.pro
7#############################################################################
8
9####### Compiler, tools and options
10
11CC = $(CCACHE) $(DISTCC) gcc
12CXX = $(CCACHE) $(DISTCC) g++
13LEX = flex
14YACC = yacc
15CFLAGS = -pipe $(CFLAGS_EXTRA) -Wall -W -g -fPIC -DQT_COMPONENT_DEBUG=2 -DQT_DEBUG -DOPIE_NO_BUILTIN_SHUTDOWN -DUSE_FILE_NOTIFICATION -DOPIE_SOUND_FRAGMENT_SHIFT=16
16CXXFLAGS = -pipe $(CFLAGS_EXTRA) -DQWS -fno-exceptions -fno-rtti $(CXXFLAGS_EXTRA) -Wall -W -g -fPIC -DQT_COMPONENT_DEBUG=2 -DQT_DEBUG -DOPIE_NO_BUILTIN_SHUTDOWN -DUSE_FILE_NOTIFICATION -DOPIE_SOUND_FRAGMENT_SHIFT=16
17LEXFLAGS =
18YACCFLAGS= -d
19INCPATH = -I/opt/opie/mkspecs/qws/linux-generic-g++ -I. -I$(OPIEDIR)/include -I$(QTDIR)/include -I.moc/$(PLATFORM)/
20LINK = g++
21LFLAGS = $(LFLAGS_EXTRA) -Wl,-rpath-link,$(OPIEDIR)/lib -shared -Wl,-soname,libmultiauthdummyplugin.so.1 -Wl,-rpath,/opt/opie/plugins/security
22LIBS = $(SUBLIBS) -Wl,-rpath,$(QTDIR)/lib -L$(QTDIR)/lib $(LIBS_EXTRA) -lqpe -lopieui2 -L$(OPIEDIR)/lib -lqte
23AR = ar cqs
24RANLIB =
25MOC = $(QTDIR)/bin/moc
26UIC = $(QTDIR)/bin/uic
27QMAKE = qmake
28TAR = tar -cf
29GZIP = gzip -9f
30COPY = cp -f
31COPY_FILE= $(COPY) -p
32COPY_DIR = $(COPY) -pR
33DEL_FILE = rm -f
34SYMLINK = ln -sf
35DEL_DIR = rmdir
36MOVE = mv -f
37PRO = dummyplugin.pro
38CHK_DIR_EXISTS=
39MKDIR =
40
41####### Output directory
42
43OBJECTS_DIR = .obj/$(PLATFORM)/
44
45####### Files
46
47HEADERS = dummyplugin.h \
48 dummypluginimpl.h
49SOURCES = dummyplugin.cpp \
50 dummypluginimpl.cpp
51OBJECTS = .obj/$(PLATFORM)/dummyplugin.o \
52 .obj/$(PLATFORM)/dummypluginimpl.o
53FORMS =
54UICDECLS =
55UICIMPLS =
56SRCMOC = .moc/$(PLATFORM)/moc_dummyplugin.cpp
57OBJMOC = .obj/$(PLATFORM)/moc_dummyplugin.o
58 DIST = ../../../gen.pro \
59 ../../../include.pro \
60 dummyplugin.pro
61QMAKE_TARGET = multiauthdummyplugin
62DESTDIR = $(OPIEDIR)/plugins/security/
63TARGET = libmultiauthdummyplugin.so.1.0.0
64 TARGETA= $(OPIEDIR)/plugins/security/libmultiauthdummyplugin.a
65 TARGETD= libmultiauthdummyplugin.so.1.0.0
66 TARGET0= libmultiauthdummyplugin.so
67 TARGET1= libmultiauthdummyplugin.so.1
68 TARGET2= libmultiauthdummyplugin.so.1.0
69
70first: all
71####### Implicit rules
72
73.SUFFIXES: .c .cpp .cc .cxx .C
74
75.cpp.o:
76 $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $<
77
78.cc.o:
79 $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $<
80
81.cxx.o:
82 $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $<
83
84.C.o:
85 $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $<
86
87.c.o:
88 $(CC) -c $(CFLAGS) $(INCPATH) -o $@ $<
89
90####### Build rules
91
92all: Makefile $(OPIEDIR)/plugins/security/$(TARGET)
93
94$(OPIEDIR)/plugins/security/$(TARGET): $(UICDECLS) $(OBJECTS) $(OBJMOC) $(SUBLIBS)
95 test -d $(OPIEDIR)/plugins/security/ || mkdir -p $(OPIEDIR)/plugins/security/
96 -$(DEL_FILE) $(TARGET) $(TARGET0) $(TARGET1) $(TARGET2)
97 $(LINK) $(LFLAGS) -o $(TARGET) $(OBJECTS) $(OBJMOC) $(LIBS)
98 -ln -s $(TARGET) $(TARGET0)
99 -ln -s $(TARGET) $(TARGET1)
100 -ln -s $(TARGET) $(TARGET2)
101 -$(DEL_FILE) $(OPIEDIR)/plugins/security/$(TARGET)
102 -$(DEL_FILE) $(OPIEDIR)/plugins/security/$(TARGET0)
103 -$(DEL_FILE) $(OPIEDIR)/plugins/security/$(TARGET1)
104 -$(DEL_FILE) $(OPIEDIR)/plugins/security/$(TARGET2)
105 -$(MOVE) $(TARGET) $(TARGET0) $(TARGET1) $(TARGET2) $(OPIEDIR)/plugins/security/
106
107
108
109staticlib: $(TARGETA)
110
111$(TARGETA): $(UICDECLS) $(OBJECTS) $(OBJMOC)
112 -$(DEL_FILE) $(TARGETA)
113 $(AR) $(TARGETA) $(OBJECTS) $(OBJMOC)
114
115mocables: $(SRCMOC)
116
117$(MOC):
118 ( cd $(QTDIR)/src/moc ; $(MAKE) )
119
120Makefile: dummyplugin.pro /opt/opie/mkspecs/qws/linux-generic-g++/qmake.conf ../../../gen.pro \
121 ../../../include.pro
122 $(QMAKE) -o Makefile dummyplugin.pro
123qmake:
124 @$(QMAKE) -o Makefile dummyplugin.pro
125
126dist:
127 @mkdir -p .obj/$(PLATFORM)/multiauthdummyplugin && $(COPY_FILE) --parents $(SOURCES) $(HEADERS) $(FORMS) $(DIST) .obj/$(PLATFORM)/multiauthdummyplugin/ && ( cd `dirname .obj/$(PLATFORM)/multiauthdummyplugin` && $(TAR) multiauthdummyplugin.tar multiauthdummyplugin && $(GZIP) multiauthdummyplugin.tar ) && $(MOVE) `dirname .obj/$(PLATFORM)/multiauthdummyplugin`/multiauthdummyplugin.tar.gz . && $(DEL_FILE) -r .obj/$(PLATFORM)/multiauthdummyplugin
128
129mocclean:
130 -$(DEL_FILE) $(OBJMOC)
131 -$(DEL_FILE) $(SRCMOC)
132
133uiclean:
134
135yaccclean:
136lexclean:
137clean: mocclean
138 -$(DEL_FILE) $(OBJECTS)
139 -$(DEL_FILE) *~ core *.core
140
141
142####### Sub-libraries
143
144distclean: clean
145 -$(DEL_FILE) $(OPIEDIR)/plugins/security/$(TARGET) $(TARGET)
146 -$(DEL_FILE) $(OPIEDIR)/plugins/security/$(TARGET0) $(OPIEDIR)/plugins/security/$(TARGET1) $(OPIEDIR)/plugins/security/$(TARGET2) $(TARGETA)
147
148
149lupdate:
150 lupdate -noobsolete $(PRO)
151
152lrelease:
153 lrelease $(PRO)
154
155ipk:
156 tmp=`mktemp -d /tmp/ipkg-opie.XXXXXXXXXX` && ( $(MAKE) INSTALL_ROOT="" install && ipkg-build ; rm -rf ; )
157
158opie-lupdate:
159 opie-lupdate $(PRO)
160
161opie-lrelease:
162 opie-lrelease $(PRO)
163
164messages:
165 xgettext -C -n -ktr -kQT_TRANSLATE_NOOP dummyplugin.h dummypluginimpl.h dummyplugin.cpp dummypluginimpl.cpp -o '$(OPIEDIR)/messages-$(QMAKE_TARGET)-tr.po' && xgettext -C -n -a dummyplugin.h dummypluginimpl.h dummyplugin.cpp dummypluginimpl.cpp -o '$(OPIEDIR)/messages-$(QMAKE_TARGET)-allstrings.po'
166
167FORCE:
168
169####### Compile
170
171.obj/$(PLATFORM)/dummyplugin.o: dummyplugin.cpp dummyplugin.h
172 $(CXX) -c $(CXXFLAGS) $(INCPATH) -o .obj/$(PLATFORM)/dummyplugin.o dummyplugin.cpp
173
174.obj/$(PLATFORM)/dummypluginimpl.o: dummypluginimpl.cpp dummypluginimpl.h \
175 dummyplugin.h
176 $(CXX) -c $(CXXFLAGS) $(INCPATH) -o .obj/$(PLATFORM)/dummypluginimpl.o dummypluginimpl.cpp
177
178.obj/$(PLATFORM)/moc_dummyplugin.o: .moc/$(PLATFORM)/moc_dummyplugin.cpp dummyplugin.h
179 $(CXX) -c $(CXXFLAGS) $(INCPATH) -o .obj/$(PLATFORM)/moc_dummyplugin.o .moc/$(PLATFORM)/moc_dummyplugin.cpp
180
181.moc/x86-linux/moc_dummyplugin.cpp: $(MOC) dummyplugin.h
182 $(MOC) dummyplugin.h -o .moc/x86-linux/moc_dummyplugin.cpp
183
184####### Install
185
186install_target:
187 @$(CHK_DIR_EXISTS) "$(INSTALL_ROOT)$(OPIEDIR)/lib/" || $(MKDIR) "$(INSTALL_ROOT)$(OPIEDIR)/lib/"
188 -$(COPY) "$(OPIEDIR)/plugins/security/$(TARGET)" "$(INSTALL_ROOT)$(OPIEDIR)/lib/$(TARGET)"
189 -$(SYMLINK) "$(TARGET)" "$(INSTALL_ROOT)$(OPIEDIR)/lib/$(TARGET0)"
190 -$(SYMLINK) "$(TARGET)" "$(INSTALL_ROOT)$(OPIEDIR)/lib/$(TARGET1)"
191 -$(SYMLINK) "$(TARGET)" "$(INSTALL_ROOT)$(OPIEDIR)/lib/$(TARGET2)"
192
193uninstall_target:
194 -$(DEL_FILE) "$(INSTALL_ROOT)$(OPIEDIR)/lib/$(TARGET)"
195 -$(DEL_FILE) "$(INSTALL_ROOT)$(OPIEDIR)/lib/$(TARGET0)"
196 -$(DEL_FILE) "$(INSTALL_ROOT)$(OPIEDIR)/lib/$(TARGET1)"
197 -$(DEL_FILE) "$(INSTALL_ROOT)$(OPIEDIR)/lib/$(TARGET2)"
198 -$(DEL_DIR) "$(INSTALL_ROOT)$(OPIEDIR)/lib/"
199
200
201install: all install_target
202
203uninstall: uninstall_target
204
diff --git a/noncore/securityplugins/dummy/config.in b/noncore/securityplugins/dummy/config.in
new file mode 100644
index 0000000..2053eef
--- a/dev/null
+++ b/noncore/securityplugins/dummy/config.in
@@ -0,0 +1,4 @@
1 config MULTIAUTH_DUMMY
2 boolean "opie-multiauth-dummy (dummy authentication plugin for opie-multiauth testing)"
3 default "y"
4 depends SECURITY
diff --git a/noncore/securityplugins/dummy/dummyplugin.control b/noncore/securityplugins/dummy/dummyplugin.control
new file mode 100644
index 0000000..1bd9700
--- a/dev/null
+++ b/noncore/securityplugins/dummy/dummyplugin.control
@@ -0,0 +1,11 @@
1Package: opie-multiauth-dummyplugin
2Files: plugins/security/libmultiauthdummyplugin.so* pics/security/dummyplugin.png
3Priority: optional
4Section: opie/settings
5Maintainer: Clement Seveillac <clement@nist.gov>
6Architecture: arm
7Version: 0.0.2.3
8Depends: opie-security
9Description: Dummy plugin for opie-security authentication.
10 This is a very simple authentication plugin (you just have
11 to press a button basically), for demonstration purpose.
diff --git a/noncore/securityplugins/dummy/dummyplugin.cpp b/noncore/securityplugins/dummy/dummyplugin.cpp
new file mode 100644
index 0000000..0d19e43
--- a/dev/null
+++ b/noncore/securityplugins/dummy/dummyplugin.cpp
@@ -0,0 +1,92 @@
1#include "dummyplugin.h"
2
3#include <opie2/oapplication.h>
4
5#include <qdialog.h>
6#include <qlayout.h>
7#include <qlabel.h>
8#include <qpushbutton.h>
9
10/// Simply return its name (Dummy plugin)
11QString DummyPlugin::pluginName() const {
12 return "Dummy plugin";
13}
14
15/// no configuration widget for the moment
16MultiauthConfigWidget * DummyPlugin::configWidget(QWidget * parent) {
17 return 0l;
18}
19QString DummyPlugin::pixmapNameWidget() const {
20 return "security/dummyplugin";
21}
22QString DummyPlugin::pixmapNameConfig() const {
23 return 0l;
24}
25
26/// Emit the MultiauthPluginObject::Success emitCode
27void DummyPlugin::success() {
28 emit emitCode(MultiauthPluginObject::Success);
29}
30
31/// Emit the MultiauthPluginObject::Failure emitCode
32void DummyPlugin::failure() {
33 emit emitCode(MultiauthPluginObject::Failure);
34}
35
36/// Emit the MultiauthPluginObject::Skip emitCode
37void DummyPlugin::skip() {
38 emit emitCode(MultiauthPluginObject::Skip);
39}
40
41/// Make one authentication attempt with this plugin
42/**
43 * (very simple "success" / "failure" buttons in a dialog)
44 * \return The outcome code of this authentication
45 */
46int DummyPlugin::authenticate() {
47
48 /* Standard, inescapable authentication dialog
49 */
50 QDialog dummyDialog(0,
51 "Dummy dialog",
52 TRUE,
53 Qt::WStyle_NoBorder | Qt::WStyle_Customize | Qt::WStyle_StaysOnTop);
54
55 QRect desk = oApp->desktop()->geometry();
56 dummyDialog.setGeometry( 0, 0, desk.width(), desk.height() );
57
58 /* Creation of the particular widgets of our Dummy user interface
59 * Note: we have to resize the VBox to the QDialog size, since it's not
60 * done automatically.
61 */
62 QVBoxLayout layout(&dummyDialog);
63 layout.setSpacing(11);
64 layout.setMargin(11);
65 layout.setAlignment( Qt::AlignTop );
66
67 QLabel title("<center><h1>" + tr("\"Dummy\" <br />demonstration plugin") + "</h1></center>", &dummyDialog);
68 QLabel subTitle("<center><h2>" +tr("You can simulate the following outcomes:") + "</h2></center>", &dummyDialog);
69 layout.addWidget(&title);
70 layout.addWidget(&subTitle);
71
72 QHBoxLayout hl(&layout);
73 QPushButton pbSuccess("Success", &dummyDialog);
74 QPushButton pbSkip("Skip", &dummyDialog);
75 QPushButton pbFailure("Failure", &dummyDialog);
76 hl.addWidget(&pbSuccess, 0, Qt::AlignHCenter);
77 hl.addWidget(&pbSkip, 0, Qt::AlignHCenter);
78 hl.addWidget(&pbFailure, 0, Qt::AlignHCenter);
79
80 /* Linking our pushbuttons to exit functions
81 * (each result button here has a corresponding slot)
82 */
83 QObject::connect(&pbSuccess, SIGNAL(clicked()), this, SLOT(success()));
84 QObject::connect(&pbFailure, SIGNAL(clicked()), this, SLOT(failure()));
85 QObject::connect(&pbSkip, SIGNAL(clicked()), this, SLOT(skip()));
86
87 /* The value of the signal these three slots will emit corresponds to
88 * the different values we want to return
89 */
90 QObject::connect(this, SIGNAL(emitCode(int)), &dummyDialog, SLOT(done(int)));
91 return dummyDialog.exec();
92}
diff --git a/noncore/securityplugins/dummy/dummyplugin.h b/noncore/securityplugins/dummy/dummyplugin.h
new file mode 100644
index 0000000..9680dff
--- a/dev/null
+++ b/noncore/securityplugins/dummy/dummyplugin.h
@@ -0,0 +1,66 @@
1/**
2 * \file dummyplugin.h
3 * \brief Standard Opie multiauth plugin definition
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 DUMMY_PLUGIN_H
35#define DUMMY_PLUGIN_H
36
37#include <qobject.h>
38#include <qstring.h>
39#include <opie2/multiauthplugininterface.h>
40
41/// Multi-authentication example plugin, implementing a trivial 'yes/no' verification.
42/**
43 * The plugin itself, implementing the main authenticate() function.
44 */
45class DummyPlugin : public QObject, public MultiauthPluginObject {
46
47 Q_OBJECT
48
49 public:
50 int authenticate();
51 MultiauthConfigWidget * configWidget(QWidget * parent);
52 QString pixmapNameConfig() const;
53 QString pixmapNameWidget() const;
54 QString pluginName() const;
55
56 signals:
57 /// Signal carrying the result code of this plugin
58 void emitCode(int resultCode);
59
60 private slots:
61 void success();
62 void failure();
63 void skip();
64};
65
66#endif
diff --git a/noncore/securityplugins/dummy/dummyplugin.pro b/noncore/securityplugins/dummy/dummyplugin.pro
new file mode 100644
index 0000000..bb9971c
--- a/dev/null
+++ b/noncore/securityplugins/dummy/dummyplugin.pro
@@ -0,0 +1,19 @@
1TEMPLATE = lib
2CONFIG += qt warn_on
3CONFIG -= moc
4
5 HEADERS = dummyplugin.h dummypluginimpl.h
6
7 SOURCES = dummyplugin.cpp dummypluginimpl.cpp
8
9
10 INCLUDEPATH+= $(OPIEDIR)/include
11 DEPENDPATH+=
12
13 LIBS += -lqpe -lopieui2
14
15DESTDIR = $(OPIEDIR)/plugins/security
16TARGET = multiauthdummyplugin
17
18include ( $(OPIEDIR)/include.pro )
19
diff --git a/noncore/securityplugins/dummy/dummypluginimpl.cpp b/noncore/securityplugins/dummy/dummypluginimpl.cpp
new file mode 100644
index 0000000..518996c
--- a/dev/null
+++ b/noncore/securityplugins/dummy/dummypluginimpl.cpp
@@ -0,0 +1,28 @@
1#include "dummypluginimpl.h"
2
3DummyPluginImpl::DummyPluginImpl() {
4 dummyPlugin = new DummyPlugin();
5}
6
7DummyPluginImpl::~DummyPluginImpl() {
8 delete dummyPlugin;
9}
10
11MultiauthPluginObject* DummyPluginImpl::plugin() {
12 return dummyPlugin;
13}
14
15Q_EXPORT_INTERFACE() {
16 Q_CREATE_INSTANCE( DummyPluginImpl )
17}
18
19QRESULT DummyPluginImpl::queryInterface( const QUuid & uuid, QUnknownInterface **iface ) {
20 *iface = 0;
21 if ( ( uuid == IID_QUnknown ) || ( uuid == IID_MultiauthPluginInterface ) ) {
22 *iface = this, (*iface)->addRef();
23 } else {
24 return QE_NOINTERFACE;
25 }
26 return QS_OK;
27
28}
diff --git a/noncore/securityplugins/dummy/dummypluginimpl.h b/noncore/securityplugins/dummy/dummypluginimpl.h
new file mode 100644
index 0000000..49a18cd
--- a/dev/null
+++ b/noncore/securityplugins/dummy/dummypluginimpl.h
@@ -0,0 +1,58 @@
1/**
2 * \file dummypluginimpl.h
3 * \brief Standard Opie multiauth plugin interface definition
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 DUMMY_PLUGIN_IMPL_H
35#define DUMMY_PLUGIN_IMPL_H
36
37#include "dummyplugin.h"
38
39/// Standard multiauth plugin class
40class DummyPluginImpl : public MultiauthPluginInterface{
41
42 public:
43 DummyPluginImpl();
44 virtual ~DummyPluginImpl();
45
46 QRESULT queryInterface( const QUuid &, QUnknownInterface** );
47 /// defines standard addRef() and release() functions
48 Q_REFCOUNT;
49
50 virtual MultiauthPluginObject *plugin();
51
52 private:
53 /// the plugin itself
54 DummyPlugin *dummyPlugin;
55 ulong ref;
56};
57
58#endif