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

kabc

  • sources
  • kde-4.14
  • kdepimlibs
  • kabc
  • plugins
  • ldapkio
resourceldapkioconfig.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_RESOURCELDAPKIOCONFIG_H
22 #define KABC_RESOURCELDAPKIOCONFIG_H
23 
24 #include "kabc_ldapkio_export.h"
25 #include "kresources/configwidget.h"
26 #include "kldap/ldapconfigwidget.h"
27 #include "kldap/ldif.h"
28 
29 #include <kdialog.h>
30 
31 #include <QButtonGroup>
32 #include <QComboBox>
33 #include <QGroupBox>
34 #include <QtCore/QHash>
35 #include <QtCore/QMap>
36 
37 class QCheckBox;
38 class QPushButton;
39 class QString;
40 
41 class KComboBox;
42 class KLineEdit;
43 
44 namespace KABC {
45 
46 class KABC_LDAPKIO_EXPORT ResourceLDAPKIOConfig : public KRES::ConfigWidget
47 {
48  Q_OBJECT
49 
50  public:
51  explicit ResourceLDAPKIOConfig( QWidget *parent = 0 );
52 
53  public Q_SLOTS:
54  void loadSettings( KRES::Resource *resource );
55  void saveSettings( KRES::Resource *resource );
56 
57  private Q_SLOTS:
58  void editAttributes();
59  void editCache();
60  private:
61  QPushButton *mEditButton, *mCacheButton;
62  KLDAP::LdapConfigWidget *mCfg;
63  QCheckBox *mSubTree;
64  QMap<QString, QString> mAttributes;
65  int mRDNPrefix, mCachePolicy;
66  bool mAutoCache;
67  QString mCacheDst;
68 };
69 
70 class AttributesDialog : public KDialog
71 {
72  Q_OBJECT
73 
74  public:
75  AttributesDialog( const QMap<QString, QString> &attributes, int rdnprefix,
76  QWidget *parent );
77  ~AttributesDialog();
78 
79  QMap<QString, QString> attributes() const;
80  int rdnprefix() const;
81 
82  private Q_SLOTS:
83  void mapChanged( int pos );
84 
85  private:
86  enum {
87  UserMap,
88  Kolab2Map,
89  Kolab3Map,
90  NetscapeMap,
91  EvolutionMap,
92  OutlookMap
93  };
94 
95  KComboBox *mMapCombo, *mRDNCombo;
96  QList< QMap<QString, QString> > mMapList;
97  QMap<QString, QString> mDefaultMap;
98  QHash<QString, KLineEdit*> mLineEditDict;
99  QHash<QString, QString> mNameDict;
100 };
101 
102 class OfflineDialog : public KDialog
103 {
104  Q_OBJECT
105 
106  public:
107  OfflineDialog( bool autoCache, int cachePolicy, const KUrl &src,
108  const QString &dst, QWidget *parent );
109  ~OfflineDialog();
110 
111  int cachePolicy() const;
112  bool autoCache() const;
113 
114  private Q_SLOTS:
115  void loadCache();
116 
117  private:
118  KUrl mSrc;
119  QString mDst;
120  QGroupBox *mCacheBox;
121  QButtonGroup *mCacheGroup;
122  QCheckBox *mAutoCache;
123 };
124 
125 }
126 
127 #endif
QWidget
QMap< QString, QString >
configwidget.h
QButtonGroup
QGroupBox
QHash< QString, KLineEdit * >
QCheckBox
QString
QList
Definition: contactgrouptool.h:30
KRES::Resource
QPushButton
KRES::ConfigWidget
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:38:39 by doxygen 1.8.7 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 API Reference

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

Search



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