viewwrapper.h
00001 #ifndef VIEWWRAPPER_H 00002 #define VIEWWRAPPER_H 00003 00004 /* 00005 This file is part of KAddressBook. 00006 Copyright (c) 2002 Mike Pilone <mpilone@slac.com> 00007 00008 This program is free software; you can redistribute it and/or modify 00009 it under the terms of the GNU General Public License as published by 00010 the Free Software Foundation; either version 2 of the License, or 00011 (at your option) any later version. 00012 00013 This program is distributed in the hope that it will be useful, 00014 but WITHOUT ANY WARRANTY; without even the implied warranty of 00015 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00016 GNU General Public License for more details. 00017 00018 You should have received a copy of the GNU General Public License 00019 along with this program; if not, write to the Free Software 00020 Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. 00021 00022 As a special exception, permission is given to link this program 00023 with any edition of Qt, and distribute the resulting executable, 00024 without including the source code for Qt in the source distribution. 00025 */ 00026 00027 #include <qstring.h> 00028 00029 class QWidget; 00030 class KAddressBookView; 00031 class ConfigureViewDialog; 00032 00033 namespace KABC { class AddressBook; } 00034 00043 class ViewWrapper 00044 { 00045 public: 00046 ViewWrapper(); 00047 virtual ~ViewWrapper(); 00048 00052 virtual QString type() const = 0; 00053 00058 virtual QString description() const = 0; 00059 00063 virtual KAddressBookView *createView(KABC::AddressBook *doc, 00064 QWidget *parent, 00065 const char *name) = 0; 00066 00075 virtual ConfigureViewDialog *createConfigureViewDialog( 00076 const QString &viewName, 00077 KABC::AddressBook *doc, 00078 QWidget *parent, 00079 const char *name); 00080 }; 00081 00082 #endif