Ubuntu Platform API  2.0.0
A library helping with tight integration into the Ubuntu platform
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
description.h
Go to the documentation of this file.
1 /*
2  * Copyright © 2013 Canonical Ltd.
3  *
4  * This program is free software: you can redistribute it and/or modify
5  * it under the terms of the GNU Lesser General Public License version 3 as
6  * published by the Free Software Foundation.
7  *
8  * This program is distributed in the hope that it will be useful,
9  * but WITHOUT ANY WARRANTY; without even the implied warranty of
10  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11  * GNU Lesser General Public License for more details.
12  *
13  * You should have received a copy of the GNU Lesser General Public License
14  * along with this program. If not, see <http://www.gnu.org/licenses/>.
15  *
16  * Authored by: Ricardo Mendoza <ricardo.mendoza@canonical.com>
17  * Thomas Voß <thomas.voss@canonical.com>
18  */
19 
20 #ifndef UBUNTU_APPLICATION_DESCRIPTION_H_
21 #define UBUNTU_APPLICATION_DESCRIPTION_H_
22 
23 #include <ubuntu/visibility.h>
24 
25 #include <ubuntu/application/id.h>
27 
28 #ifdef __cplusplus
29 extern "C" {
30 #endif
31 
37 
43  UBUNTU_DLL_PUBLIC UApplicationDescription*
45 
53  UApplicationDescription *desc);
54 
63  UApplicationDescription *desc,
64  UApplicationId *id);
65 
74  UApplicationDescription *desc);
75 
84  UApplicationDescription *desc,
85  UApplicationLifecycleDelegate *lifecycle_delegate);
86 
95  UApplicationDescription *desc);
96 
97 #ifdef __cplusplus
98 }
99 #endif
100 
101 #endif /* UBUNTU_APPLICATION_DESCRIPTION_H_ */
void UApplicationId
An opaque type describing an application ID.
Definition: id.h:35
UBUNTU_DLL_PUBLIC UApplicationLifecycleDelegate * u_application_description_get_application_lifecycle_delegate(UApplicationDescription *desc)
Queries the application lifecycle delegate.
UBUNTU_DLL_PUBLIC UApplicationId * u_application_description_get_application_id(UApplicationDescription *desc)
Queries the application id contained in the description instance.
UBUNTU_DLL_PUBLIC void u_application_description_destroy(UApplicationDescription *desc)
Destroys an instance of application description and releases all resources.
void UApplicationDescription
Encapsulates properties of an application instance.
Definition: description.h:36
UBUNTU_DLL_PUBLIC UApplicationDescription * u_application_description_new()
Creates a new instance of application description.
void UApplicationLifecycleDelegate
Opaque type encapsulating all app-specific callback functions.
#define UBUNTU_DLL_PUBLIC
Definition: visibility.h:25
UBUNTU_DLL_PUBLIC void u_application_description_set_application_lifecycle_delegate(UApplicationDescription *desc, UApplicationLifecycleDelegate *lifecycle_delegate)
Sets the application lifecycle delegate.
UBUNTU_DLL_PUBLIC void u_application_description_set_application_id(UApplicationDescription *desc, UApplicationId *id)
Sets the application id contained in the description instance.