Akonadi Contacts

phonetypedialog.h
1/*
2 This file is part of Contact Editor.
3
4 SPDX-FileCopyrightText: 2016-2024 Laurent Montel <montel@kde.org>
5
6 SPDX-License-Identifier: LGPL-2.0-or-later
7*/
8#pragma once
9
10#include "akonadi_contact_widgets_private_export.h"
11#include <KContacts/PhoneNumber>
12#include <QDialog>
13class QButtonGroup;
14
15namespace Akonadi
16{
17/**
18 * A dialog for editing phone number types.
19 */
20class AKONADI_CONTACT_WIDGETS_TESTS_EXPORT PhoneTypeDialog : public QDialog
21{
22 Q_OBJECT
23public:
24 /**
25 * Creates a new phone type dialog.
26 *
27 * @param type The initial type of the phone number.
28 * @param parent The parent widget.
29 */
30 explicit PhoneTypeDialog(KContacts::PhoneNumber::Type type, QWidget *parent = nullptr);
31
32 /**
33 * Returns the selected type.
34 */
35 [[nodiscard]] KContacts::PhoneNumber::Type type() const;
36
37private:
40
41 QButtonGroup *mGroup = nullptr;
42};
43}
A dialog for editing phone number types.
A widget for editing the display name of a contact.
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.