Akonadi Contacts

phonetypedialog.h
1 /*
2  This file is part of Contact Editor.
3 
4  SPDX-FileCopyrightText: 2016-2021 Laurent Montel <[email protected]>
5 
6  SPDX-License-Identifier: LGPL-2.0-or-later
7 */
8 #pragma once
9 
10 #include "contacteditor_private_export.h"
11 #include <KContacts/PhoneNumber>
12 #include <QDialog>
13 class QButtonGroup;
14 
15 namespace ContactEditor
16 {
17 /**
18  * A dialog for editing phone number types.
19  */
20 class CONTACTEDITOR_TESTS_EXPORT PhoneTypeDialog : public QDialog
21 {
22  Q_OBJECT
23 public:
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  KContacts::PhoneNumber::Type type() const;
36 
37 private:
40 
41  QButtonGroup *mGroup = nullptr;
42 };
43 }
A dialog for editing phone number types.
This file is part of the KDE documentation.
Documentation copyright © 1996-2021 The KDE developers.
Generated on Sat Jun 19 2021 23:09:46 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.