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

libkdepim

  • sources
  • kde-4.14
  • kdepim
  • libkdepim
  • addressline
  • addresslineedit
addresseelineedit_p.h
Go to the documentation of this file.
1 /*
2  Copyright (c) 2015 Montel Laurent <montel@kde.org>
3 
4  This program is free software; you can redistribute it and/or modify it
5  under the terms of the GNU General Public License, version 2, as
6  published by the Free Software Foundation.
7 
8  This program is distributed in the hope that it will be useful, but
9  WITHOUT ANY WARRANTY; without even the implied warranty of
10  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11  General Public License for more details.
12 
13  You should have received a copy of the GNU General Public License along
14  with this program; if not, write to the Free Software Foundation, Inc.,
15  51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
16 */
17 
18 #ifndef ADDRESSEELINEEDIT_P_H
19 #define ADDRESSEELINEEDIT_P_H
20 #include <QStringList>
21 #include <QObject>
22 #include <QTimer>
23 #include <QList>
24 #include <QColor>
25 #include "ldap/ldapclient.h"
26 #include "ldap/ldapclientsearch.h"
27 #include <Akonadi/Item>
28 #include <Akonadi/Collection>
29 #include <KLDAP/LdapServer>
30 
31 namespace KPIM {
32 class AddresseeLineEdit;
33 class AddresseeLineEditPrivate : public QObject
34 {
35  Q_OBJECT
36 public:
37  AddresseeLineEditPrivate( AddresseeLineEdit *qq, bool enableCompletion );
38  ~AddresseeLineEditPrivate();
39  QStringList cleanupEmailList(const QStringList &inputList);
40  void loadBalooBlackList();
41  void alternateColor();
42  void init();
43  void startLoadingLDAPEntries();
44  void stopLDAPLookup();
45  void setCompletedItems( const QStringList &items, bool autoSuggest );
46  void addCompletionItem( const QString &string, int weight, int source,
47  const QStringList *keyWords = 0 );
48  const QStringList adjustedCompletionItems( bool fullSearch );
49  void updateSearchString();
50  void startSearches();
51  void akonadiPerformSearch();
52  void akonadiHandlePending();
53  void doCompletion( bool ctrlT );
54 
55  bool showOU() const;
56  void setShowOU(bool showOU);
57 
58  bool useCompletion() const;
59  void setUseCompletion(bool useCompletion);
60 
61  bool completionInitialized() const;
62  void setCompletionInitialized(bool completionInitialized);
63 
64  bool smartPaste() const;
65  void setSmartPaste(bool smartPaste);
66 
67  bool searchExtended() const;
68  void setSearchExtended(bool searchExtended);
69 
70  QString searchString() const;
71  void setSearchString(const QString &searchString);
72 
73  bool enableBalooSearch() const;
74  void setEnableBalooSearch(bool enableBalooSearch);
75 
76  bool useSemicolonAsSeparator() const;
77  void setUseSemicolonAsSeparator(bool useSemicolonAsSeparator);
78 
79  void removeCompletionSource(const QString &source);
80  int addCompletionSource(const QString &source, int weight);
81  void restartTime(const QString &searchString);
82 private Q_SLOTS:
83  void slotCompletion();
84  void slotPopupCompletion( const QString & );
85  void slotReturnPressed( const QString & );
86  void slotStartLDAPLookup();
87  void slotLDAPSearchData( const KLDAP::LdapResult::List & );
88  void slotEditCompletionOrder();
89  void slotUserCancelled( const QString & );
90  void slotAkonadiHandleItems( const Akonadi::Item::List &items );
91  void slotAkonadiSearchResult( KJob * );
92  void slotAkonadiCollectionsReceived( const Akonadi::Collection::List & );
93  void searchInBaloo();
94  void slotTriggerDelayedQueries();
95  void slotShowOUChanged( bool );
96  void slotConfigureBalooBlackList();
97 
98 private:
99  AddresseeLineEdit *q;
100  QTimer m_delayedQueryTimer;
101  QColor m_alternateColor;
102  QStringList m_balooBlackList;
103  QStringList m_domainExcludeList;
104  QString m_previousAddresses;
105  QString m_searchString;
106  bool m_useCompletion;
107  bool m_completionInitialized;
108  bool m_smartPaste;
109  bool m_addressBookConnected;
110  bool m_lastSearchMode;
111  bool m_searchExtended; //has \" been added?
112  bool m_useSemicolonAsSeparator;
113  bool m_showOU;
114  bool m_enableBalooSearch;
115 };
116 }
117 
118 #endif // ADDRESSEELINEEDIT_P_H
119 
KPIM::AddresseeLineEditPrivate::setSearchExtended
void setSearchExtended(bool searchExtended)
KPIM::AddresseeLineEditPrivate::setCompletedItems
void setCompletedItems(const QStringList &items, bool autoSuggest)
KPIM::AddresseeLineEditPrivate::cleanupEmailList
QStringList cleanupEmailList(const QStringList &inputList)
KPIM::AddresseeLineEditPrivate::setSearchString
void setSearchString(const QString &searchString)
KPIM::AddresseeLineEditPrivate::smartPaste
bool smartPaste() const
ldapclientsearch.h
KPIM::AddresseeLineEditPrivate::init
void init()
KPIM::AddresseeLineEditPrivate::startLoadingLDAPEntries
void startLoadingLDAPEntries()
KPIM::AddresseeLineEditPrivate::useSemicolonAsSeparator
bool useSemicolonAsSeparator() const
KPIM::AddresseeLineEditPrivate::setCompletionInitialized
void setCompletionInitialized(bool completionInitialized)
KPIM::AddresseeLineEditPrivate::completionInitialized
bool completionInitialized() const
KPIM::AddresseeLineEditPrivate::useCompletion
bool useCompletion() const
KPIM::AddresseeLineEditPrivate::setShowOU
void setShowOU(bool showOU)
ldapclient.h
KPIM::AddresseeLineEditPrivate::loadBalooBlackList
void loadBalooBlackList()
KPIM::AddresseeLineEditPrivate::akonadiHandlePending
void akonadiHandlePending()
KPIM::AddresseeLineEditPrivate::updateSearchString
void updateSearchString()
QTimer
KPIM::AddresseeLineEditPrivate
Definition: addresseelineedit_p.h:33
KPIM::AddresseeLineEdit
Definition: addresseelineedit.h:55
QObject
KPIM::AddresseeLineEditPrivate::searchExtended
bool searchExtended() const
KPIM::AddresseeLineEditPrivate::setUseSemicolonAsSeparator
void setUseSemicolonAsSeparator(bool useSemicolonAsSeparator)
KPIM::AddresseeLineEditPrivate::stopLDAPLookup
void stopLDAPLookup()
QString
QList
QColor
KPIM::AddresseeLineEditPrivate::doCompletion
void doCompletion(bool ctrlT)
KPIM::AddresseeLineEditPrivate::alternateColor
void alternateColor()
KPIM::AddresseeLineEditPrivate::restartTime
void restartTime(const QString &searchString)
QStringList
KPIM::AddresseeLineEditPrivate::startSearches
void startSearches()
KPIM::AddresseeLineEditPrivate::searchString
QString searchString() const
KPIM::AddresseeLineEditPrivate::AddresseeLineEditPrivate
AddresseeLineEditPrivate(AddresseeLineEdit *qq, bool enableCompletion)
KPIM::AddresseeLineEditPrivate::removeCompletionSource
void removeCompletionSource(const QString &source)
KPIM::AddresseeLineEditPrivate::showOU
bool showOU() const
KPIM::AddresseeLineEditPrivate::akonadiPerformSearch
void akonadiPerformSearch()
KPIM::AddresseeLineEditPrivate::setUseCompletion
void setUseCompletion(bool useCompletion)
KPIM::AddresseeLineEditPrivate::~AddresseeLineEditPrivate
~AddresseeLineEditPrivate()
KPIM::AddresseeLineEditPrivate::addCompletionSource
int addCompletionSource(const QString &source, int weight)
KPIM::AddresseeLineEditPrivate::enableBalooSearch
bool enableBalooSearch() const
KPIM::AddresseeLineEditPrivate::addCompletionItem
void addCompletionItem(const QString &string, int weight, int source, const QStringList *keyWords=0)
KPIM::AddresseeLineEditPrivate::setEnableBalooSearch
void setEnableBalooSearch(bool enableBalooSearch)
KJob
KPIM::AddresseeLineEditPrivate::adjustedCompletionItems
const QStringList adjustedCompletionItems(bool fullSearch)
KPIM::AddresseeLineEditPrivate::setSmartPaste
void setSmartPaste(bool smartPaste)
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:33:50 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

libkdepim

Skip menu "libkdepim"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Modules

kdepim API Reference

Skip menu "kdepim API Reference"
  • akonadi_next
  • akregator
  • blogilo
  • calendarsupport
  • console
  •   kabcclient
  •   konsolekalendar
  • kaddressbook
  • kalarm
  •   lib
  • kdgantt2
  • kjots
  • kleopatra
  • kmail
  • knode
  • knotes
  • kontact
  • korgac
  • korganizer
  • ktimetracker
  • libkdepim
  • libkleo
  • libkpgp
  • mailcommon
  • messagelist
  • messageviewer
  • pimprint

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