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

tdeabc

  • tdeabc
  • plugins
  • dir
resourcedir.h
1/*
2 This file is part of libtdeabc.
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 <tdeconfig.h>
25#include <kdirwatch.h>
26
27#include <sys/types.h>
28
29#include <tdeabc/resource.h>
30
31class TQTimer;
32
33namespace TDEABC {
34
35class FormatPlugin;
36class Lock;
37
41class KABC_EXPORT ResourceDir : public Resource
42{
43 TQ_OBJECT
44
45 public:
46 ResourceDir( const TDEConfig* );
47 ResourceDir( const TQString &path, const TQString &type = "vcard" );
48 ~ResourceDir();
49
50 virtual void writeConfig( TDEConfig* );
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
TDEConfig
TDEABC
static data, shared by ALL addressee objects
Definition: address.h:48
TDEStdAccel::save
const TDEShortcut & save()

tdeabc

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

tdeabc

Skip menu "tdeabc"
  • arts
  • dcop
  • dnssd
  • interfaces
  •   kspeech
  •     interface
  •     library
  •   tdetexteditor
  • kate
  • kded
  • kdoctools
  • kimgio
  • kjs
  • libtdemid
  • libtdescreensaver
  • tdeabc
  • tdecmshell
  • tdecore
  • tdefx
  • tdehtml
  • tdeinit
  • tdeio
  •   bookmarks
  •   httpfilter
  •   kpasswdserver
  •   kssl
  •   tdefile
  •   tdeio
  •   tdeioexec
  • tdeioslave
  •   http
  • tdemdi
  •   tdemdi
  • tdenewstuff
  • tdeparts
  • tdeprint
  • tderandr
  • tderesources
  • tdespell2
  • tdesu
  • tdeui
  • tdeunittest
  • tdeutils
  • tdewallet
Generated for tdeabc by doxygen 1.9.4
This website is maintained by Timothy Pearson.