1 | /* |
2 | SPDX-FileCopyrightText: 2022 Volker Krause <vkrause@kde.org> |
3 | SPDX-License-Identifier: LGPL-2.0-or-later |
4 | */ |
5 | |
6 | #ifndef KCONTACTS_ADDRESSFORMATTER_H |
7 | #define KCONTACTS_ADDRESSFORMATTER_H |
8 | |
9 | #include "namespace.h" |
10 | |
11 | class QString; |
12 | |
13 | namespace KContacts |
14 | { |
15 | |
16 | class Address; |
17 | class AddressFormat; |
18 | |
19 | /** Apply address formatting rules for a given address. */ |
20 | namespace AddressFormatter |
21 | { |
22 | QString format(const Address &address, const QString &name, const QString &organization, const AddressFormat &format, AddressFormatStyle style); |
23 | }; |
24 | |
25 | } |
26 | |
27 | #endif // KCONTACTS_ADDRESSFORMATTER_H |
28 | |