kabc
resourcedir.h
00001 /* 00002 This file is part of libkabc. 00003 Copyright (c) 2002 - 2003 Tobias Koenig <tokoe@kde.org> 00004 00005 This library is free software; you can redistribute it and/or 00006 modify it under the terms of the GNU Library General Public 00007 License as published by the Free Software Foundation; either 00008 version 2 of the License, or (at your option) any later version. 00009 00010 This library 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 GNU 00013 Library General Public License for more details. 00014 00015 You should have received a copy of the GNU Library General Public License 00016 along with this library; see the file COPYING.LIB. If not, write to 00017 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, 00018 Boston, MA 02110-1301, USA. 00019 */ 00020 00021 #ifndef KABC_RESOURCEDIR_H 00022 #define KABC_RESOURCEDIR_H 00023 00024 #include "kabc/resource.h" 00025 #include <kdirwatch.h> 00026 #include <sys/types.h> 00027 00028 namespace KABC { 00029 00030 class Format; 00031 00035 class KABC_DIR_EXPORT ResourceDir : public Resource 00036 { 00037 Q_OBJECT 00038 00039 public: 00040 ResourceDir(); 00041 explicit ResourceDir( const KConfigGroup &group ); 00042 explicit ResourceDir( const QString &path, const QString &type = QLatin1String( "vcard" ) ); 00043 ~ResourceDir(); 00044 00045 virtual void writeConfig( KConfigGroup &group ); 00046 00047 virtual bool doOpen(); 00048 virtual void doClose(); 00049 00050 virtual Ticket *requestSaveTicket(); 00051 virtual void releaseSaveTicket( Ticket *ticket ); 00052 00053 virtual bool load(); 00054 virtual bool asyncLoad(); 00055 virtual bool save( Ticket * ticket ); 00056 virtual bool asyncSave( Ticket * ticket ); 00057 00061 void setPath( const QString & ); 00062 00066 QString path() const; 00067 00071 void setFormat( const QString &format ); 00072 00076 QString format() const; 00077 00086 virtual void removeAddressee( const Addressee &addr ); 00087 00088 private: 00089 class Private; 00090 Private *const d; 00091 00092 Q_PRIVATE_SLOT( d, void pathChanged() ) 00093 }; 00094 00095 } 00096 00097 #endif
This file is part of the KDE documentation.
Documentation copyright © 1996-2012 The KDE developers.
Generated on Thu Aug 2 2012 15:26:07 by doxygen 1.7.5 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2012 The KDE developers.
Generated on Thu Aug 2 2012 15:26:07 by doxygen 1.7.5 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.