• Skip to content
  • Skip to link menu
  • KDE API Reference
  • kdepimlibs-4.14.10 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 "kabc_ldapkio_export.h"
26#include <kio/job.h>
27#include "kabc/resource.h"
28
29namespace KABC {
30
31class KABC_LDAPKIO_EXPORT ResourceLDAPKIO : public Resource
32{
33 Q_OBJECT
34
35 public:
36 enum CachePolicy {
37 Cache_No,
38 Cache_NoConnection,
39 Cache_Always
40 };
41
42 ResourceLDAPKIO();
43 explicit ResourceLDAPKIO( const KConfigGroup &group );
44 virtual ~ResourceLDAPKIO();
48 virtual void init();
49
50 virtual void writeConfig( KConfigGroup &group );
51
52 virtual bool doOpen();
53 virtual void doClose();
54
55 virtual Ticket *requestSaveTicket();
56 virtual void releaseSaveTicket( Ticket *ticket );
57
58 virtual bool readOnly() const { return Resource::readOnly(); }
59 virtual void setReadOnly( bool value );
60
61 virtual bool load();
62 virtual bool asyncLoad();
63 virtual bool save( Ticket *ticket );
64 virtual bool asyncSave( Ticket *ticket );
65
66 virtual void removeAddressee( const Addressee &addr );
67
68 void setUser( const QString &user );
69 QString user() const;
70
71 void setPassword( const QString &password );
72 QString password() const;
73
74 void setRealm( const QString &realm );
75 QString realm() const;
76
77 void setBindDN( const QString &binddn );
78 QString bindDN() const;
79
80 void setDn( const QString &dn );
81 QString dn() const;
82
83 void setHost( const QString &host );
84 QString host() const;
85
86 void setPort( int port );
87 int port() const;
88
89 void setVer( int ver );
90 int ver() const;
91
92 void setSizeLimit( int sizelimit );
93 int sizeLimit();
94
95 void setTimeLimit( int timelimit );
96 int timeLimit();
97
98 void setFilter( const QString &filter );
99 QString filter() const;
100
101 void setIsAnonymous( bool value );
102 bool isAnonymous() const;
103
104 void setAttributes( const QMap<QString, QString> &attributes );
105 QMap<QString, QString> attributes() const;
106
107 void setRDNPrefix( int value );
108 int RDNPrefix() const;
109
110 void setIsTLS( bool value );
111 bool isTLS() const;
112
113 void setIsSSL( bool value );
114 bool isSSL() const;
115
116 void setIsSubTree( bool value );
117 bool isSubTree() const;
118
119 void setIsSASL( bool value );
120 bool isSASL() const;
121
122 void setMech( const QString &mech );
123 QString mech() const;
124
125 void setCachePolicy( int pol );
126 int cachePolicy() const;
127
128 void setAutoCache( bool value );
129 bool autoCache();
130
131 QString cacheDst() const;
132
133 protected Q_SLOTS:
134 void entries( KIO::Job *job, const KIO::UDSEntryList &list );
135 void data( KIO::Job *job, const QByteArray &data );
136 void result( KJob *job );
137 void listResult( KJob *job );
138 void syncLoadSaveResult( KJob *job );
139 void saveResult( KJob *job );
140 void saveData( KIO::Job *job, QByteArray &data );
141 void loadCacheResult( KJob *job );
142
143 Q_SIGNALS:
144 void leaveModality();
145
146 private:
147 class Private;
148 Private *const d;
149};
150
151}
152
153#endif
KABC
Class that holds a Calendar Url (FBURL/CALADRURI/CALURI)
Definition address.h:29
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Wed Jan 24 2024 00:00:00 by doxygen 1.10.0 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.14.10 API Reference

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