• Skip to content
  • Skip to link menu
  • KDE API Reference
  • kdepimlibs-4.10.5 API Reference
  • KDE Home
  • Contact Us
 

kabc

  • kabc
  • plugins
  • dir
resourcedir.h
1 /*
2  This file is part of libkabc.
3  Copyright (c) 2002 - 2003 Tobias Koenig <tokoe@kde.org>
4 
5  This library is free software; you can redistribute it and/or
6  modify it under the terms of the GNU Library General Public
7  License as published by the Free Software Foundation; either
8  version 2 of the License, or (at your option) any later version.
9 
10  This library is distributed in the hope that it will be useful,
11  but WITHOUT ANY WARRANTY; without even the implied warranty of
12  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13  Library General Public License for more details.
14 
15  You should have received a copy of the GNU Library General Public License
16  along with this library; see the file COPYING.LIB. If not, write to
17  the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
18  Boston, MA 02110-1301, USA.
19 */
20 
21 #ifndef KABC_RESOURCEDIR_H
22 #define KABC_RESOURCEDIR_H
23 
24 #include "kabc/resource.h"
25 #include <kdirwatch.h>
26 #include <sys/types.h>
27 
28 namespace KABC {
29 
30 class Format;
31 
35 class KABC_DIR_EXPORT ResourceDir : public Resource
36 {
37  Q_OBJECT
38 
39  public:
40  ResourceDir();
41  explicit ResourceDir( const KConfigGroup &group );
42  explicit ResourceDir( const QString &path, const QString &type = QLatin1String( "vcard" ) );
43  ~ResourceDir();
44 
45  virtual void writeConfig( KConfigGroup &group );
46 
47  virtual bool doOpen();
48  virtual void doClose();
49 
50  virtual Ticket *requestSaveTicket();
51  virtual void releaseSaveTicket( Ticket *ticket );
52 
53  virtual bool load();
54  virtual bool asyncLoad();
55  virtual bool save( Ticket * ticket );
56  virtual bool asyncSave( Ticket * ticket );
57 
61  void setPath( const QString & );
62 
66  QString path() const;
67 
71  void setFormat( const QString &format );
72 
76  QString format() const;
77 
86  virtual void removeAddressee( const Addressee &addr );
87 
88  private:
89  class Private;
90  Private *const d;
91 
92  Q_PRIVATE_SLOT( d, void pathChanged() )
93 };
94 
95 }
96 
97 #endif
This file is part of the KDE documentation.
Documentation copyright © 1996-2013 The KDE developers.
Generated on Sat Jul 13 2013 01:29:41 by doxygen 1.8.3.1 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

kabc

Skip menu "kabc"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • Related Pages

kdepimlibs-4.10.5 API Reference

Skip menu "kdepimlibs-4.10.5 API Reference"
  • akonadi
  •   contact
  •   kmime
  •   socialutils
  • kabc
  • kalarmcal
  • kblog
  • kcal
  • kcalcore
  • kcalutils
  • kholidays
  • kimap
  • kioslave
  •   imap4
  •   mbox
  •   nntp
  • kldap
  • kmbox
  • kmime
  • kontactinterface
  • kpimidentities
  • kpimtextedit
  • kpimutils
  • kresources
  • ktnef
  • kxmlrpcclient
  • mailtransport
  • microblog
  • qgpgme
  • syndication
  •   atom
  •   rdf
  •   rss2
Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal