Akonadi Contacts

webwidget.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 <QWidget>
13
14#include <KContacts/ResourceLocatorUrl>
15class QToolButton;
16namespace Akonadi
17{
18class WebSelectTypeCombobox;
19class PreferredLineEditWidget;
20class WebWidget : public QWidget
21{
23public:
24 explicit WebWidget(QWidget *parent = nullptr);
25 ~WebWidget() override;
26 void updateAddRemoveButton(bool addButtonEnabled);
27
28 void clearWidget();
29 void setPreferred(bool b);
30
31 [[nodiscard]] KContacts::ResourceLocatorUrl url();
32 void loadWebSite(const KContacts::ResourceLocatorUrl &url);
33
34 void setReadOnly(bool readOnly);
35
37 void addWidget(Akonadi::WebWidget *);
38 void removeWidget(Akonadi::WebWidget *);
39 void preferredChanged(Akonadi::WebWidget *);
40
41private:
42 void slotRemoveWeb();
43 void slotAddWeb();
44 void slotPreferredChanged();
46 QStringList mWebSiteType;
47 QString mOldType;
48 PreferredLineEditWidget *mWebSiteEdit = nullptr;
49 QToolButton *mAddButton = nullptr;
50 QToolButton *mRemoveButton = nullptr;
51 Akonadi::WebSelectTypeCombobox *mWebType = nullptr;
52};
53}
A widget for editing the display name of a contact.
Q_OBJECTQ_OBJECT
Q_SIGNALSQ_SIGNALS
QObject * parent() const const
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sat Dec 21 2024 17:05:47 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.