• Skip to content
  • Skip to link menu
Trinity API Reference
  • Trinity API Reference
  • kabc
 

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 <kconfig.h>
25 #include <kdirwatch.h>
26 
27 #include <sys/types.h>
28 
29 #include <kabc/resource.h>
30 
31 class TQTimer;
32 
33 namespace KABC {
34 
35 class FormatPlugin;
36 class Lock;
37 
41 class KABC_EXPORT ResourceDir : public Resource
42 {
43  Q_OBJECT
44 
45  public:
46  ResourceDir( const KConfig* );
47  ResourceDir( const TQString &path, const TQString &type = "vcard" );
48  ~ResourceDir();
49 
50  virtual void writeConfig( KConfig* );
51 
52  virtual bool doOpen();
53  virtual void doClose();
54 
55  virtual Ticket *requestSaveTicket();
56  virtual void releaseSaveTicket( Ticket* );
57 
58  virtual bool load();
59  virtual bool asyncLoad();
60  virtual bool save( Ticket* ticket );
61  virtual bool asyncSave( Ticket* ticket );
62 
66  void setPath( const TQString & );
67 
71  TQString path() const;
72 
76  void setFormat( const TQString &format );
77 
81  TQString format() const;
82 
87  virtual void removeAddressee( const Addressee& addr );
88 
89  protected slots:
90  void pathChanged();
91 
92  protected:
93  void init( const TQString &path, const TQString &format );
94 
95  private:
96  FormatPlugin *mFormat;
97 
98  KDirWatch mDirWatch;
99 
100  TQString mPath;
101  TQString mFormatName;
102 
103  Lock *mLock;
104 
105  bool mAsynchronous;
106 
107  class ResourceDirPrivate;
108  ResourceDirPrivate *d;
109 };
110 
111 }
112 
113 #endif

kabc

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

kabc

Skip menu "kabc"
  • arts
  • dcop
  • dnssd
  • interfaces
  •     interface
  •     library
  •   kspeech
  •   ktexteditor
  • kabc
  • kate
  • kcmshell
  • kdecore
  • kded
  • kdefx
  • kdeprint
  • kdesu
  • kdeui
  • kdoctools
  • khtml
  • kimgio
  • kinit
  • kio
  •   bookmarks
  •   httpfilter
  •   kfile
  •   kio
  •   kioexec
  •   kpasswdserver
  •   kssl
  • kioslave
  •   http
  • kjs
  • kmdi
  •   kmdi
  • knewstuff
  • kparts
  • krandr
  • kresources
  • kspell2
  • kunittest
  • kutils
  • kwallet
  • libkmid
  • libkscreensaver
Generated for kabc by doxygen 1.8.1.2
This website is maintained by Timothy Pearson.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. |