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

kabc

  • sources
  • kde-4.12
  • 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  KolabMap,
89  NetscapeMap,
90  EvolutionMap,
91  OutlookMap
92  };
93 
94  KComboBox *mMapCombo, *mRDNCombo;
95  QList< QMap<QString, QString> > mMapList;
96  QMap<QString, QString> mDefaultMap;
97  QHash<QString, KLineEdit*> mLineEditDict;
98  QHash<QString, QString> mNameDict;
99 };
100 
101 class OfflineDialog : public KDialog
102 {
103  Q_OBJECT
104 
105  public:
106  OfflineDialog( bool autoCache, int cachePolicy, const KUrl &src,
107  const QString &dst, QWidget *parent );
108  ~OfflineDialog();
109 
110  int cachePolicy() const;
111  bool autoCache() const;
112 
113  private Q_SLOTS:
114  void loadCache();
115 
116  private:
117  KUrl mSrc;
118  QString mDst;
119  QGroupBox *mCacheBox;
120  QButtonGroup *mCacheGroup;
121  QCheckBox *mAutoCache;
122 };
123 
124 }
125 
126 #endif
configwidget.h
KRES::Resource
KRES::ConfigWidget
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 23:01:05 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
  • kldap
  • kmbox
  • kmime
  • kpimidentities
  • kpimtextedit
  • kresources
  • ktnef
  • kxmlrpcclient
  • microblog

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