Akonadi Contacts

businesseditorwidget.h
1 /*
2  This file is part of Contact Editor.
3 
4  SPDX-FileCopyrightText: 2016-2023 Laurent Montel <[email protected]>
5 
6  SPDX-License-Identifier: LGPL-2.0-or-later
7 */
8 #pragma once
9 
10 #include <QWidget>
11 class KLineEdit;
12 class ImageWidget;
13 class FreeBusyEditWidget;
14 namespace KContacts
15 {
16 class Addressee;
17 }
18 namespace ContactEditor
19 {
20 class BusinessEditorWidget : public QWidget
21 {
22  Q_OBJECT
23 public:
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 
30 Q_SIGNALS:
31  void organizationChanged(const QString &text);
32 
33 private:
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  FreeBusyEditWidget *mFreeBusyWidget = nullptr;
42  ImageWidget *mLogoWidget = nullptr;
43 };
44 }
Q_OBJECTQ_OBJECT
Q_SIGNALSQ_SIGNALS
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Sat Apr 1 2023 04:09:04 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.