kaddressbook Library API Documentation

core.h

00001 /* 00002 This file is part of KAddressbook. 00003 Copyright (c) 2003 Tobias Koenig <tokoe@kde.org> 00004 00005 This program is free software; you can redistribute it and/or modify 00006 it under the terms of the GNU General Public License as published by 00007 the Free Software Foundation; either version 2 of the License, or 00008 (at your option) any later version. 00009 00010 This program is distributed in the hope that it will be useful, 00011 but WITHOUT ANY WARRANTY; without even the implied warranty of 00012 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00013 GNU General Public License for more details. 00014 00015 You should have received a copy of the GNU General Public License 00016 along with this program; if not, write to the Free Software 00017 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 00018 00019 As a special exception, permission is given to link this program 00020 with any edition of Qt, and distribute the resulting executable, 00021 without including the source code for Qt in the source distribution. 00022 */ 00023 00024 #ifndef KAB_CORE_H 00025 #define KAB_CORE_H 00026 00027 #include <qobject.h> 00028 00029 #include <kabc/field.h> 00030 #include <kxmlguiclient.h> 00031 00032 namespace KABC { 00033 class AddressBook; 00034 class Resource; 00035 } 00036 00037 class QWidget; 00038 00039 class KActionCollection; 00040 class KConfig; 00041 class KURL; 00042 00043 namespace KAB { 00044 00045 class Core : public QObject 00046 { 00047 Q_OBJECT 00048 00049 public: 00050 Core( KXMLGUIClient *client, QObject *parent, const char *name = 0 ); 00051 00055 virtual KABC::AddressBook *addressBook() const = 0; 00056 00060 virtual KConfig *config() const = 0; 00061 00066 virtual KActionCollection *actionCollection() const = 0; 00067 00071 virtual KXMLGUIClient *guiClient() const { return mGUIClient; } 00072 00076 virtual KABC::Field *currentSearchField() const = 0; 00077 00081 virtual KABC::Field *currentSortField() const = 0; 00082 00086 virtual QStringList selectedUIDs() const = 0; 00087 00093 virtual KABC::Resource *requestResource( QWidget *parent ) = 0; 00094 00098 virtual QWidget *widget() const = 0; 00099 00105 virtual void deleteContacts( const QStringList &uids ) = 0; 00106 00107 public slots: 00111 virtual void setContactSelected( const QString &uid ) = 0; 00112 00116 virtual void setSearchFields( const KABC::Field::List &fields ) = 0; 00117 00121 virtual void addEmail( const QString& addr ) = 0; 00122 00126 virtual void importVCard( const KURL& url ) = 0; 00127 00131 virtual void importVCard( const QString& vCard ) = 0; 00132 00136 virtual void newContact() = 0; 00137 00142 virtual QString getNameByPhone( const QString& phone ) = 0; 00143 00147 virtual void editContact( const QString &uid = QString::null ) = 0; 00148 00149 private: 00150 KXMLGUIClient *mGUIClient; 00151 }; 00152 00153 } 00154 00155 #endif
KDE Logo
This file is part of the documentation for kaddressbook Library Version 3.2.2.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Wed Jul 28 23:58:08 2004 by doxygen 1.3.7 written by Dimitri van Heesch, © 1997-2003