File indexing completed on 2024-11-24 04:39:29
0001 /* 0002 This file is part of Contact Editor. 0003 0004 SPDX-FileCopyrightText: 2016-2024 Laurent Montel <montel@kde.org> 0005 0006 SPDX-License-Identifier: LGPL-2.0-or-later 0007 */ 0008 #pragma once 0009 0010 #include <QWidget> 0011 class KLineEdit; 0012 namespace KContacts 0013 { 0014 class Addressee; 0015 } 0016 namespace Akonadi 0017 { 0018 class FreeBusyEditWidget; 0019 class ImageWidget; 0020 class BusinessEditorWidget : public QWidget 0021 { 0022 Q_OBJECT 0023 public: 0024 explicit BusinessEditorWidget(QWidget *parent = nullptr); 0025 ~BusinessEditorWidget() override; 0026 void loadContact(const KContacts::Addressee &contact); 0027 void storeContact(KContacts::Addressee &contact); 0028 void setReadOnly(bool readOnly); 0029 0030 Q_SIGNALS: 0031 void organizationChanged(const QString &text); 0032 0033 private: 0034 KLineEdit *mOrganizationWidget = nullptr; 0035 KLineEdit *mProfessionWidget = nullptr; 0036 KLineEdit *mTitleWidget = nullptr; 0037 KLineEdit *mDepartmentWidget = nullptr; 0038 KLineEdit *mOfficeWidget = nullptr; 0039 KLineEdit *mManagerWidget = nullptr; 0040 KLineEdit *mAssistantWidget = nullptr; 0041 Akonadi::FreeBusyEditWidget *mFreeBusyWidget = nullptr; 0042 ImageWidget *mLogoWidget = nullptr; 0043 }; 0044 }