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, [email protected]
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>
14 class ImageWidget;
15 namespace KContacts
16 {
17 class Addressee;
18 }
19 
20 namespace ContactEditor
21 {
22 class CategoriesEditAbstractWidget;
23 class PhoneListWidget;
24 class WebListWidget;
25 class MessagingListWidget;
26 class MailListWidget;
27 class NameWidget;
28 class NicknameWidget;
29 class MessageFormattingWidget;
30 class BlogfeedWidget;
31 class GeneralInfoWidget : public QWidget
32 {
33  Q_OBJECT
34 public:
35  explicit GeneralInfoWidget(QWidget *parent = nullptr);
36  ~GeneralInfoWidget();
37 
38  void loadContact(const KContacts::Addressee &contact);
39 
40  void storeContact(KContacts::Addressee &contact) const;
41 
42  void setReadOnly(bool readOnly);
43  void setDisplayType(DisplayNameEditWidget::DisplayType type);
44  Q_REQUIRED_RESULT DisplayNameEditWidget::DisplayType displayType() const;
45 
46 private:
47  PhoneListWidget *mPhoneListWidget = nullptr;
48  WebListWidget *mWebListWidget = nullptr;
49  MessagingListWidget *mMessagingListWidget = nullptr;
50  MailListWidget *mMailListWidget = nullptr;
51  ImageWidget *mPhotoWidget = nullptr;
52  NameWidget *mNameWidget = nullptr;
53  NicknameWidget *mNickNameWidget = nullptr;
54  BlogfeedWidget *mBlogFeedWidget = nullptr;
55  ContactEditor::CategoriesEditAbstractWidget *mCategoriesWidget = nullptr;
56  MessageFormattingWidget *mMessageFormattingWidget = nullptr;
57 };
58 }
DisplayType
Describes what the display name should look like.
This file is part of the KDE documentation.
Documentation copyright © 1996-2021 The KDE developers.
Generated on Thu Jun 17 2021 23:09:02 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.