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, 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#include <KContacts/Addressee>
12#include <QSplitter>
13
14class QTreeView;
15
16namespace Akonadi
17{
18class AddressModel;
19class AddressLocationWidget;
20
21class AddressesLocationWidget : public QSplitter
22{
24public:
25 explicit AddressesLocationWidget(QWidget *parent = nullptr);
26 ~AddressesLocationWidget() override;
27
28 void loadContact(const KContacts::Addressee &contact);
29 void storeContact(KContacts::Addressee &contact) const;
30
31 void setReadOnly(bool readOnly);
32 [[nodiscard]] bool hasNoSavedData() const;
33
34private:
35 AddressLocationWidget *const mAddressLocationWidget;
36 QTreeView *const mAddressesLocationView;
37 AddressModel *const mAddressModel;
38 bool mReadOnly = false;
39};
40}
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 4 2024 16:36:45 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.