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

multiauthplugininterface.h

Go to the documentation of this file.
00001 
00008 /*
00009                =.            This file is part of the Opie Project
00010              .=l.            Copyright (C) 2004 Opie Developer Team <opie-devel@handhelds.org>
00011            .>+-=
00012  _;:,     .>    :=|.         This library is free software; you can
00013 .> <`_,   >  .   <=          redistribute it and/or  modify it under
00014 :`=1 )Y*s>-.--   :           the terms of the GNU Library General Public
00015 .="- .-=="i,     .._         License as published by the Free Software
00016  - .   .-<_>     .<>         Foundation; either version 2 of the License,
00017      ._= =}       :          or (at your option) any later version.
00018     .%`+i>       _;_.
00019     .i_,=:_.      -<s.       This library is distributed in the hope that
00020      +  .  -:.       =       it will be useful,  but WITHOUT ANY WARRANTY;
00021     : ..    .:,     . . .    without even the implied warranty of
00022     =_        +     =;=|`    MERCHANTABILITY or FITNESS FOR A
00023   _.=:.       :    :=>`:     PARTICULAR PURPOSE. See the GNU
00024 ..}^=.=       =       ;      Library General Public License for more
00025 ++=   -.     .`     .:       details.
00026  :     =  ...= . :.=-
00027  -.   .:....=;==+<;          You should have received a copy of the GNU
00028   -_. . .   )=.  =           Library General Public License along with
00029     --        :-=`           this library; see the file COPYING.LIB.
00030                              If not, write to the Free Software Foundation,
00031                              Inc., 59 Temple Place - Suite 330,
00032                              Boston, MA 02111-1307, USA.
00033 
00034 */
00035 
00036 #ifndef MULTIAUTH_PLUGIN_INTERFACE
00037 #define MULTIAUTH_PLUGIN_INTERFACE
00038 
00039 #include <qpe/qcom.h>
00040 
00041 #include "multiauthconfigwidget.h"
00042 
00043 class QString;
00044 class QWidget;
00045 
00046 namespace Opie {
00047 namespace Security {
00048 
00049 #ifndef IID_MultiauthPluginInterface
00052 #define IID_MultiauthPluginInterface QUuid(0xad5be8b1, 0x8421, 0x447b, 0x9a, 0xed, 0x25, 0x0b, 0xe1, 0xcd, 0xa4, 0x9c)
00053 #endif
00054 
00056 
00063 class MultiauthPluginObject {
00064 
00065     public:
00066 
00067         virtual ~MultiauthPluginObject() {};
00068 
00070         /*
00071          * \return The plugin should return its name here
00072          */
00073         virtual QString pluginName() const = 0;
00074 
00076         virtual int authenticate() = 0;
00077 
00079         enum authResult { Success = 0,
00080             Failure = 1,
00081             Skip = 2 };
00082 
00084         virtual MultiauthConfigWidget * configWidget(QWidget * parent) = 0;
00085 
00087 
00091         virtual QString pixmapNameConfig() const = 0;
00092 
00094 
00098         virtual  QString pixmapNameWidget() const = 0;
00099 
00100 };
00101 
00103 /*
00104  * This is part of the QCOM works. See example plugins how to do it right.
00105  * \see http://doc.trolltech.com/qtopia/html/pluginintro.html
00106  */
00107 struct MultiauthPluginInterface : public QUnknownInterface {
00109     virtual MultiauthPluginObject *plugin() = 0;
00110 };
00111 
00112 }
00113 }
00114 
00115 #endif

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