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

kabc

  • 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 RESOURCELDAPCONFIG_H
22 #define RESOURCELDAPCONFIG_H
23 
24 #include <tqmap.h>
25 #include <tqradiobutton.h>
26 #include <tqcombobox.h>
27 #include <tqdict.h>
28 
29 #include <kdialogbase.h>
30 #include <kresources/configwidget.h>
31 #include <kabc/ldif.h>
32 #include <kabc/ldapconfigwidget.h>
33 
34 
35 class TQCheckBox;
36 class TQPushButton;
37 class TQSpinBox;
38 class TQString;
39 
40 class KComboBox;
41 class KLineEdit;
42 
43 namespace KABC {
44 
45 class KABC_EXPORT ResourceLDAPKIOConfig : public KRES::ConfigWidget
46 {
47  Q_OBJECT
48 
49  public:
50  ResourceLDAPKIOConfig( TQWidget* parent = 0, const char* name = 0 );
51 
52  public slots:
53  void loadSettings( KRES::Resource* );
54  void saveSettings( KRES::Resource* );
55 
56  private slots:
57  void editAttributes();
58  void editCache();
59  private:
60  TQPushButton *mEditButton, *mCacheButton;
61  LdapConfigWidget *cfg;
62  TQCheckBox *mSubTree;
63  TQMap<TQString, TQString> mAttributes;
64  int mRDNPrefix, mCachePolicy;
65  bool mAutoCache;
66  TQString mCacheDst;
67 };
68 
69 class AttributesDialog : public KDialogBase
70 {
71  Q_OBJECT
72 
73  public:
74  AttributesDialog( const TQMap<TQString, TQString> &attributes, int rdnprefix,
75  TQWidget *parent, const char *name = 0 );
76  ~AttributesDialog();
77 
78  TQMap<TQString, TQString> attributes() const;
79  int rdnprefix() const;
80 
81  private slots:
82  void mapChanged( int pos );
83 
84  private:
85  enum { UserMap, KolabMap, NetscapeMap, EvolutionMap, OutlookMap };
86 
87  KComboBox *mMapCombo, *mRDNCombo;
88  TQValueList< TQMap<TQString, TQString> > mMapList;
89  TQMap<TQString, TQString> mDefaultMap;
90  TQDict<KLineEdit> mLineEditDict;
91  TQDict<TQString> mNameDict;
92 };
93 
94 class OfflineDialog : public KDialogBase
95 {
96  Q_OBJECT
97 
98  public:
99  OfflineDialog( bool autoCache, int cachePolicy, const KURL &src,
100  const TQString &dst, TQWidget *parent, const char *name = 0 );
101  ~OfflineDialog();
102 
103  int cachePolicy() const;
104  bool autoCache() const;
105 
106  private slots:
107  void loadCache();
108 
109  private:
110  KURL mSrc;
111  TQString mDst;
112  TQButtonGroup *mCacheGroup;
113  TQCheckBox *mAutoCache;
114 };
115 
116 }
117 
118 #endif
KURL
KDialogBase
KLineEdit
KABC
static data, shared by ALL addressee objects
Definition: address.h:48
KComboBox

kabc

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

kabc

Skip menu "kabc"
  • arts
  • dcop
  • dnssd
  • interfaces
  •     interface
  •     library
  •   kspeech
  •   ktexteditor
  • kabc
  • kate
  • kcmshell
  • kdecore
  • kded
  • kdefx
  • kdeprint
  • kdesu
  • kdeui
  • kdoctools
  • khtml
  • kimgio
  • kinit
  • kio
  •   bookmarks
  •   httpfilter
  •   kfile
  •   kio
  •   kioexec
  •   kpasswdserver
  •   kssl
  • kioslave
  •   http
  • kjs
  • kmdi
  •   kmdi
  • knewstuff
  • kparts
  • krandr
  • kresources
  • kspell2
  • kunittest
  • kutils
  • kwallet
  • libkmid
  • libkscreensaver
Generated for kabc by doxygen 1.8.8
This website is maintained by Timothy Pearson.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. |