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

kabc

  • kabc
  • plugins
  • ldapkio
resourceldapkio.h
1 /*
2  This file is part of libkabc.
3  Copyright (c) 2003 Tobias Koenig <tokoe@kde.org>
4  Copyright (c) 2004 Szombathelyi György <gyurco@freemail.hu>
5 
6  This library is free software; you can redistribute it and/or
7  modify it under the terms of the GNU Library General Public
8  License as published by the Free Software Foundation; either
9  version 2 of the License, or (at your option) any later version.
10 
11  This library is distributed in the hope that it will be useful,
12  but WITHOUT ANY WARRANTY; without even the implied warranty of
13  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14  Library General Public License for more details.
15 
16  You should have received a copy of the GNU Library General Public License
17  along with this library; see the file COPYING.LIB. If not, write to
18  the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
19  Boston, MA 02110-1301, USA.
20 */
21 
22 #ifndef KABC_RESOURCELDAPKIO_H
23 #define KABC_RESOURCELDAPKIO_H
24 
25 #include <kio/job.h>
26 #include "kabc/resource.h"
27 
28 namespace KABC {
29 
30 class KABC_LDAPKIO_EXPORT ResourceLDAPKIO : public Resource
31 {
32  Q_OBJECT
33 
34  public:
35  enum CachePolicy {
36  Cache_No,
37  Cache_NoConnection,
38  Cache_Always
39  };
40 
41  ResourceLDAPKIO();
42  explicit ResourceLDAPKIO( const KConfigGroup &group );
43  virtual ~ResourceLDAPKIO();
47  virtual void init();
48 
49  virtual void writeConfig( KConfigGroup &group );
50 
51  virtual bool doOpen();
52  virtual void doClose();
53 
54  virtual Ticket *requestSaveTicket();
55  virtual void releaseSaveTicket( Ticket *ticket );
56 
57  virtual bool readOnly() const { return Resource::readOnly(); }
58  virtual void setReadOnly( bool value );
59 
60  virtual bool load();
61  virtual bool asyncLoad();
62  virtual bool save( Ticket *ticket );
63  virtual bool asyncSave( Ticket *ticket );
64 
65  virtual void removeAddressee( const Addressee &addr );
66 
67  void setUser( const QString &user );
68  QString user() const;
69 
70  void setPassword( const QString &password );
71  QString password() const;
72 
73  void setRealm( const QString &realm );
74  QString realm() const;
75 
76  void setBindDN( const QString &binddn );
77  QString bindDN() const;
78 
79  void setDn( const QString &dn );
80  QString dn() const;
81 
82  void setHost( const QString &host );
83  QString host() const;
84 
85  void setPort( int port );
86  int port() const;
87 
88  void setVer( int ver );
89  int ver() const;
90 
91  void setSizeLimit( int sizelimit );
92  int sizeLimit();
93 
94  void setTimeLimit( int timelimit );
95  int timeLimit();
96 
97  void setFilter( const QString &filter );
98  QString filter() const;
99 
100  void setIsAnonymous( bool value );
101  bool isAnonymous() const;
102 
103  void setAttributes( const QMap<QString, QString> &attributes );
104  QMap<QString, QString> attributes() const;
105 
106  void setRDNPrefix( int value );
107  int RDNPrefix() const;
108 
109  void setIsTLS( bool value );
110  bool isTLS() const;
111 
112  void setIsSSL( bool value );
113  bool isSSL() const;
114 
115  void setIsSubTree( bool value );
116  bool isSubTree() const;
117 
118  void setIsSASL( bool value );
119  bool isSASL() const;
120 
121  void setMech( const QString &mech );
122  QString mech() const;
123 
124  void setCachePolicy( int pol );
125  int cachePolicy() const;
126 
127  void setAutoCache( bool value );
128  bool autoCache();
129 
130  QString cacheDst() const;
131 
132  protected Q_SLOTS:
133  void entries( KIO::Job *job, const KIO::UDSEntryList &list );
134  void data( KIO::Job *job, const QByteArray &data );
135  void result( KJob *job );
136  void listResult( KJob *job );
137  void syncLoadSaveResult( KJob *job );
138  void saveResult( KJob *job );
139  void saveData( KIO::Job *job, QByteArray &data );
140  void loadCacheResult( KJob *job );
141 
142  Q_SIGNALS:
143  void leaveModality();
144 
145  private:
146  class Private;
147  Private *const d;
148 };
149 
150 }
151 
152 #endif
KRES::Resource::readOnly
virtual bool readOnly() const
This file is part of the KDE documentation.
Documentation copyright © 1996-2013 The KDE developers.
Generated on Tue Nov 26 2013 09:04:13 by doxygen 1.8.5 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.11.3 API Reference

Skip menu "kdepimlibs-4.11.3 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