17#include "pimcommonakonadi_export.h"
41class LdapClientSearch;
46class AddresseeLineEditPrivate;
47class PIMCOMMONAKONADI_EXPORT AddresseeLineEdit :
public KLineEdit
58 explicit AddresseeLineEdit(
QWidget *parent =
nullptr,
bool enableCompletion =
true);
63 ~AddresseeLineEdit()
override;
68 void allowSemicolonAsSeparator(
bool allow);
73 void setFont(
const QFont &font);
75 void setEnableBalooSearch(
bool enable);
76 [[nodiscard]]
bool enableBalooSearch()
const;
78 void setEnableAkonadiSearch(
bool enable);
79 [[nodiscard]]
bool enableAkonadiSearch()
const;
81 void setExpandIntern(
bool);
82 [[nodiscard]]
bool expandIntern()
const;
84 [[nodiscard]]
bool isCompletionEnabled()
const;
99 void addItem(
const Akonadi::Item &item,
int weight,
int source = -1);
108 [[nodiscard]]
int addCompletionSource(
const QString &name,
int weight);
110 void removeCompletionSource(
const QString &source);
111 void emitTextCompleted();
113 void callUserCancelled(
const QString &str);
114 void callSetCompletedText(
const QString & ,
bool );
115 void callSetCompletedText(
const QString &text);
116 void callSetUserSelection(
bool);
118 void updateBalooBlackList();
119 void updateCompletionOrder();
122 void setShowRecentAddresses(
bool b);
123 [[nodiscard]]
bool showRecentAddresses()
const;
125 void setRecentAddressConfig(
KConfig *config);
126 [[nodiscard]]
KConfig *recentAddressConfig()
const;
128 void configureCompletion();
132 [[nodiscard]]
bool canDeleteLineEdit()
const;
134 void textCompleted();
135 void addAddress(
const QString &address);
147 void enableCompletion(
bool enable);
153 void setText(
const QString &text)
override;
156 void slotEditingFinished();
157 void slotGroupSearchResult(
KJob *job);
173 virtual void paste();
188 void keyPressEvent(
QKeyEvent *)
override;
193 virtual QMenu *createStandardContextMenu();
207 PIMCOMMONAKONADI_NO_EXPORT
void groupExpandResult(
KJob *job);
210 AddresseeLineEditPrivate *
const d;
KIOWIDGETS_EXPORT PasteJob * paste(const QMimeData *mimeData, const QUrl &destDir, JobFlags flags=DefaultFlags)
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 4 2024 16:39:22 by
doxygen 1.12.0 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.