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 #ifndef GENERALINFOWIDGET_H
11 #define GENERALINFOWIDGET_H
12 
13 #include <QWidget>
14 #include "displaynameeditwidget.h"
15 class ImageWidget;
16 namespace KContacts {
17 class Addressee;
18 }
19 
20 namespace ContactEditor {
21 class CategoriesEditAbstractWidget;
22 class PhoneListWidget;
23 class WebListWidget;
24 class MessagingListWidget;
25 class MailListWidget;
26 class NameWidget;
27 class NicknameWidget;
28 class MessageFormattingWidget;
29 class BlogfeedWidget;
30 class GeneralInfoWidget : public QWidget
31 {
32  Q_OBJECT
33 public:
34  explicit GeneralInfoWidget(QWidget *parent = nullptr);
35  ~GeneralInfoWidget();
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  Q_REQUIRED_RESULT DisplayNameEditWidget::DisplayType displayType() const;
44 private:
45  PhoneListWidget *mPhoneListWidget = nullptr;
46  WebListWidget *mWebListWidget = nullptr;
47  MessagingListWidget *mMessagingListWidget = nullptr;
48  MailListWidget *mMailListWidget = nullptr;
49  ImageWidget *mPhotoWidget = nullptr;
50  NameWidget *mNameWidget = nullptr;
51  NicknameWidget *mNickNameWidget = nullptr;
52  BlogfeedWidget *mBlogFeedWidget = nullptr;
53  ContactEditor::CategoriesEditAbstractWidget *mCategoriesWidget = nullptr;
54  MessageFormattingWidget *mMessageFormattingWidget = nullptr;
55 };
56 }
57 #endif // GENERALINFOWIDGET_H
DisplayType
Describes what the display name should look like.
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Wed Sep 23 2020 23:08:59 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.