Akonadi Contacts

addresseslocationwidget.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 ADDRESSESLOCATIONWIDGET_H
11 #define ADDRESSESLOCATIONWIDGET_H
12 #include <QSplitter>
13 #include <KContacts/Addressee>
14 
15 class QTreeView;
16 
17 namespace ContactEditor {
18 class AddressModel;
19 class AddressLocationWidget;
20 
21 class AddressesLocationWidget : public QSplitter
22 {
23  Q_OBJECT
24 public:
25  explicit AddressesLocationWidget(QWidget *parent = nullptr);
26  ~AddressesLocationWidget();
27 
28  void loadContact(const KContacts::Addressee &contact);
29  void storeContact(KContacts::Addressee &contact) const;
30 
31  void setReadOnly(bool readOnly);
32 private:
33  AddressLocationWidget *mAddressLocationWidget = nullptr;
34  QTreeView *mAddressesLocationView = nullptr;
35  AddressModel *const mAddressModel;
36  bool mReadOnly = false;
37 };
38 }
39 #endif // ADDRESSESLOCATIONWIDGET_H
Q_OBJECTQ_OBJECT
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.