kword

KWordMailMergeDatabaseIface.h
1/* This file is part of the KDE project
2 Copyright (C) 2001 Joseph Wenninger <jowenn@kde.org>
3
4 This library is free software; you can redistribute it and/or
5 modify it under the terms of the GNU Library General Public
6 License as published by the Free Software Foundation; either
7 version 2 of the License.
8
9 This library is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 Library General Public License for more details.
13
14 You should have received a copy of the GNU Library General Public License
15 along with this library; see the file COPYING.LIB. If not, write to
16 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
17 * Boston, MA 02110-1301, USA.
18*/
19
20#ifndef __KWordMailMergeDatabaseIface_h__
21#define __KWordMailMergeDatabaseIface_h__
22
23#include <dcopobject.h>
24#include <tqstringlist.h>
28class KWordMailMergeDatabaseIface : public DCOPObject
29{
30 K_DCOP
31public:
32 KWordMailMergeDatabaseIface(const TQCString &name);
34k_dcop:
35 virtual void refresh(bool)=0; //will not be blocked when the configuration dialog is open
36
37 virtual TQStringList availablePlugins()=0; //will not be blocked when configuration dialog is open
38 virtual bool isConfigDialogShown()=0; // will not be blocked when the configuration dialog is open
39
40 /* first parameter plugin name
41 second parameter:
42 open :shows the open dialog if possible
43 create :shows the create dialog if possible
44 silent :doesn't do any further actions than loading
45 This call will return false, when the plugin couldn't be loaded,
46 the user rejected to change the datasource or the configuration dialog is open
47 */
48 virtual bool loadPlugin(const TQString &name,const TQString &command)=0;
49};
50
51#endif
52
DCOP interface for the MailMergeDataBase class.