Pimcommon
10#include "pimcommonakonadi_private_export.h"
12#include <QDBusAbstractAdaptor>
28class CompletionOrderEditorAdaptor :
public QDBusAbstractAdaptor
31 Q_CLASSINFO(
"D-Bus Interface",
"org.kde.pim.CompletionOrder")
35 void completionOrderChanged();
38class CompletionOrderWidget;
44 virtual ~CompletionItem() =
default;
46 virtual QString
label()
const = 0;
47 virtual QIcon icon()
const = 0;
48 virtual int completionWeight()
const = 0;
49 virtual void setCompletionWeight(
int weight) = 0;
50 virtual void save(CompletionOrderWidget *) = 0;
51 virtual bool hasEnableSupport()
const = 0;
52 virtual bool isEnabled()
const = 0;
53 virtual void setIsEnabled(
bool b) = 0;
56class PIMCOMMONAKONADI_TESTS_EXPORT CompletionOrderWidget :
public QWidget
60 explicit CompletionOrderWidget(QWidget *parent =
nullptr);
61 ~CompletionOrderWidget()
override;
64 KConfig *configFile();
65 void loadCompletionItems();
66 void setLdapClientSearch(KLDAPCore::LdapClientSearch *ldapSearch);
68 void setLdapActivitiesAbstract(KLDAPCore::LdapActivitiesAbstract *ldapActivities);
70 void completionOrderChanged();
73 PIMCOMMONAKONADI_NO_EXPORT
void rowsInserted(
const QModelIndex &parent,
int start,
int end);
74 PIMCOMMONAKONADI_NO_EXPORT
void slotSelectionChanged();
75 PIMCOMMONAKONADI_NO_EXPORT
void slotMoveUp();
76 PIMCOMMONAKONADI_NO_EXPORT
void slotMoveDown();
77 PIMCOMMONAKONADI_NO_EXPORT
void addRecentAddressItem();
78 PIMCOMMONAKONADI_NO_EXPORT
void addCompletionItemForCollection(
const QModelIndex &);
79 PIMCOMMONAKONADI_NO_EXPORT
void slotItemChanged();
82 QTreeWidget *mListView =
nullptr;
83 QPushButton *mUpButton =
nullptr;
84 QPushButton *mDownButton =
nullptr;
85 QAbstractItemModel *mCollectionModel =
nullptr;
86 KLDAPCore::LdapClientSearch *mLdapSearch =
nullptr;
87 KLDAPCore::LdapActivitiesAbstract *mLdapActivities =
nullptr;
89 int mDefaultValue = 60;
Q_SCRIPTABLE Q_NOREPLY void start()
QString label(StandardShortcut id)
QObject * parent() const const
This file is part of the KDE documentation.
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Jan 24 2025 11:47:24 by
doxygen 1.13.2 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.