17#include "pimcommonakonadi_export.h"
40class LdapClientSearch;
41class LdapActivitiesAbstract;
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;
135 void textCompleted();
136 void addAddress(
const QString &address);
148 void enableCompletion(
bool enable);
154 void setText(
const QString &text)
override;
157 void slotEditingFinished();
158 void slotGroupSearchResult(
KJob *job);
174 virtual void paste();
189 void keyPressEvent(
QKeyEvent *)
override;
194 virtual QMenu *createStandardContextMenu();
208 PIMCOMMONAKONADI_NO_EXPORT
void groupExpandResult(
KJob *job);
211 AddresseeLineEditPrivate *
const d;
bool insert(Part *part, qint64 *insertId=nullptr)
QAction * paste(const QObject *recvr, const char *slot, QObject *parent)
This file is part of the KDE documentation.
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Jan 3 2025 11:57:39 by
doxygen 1.12.0 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.