kword

KWordMailMergeDatabaseIface.h

00001 /* This file is part of the KDE project
00002    Copyright (C) 2001 Joseph Wenninger <jowenn@kde.org>
00003 
00004    This library is free software; you can redistribute it and/or
00005    modify it under the terms of the GNU Library General Public
00006    License as published by the Free Software Foundation; either
00007    version 2 of the License.
00008 
00009    This library is distributed in the hope that it will be useful,
00010    but WITHOUT ANY WARRANTY; without even the implied warranty of
00011    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00012    Library General Public License for more details.
00013 
00014    You should have received a copy of the GNU Library General Public License
00015    along with this library; see the file COPYING.LIB.  If not, write to
00016    the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
00017  * Boston, MA 02110-1301, USA.
00018 */
00019 
00020 #ifndef __KWordMailMergeDatabaseIface_h__
00021 #define  __KWordMailMergeDatabaseIface_h__
00022 
00023 #include <dcopobject.h>
00024 #include <qstringlist.h>
00028 class KWordMailMergeDatabaseIface : public DCOPObject
00029 {
00030     K_DCOP
00031 public:
00032     KWordMailMergeDatabaseIface(const QCString &name);
00033     ~KWordMailMergeDatabaseIface();
00034 k_dcop:
00035     virtual void refresh(bool)=0; //will not be blocked when the configuration dialog is open
00036 
00037     virtual QStringList availablePlugins()=0; //will not be blocked when configuration dialog is open
00038     virtual bool isConfigDialogShown()=0; // will not be blocked when the configuration dialog is open
00039 
00040     /* first parameter plugin name
00041        second parameter:
00042                 open    :shows the open dialog if possible
00043                 create  :shows the create dialog if possible
00044                 silent  :doesn't do any further actions than loading
00045         This call will return false, when the plugin couldn't be loaded,
00046         the user rejected to change the datasource or the configuration dialog is open
00047     */
00048     virtual bool loadPlugin(const QString &name,const QString &command)=0;
00049 };
00050 
00051 #endif
00052 
KDE Home | KDE Accessibility Home | Description of Access Keys