Akonadi Contacts

businesseditorwidget.h
1/*
2 This file is part of Contact Editor.
3
4 SPDX-FileCopyrightText: 2016-2024 Laurent Montel <montel@kde.org>
5
6 SPDX-License-Identifier: LGPL-2.0-or-later
7*/
8#pragma once
9
10#include <QWidget>
11class KLineEdit;
12namespace KContacts
13{
14class Addressee;
15}
16namespace Akonadi
17{
18class FreeBusyEditWidget;
19class ImageWidget;
20class BusinessEditorWidget : public QWidget
21{
23public:
24 explicit BusinessEditorWidget(QWidget *parent = nullptr);
25 ~BusinessEditorWidget() override;
26 void loadContact(const KContacts::Addressee &contact);
27 void storeContact(KContacts::Addressee &contact);
28 void setReadOnly(bool readOnly);
29
31 void organizationChanged(const QString &text);
32
33private:
34 KLineEdit *mOrganizationWidget = nullptr;
35 KLineEdit *mProfessionWidget = nullptr;
36 KLineEdit *mTitleWidget = nullptr;
37 KLineEdit *mDepartmentWidget = nullptr;
38 KLineEdit *mOfficeWidget = nullptr;
39 KLineEdit *mManagerWidget = nullptr;
40 KLineEdit *mAssistantWidget = nullptr;
41 Akonadi::FreeBusyEditWidget *mFreeBusyWidget = nullptr;
42 ImageWidget *mLogoWidget = nullptr;
43};
44}
A widget for editing the display name of a contact.
Q_OBJECTQ_OBJECT
Q_SIGNALSQ_SIGNALS
QObject * parent() const const
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Tue Mar 26 2024 11:13:20 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.