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

tdeabc

  • tdeabc
addresslineedit.h
1 /*
2  This file is part of libtdeabc.
3  Copyright (c) 2002 Helge Deller <deller@gmx.de>
4  2002 Lubos Lunak <llunak@suse.cz>
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_ADDRESSLINEEDIT_H
23 #define KABC_ADDRESSLINEEDIT_H
24 // $Id$
25 
26 #include <tqobject.h>
27 #include <tqptrlist.h>
28 #include <tqtimer.h>
29 
30 #include "klineedit.h"
31 #include "kcompletion.h"
32 
33 class TDEConfig;
34 
35 namespace TDEABC {
36 
37 class LdapSearch;
38 
50 class KABC_EXPORT AddressLineEdit : public KLineEdit
51 {
52  TQ_OBJECT
53 public:
54  AddressLineEdit(TQWidget* parent, bool useCompletion = true,
55  const char *name = 0L);
56  virtual ~AddressLineEdit();
57 
62  virtual void setFont( const TQFont& );
63 
64  static TDEConfig *config();
65 
66 public slots:
70  void cursorAtEnd();
74  void enableCompletion( bool enable );
75 
76 protected:
81  virtual void loadAddresses();
82  void addAddress( const TQString& );
83  virtual void keyPressEvent(TQKeyEvent*);
84  virtual void dropEvent(TQDropEvent *e);
85  virtual void paste();
86  virtual void insert(const TQString &t);
87  virtual void mouseReleaseEvent( TQMouseEvent * e );
88  void doCompletion(bool ctrlT);
89 
90 private slots:
91  void slotCompletion() { doCompletion(false); }
92  void slotPopupCompletion( const TQString& );
93  void slotStartLDAPLookup();
94  void slotLDAPSearchData( const TQStringList& );
95 
96 private:
97  void init();
98  void startLoadingLDAPEntries();
99  void stopLDAPLookup();
100  TQStringList addresses();
101  TQStringList removeMailDupes( const TQStringList& adrs );
102 
103  TQString m_previousAddresses;
104  bool m_useCompletion;
105  bool m_completionInitialized;
106  bool m_smartPaste;
107  TQString m_typedText; // unused
108 
109  static bool s_addressesDirty;
110  static TDECompletion *s_completion;
111  static TQTimer *s_LDAPTimer;
112  static LdapSearch *s_LDAPSearch;
113  static TQString *s_LDAPText;
114  static AddressLineEdit *s_LDAPLineEdit;
115  static TDEConfig *s_config;
116 
117 private:
118  class AddressLineEditPrivate* d;
119 };
120 
121 }
122 
123 #endif /* KABC_ADDRESSLINEEDIT_H */
KLineEdit
TDEABC::AddressLineEdit
A lineedit with LDAP and tdeabc completion.
Definition: addresslineedit.h:51
TDEABC::LdapSearch
This class is internal.
Definition: ldapclient.h:208
TDECompletion
TDEConfig
TDEABC
static data, shared by ALL addressee objects
Definition: address.h:48

tdeabc

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

tdeabc

Skip menu "tdeabc"
  • arts
  • dcop
  • dnssd
  • interfaces
  •   kspeech
  •     interface
  •     library
  •   tdetexteditor
  • kate
  • kded
  • kdoctools
  • kimgio
  • kjs
  • libtdemid
  • libtdescreensaver
  • tdeabc
  • tdecmshell
  • tdecore
  • tdefx
  • tdehtml
  • tdeinit
  • tdeio
  •   bookmarks
  •   httpfilter
  •   kpasswdserver
  •   kssl
  •   tdefile
  •   tdeio
  •   tdeioexec
  • tdeioslave
  •   http
  • tdemdi
  •   tdemdi
  • tdenewstuff
  • tdeparts
  • tdeprint
  • tderandr
  • tderesources
  • tdespell2
  • tdesu
  • tdeui
  • tdeunittest
  • tdeutils
  • tdewallet
Generated for tdeabc by doxygen 1.9.1
This website is maintained by Timothy Pearson.