KContacts

types.h
1/*
2 This file is part of the KContacts framework.
3 SPDX-FileCopyrightText: 2024 Nicolas Fella <nicolas.fella@gmx.de>
4
5 SPDX-License-Identifier: LGPL-2.0-or-later
6*/
7
8#ifndef KCONTACTS_QML_TYPES
9#define KCONTACTS_QML_TYPES
10
11#include <KContacts/Address>
12#include <KContacts/AddressFormat>
13#include <KContacts/Addressee>
14
15#include <QQmlEngine>
16
17struct AddressForeign {
18 Q_GADGET
19 QML_FOREIGN(KContacts::Address)
20 QML_VALUE_TYPE(address)
21 QML_STRUCTURED_VALUE
22};
23
24struct AddresseeForeign {
25 Q_GADGET
26 QML_FOREIGN(KContacts::Addressee)
27 QML_VALUE_TYPE(addressee)
28 QML_STRUCTURED_VALUE
29};
30
31struct EmailForeign {
32 Q_GADGET
33 QML_FOREIGN(KContacts::Email)
34 QML_VALUE_TYPE(email)
35 QML_CONSTRUCTIBLE_VALUE
36};
37
38struct PhoneNumberForeign {
39 Q_GADGET
40 QML_FOREIGN(KContacts::PhoneNumber)
41 QML_VALUE_TYPE(phoneNumber)
42};
43
44struct ImppForeign {
45 Q_GADGET
46 QML_FOREIGN(KContacts::Impp)
47 QML_VALUE_TYPE(impp)
48};
49
50struct PictureForeign {
51 Q_GADGET
52 QML_FOREIGN(KContacts::Picture)
53 QML_VALUE_TYPE(picture)
54};
55
56struct GeoForeign {
57 Q_GADGET
58 QML_FOREIGN(KContacts::Geo)
59 QML_VALUE_TYPE(geo)
60};
61
62namespace KContactForeign
63{
64Q_NAMESPACE
65QML_NAMED_ELEMENT(KContacts)
66QML_FOREIGN_NAMESPACE(KContacts)
67};
68
69#endif
Postal address information.
Definition address.h:31
address book entry
Definition addressee.h:70
Class that holds a Email for a contact.
Definition email.h:28
Geographic position.
Definition geo.h:25
Class that holds a IMPP for a contact.
Definition impp.h:32
Phonenumber information.
Definition phonenumber.h:31
A class to store a picture of an addressee.
Definition picture.h:27
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Nov 8 2024 11:58:37 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.