Akonadi Contacts

generalinfowidget.h
1/*
2 This file is part of Contact Editor.
3
4 SPDX-FileCopyrightText: 2016 eyeOS S.L.U., a Telefonica company, sales@eyeos.com
5 SPDX-FileCopyrightText: 2016-2020 Laurent Montel <montel.org>
6
7 SPDX-License-Identifier: LGPL-2.0-or-later
8*/
9
10#pragma once
11
12#include "displaynameeditwidget.h"
13#include <QWidget>
14namespace KContacts
15{
16class Addressee;
17}
18namespace Akonadi
19{
20class ImageWidget;
21class CategoriesEditWidget;
22class PhoneListWidget;
23class WebListWidget;
24class MessagingListWidget;
25class MailListWidget;
26class NameWidget;
27class NicknameWidget;
28class MessageFormattingWidget;
29class BlogfeedWidget;
30class GeneralInfoWidget : public QWidget
31{
33public:
34 explicit GeneralInfoWidget(QWidget *parent = nullptr);
35 ~GeneralInfoWidget() override;
36
37 void loadContact(const KContacts::Addressee &contact);
38
39 void storeContact(KContacts::Addressee &contact) const;
40
41 void setReadOnly(bool readOnly);
42 void setDisplayType(DisplayNameEditWidget::DisplayType type);
43 [[nodiscard]] DisplayNameEditWidget::DisplayType displayType() const;
44
45private:
46 PhoneListWidget *mPhoneListWidget = nullptr;
47 WebListWidget *mWebListWidget = nullptr;
48 MessagingListWidget *mMessagingListWidget = nullptr;
49 MailListWidget *mMailListWidget = nullptr;
50 ImageWidget *mPhotoWidget = nullptr;
51 NameWidget *mNameWidget = nullptr;
52 NicknameWidget *mNickNameWidget = nullptr;
53 BlogfeedWidget *mBlogFeedWidget = nullptr;
54 CategoriesEditWidget *mCategoriesWidget = nullptr;
55 MessageFormattingWidget *mMessageFormattingWidget = nullptr;
56};
57}
A widget for editing the display name of a contact.
Q_OBJECTQ_OBJECT
QObject * parent() const const
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:08:08 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.