Akonadi Contacts

showaddressaction.h
1 /*
2  This file is part of Akonadi Contact.
3 
4  SPDX-FileCopyrightText: 2009 Tobias Koenig <[email protected]>
5 
6  SPDX-License-Identifier: LGPL-2.0-or-later
7 */
8 
9 #pragma once
10 
11 namespace KContacts
12 {
13 class Address;
14 }
15 
16 namespace Akonadi
17 {
18 /**
19  * @short A contact action to show the address of a contact on a map.
20  *
21  * This class provides the functionality to show the postal address
22  * of a contact on a map in a webbrowser.
23  *
24  * Example:
25  *
26  * @code
27  *
28  * const KContacts::Addressee contact = ...
29  *
30  * const KContacts::Address::List addresses = contact.addresses();
31  * if ( !addresses.isEmpty() ) {
32  * Akonadi::ShowAddressAction action;
33  * action.showAddress( addresses.first() );
34  * }
35  *
36  * @endcode
37  *
38  * @author Tobias Koenig <[email protected]>
39  */
41 {
42 public:
43  void showAddress(const KContacts::Address &address);
44 };
45 }
46 
A contact action to show the address of a contact on a map.
This file is part of the KDE documentation.
Documentation copyright © 1996-2021 The KDE developers.
Generated on Wed Jun 23 2021 23:09:25 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.