description.h
Go to the documentation of this file.
/*
* Copyright © 2013 Canonical Ltd.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License version 3 as
* published by the Free Software Foundation.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
* Authored by: Ricardo Mendoza <ricardo.mendoza@canonical.com>
* Thomas Voß <thomas.voss@canonical.com>
*/
#ifndef UBUNTU_APPLICATION_DESCRIPTION_H_
#define UBUNTU_APPLICATION_DESCRIPTION_H_
#include <ubuntu/visibility.h>
#include <ubuntu/application/id.h>
#include <ubuntu/application/lifecycle_delegate.h>
#ifdef __cplusplus
extern "C" {
#endif
typedef void UApplicationDescription;
UBUNTU_DLL_PUBLIC UApplicationDescription*
u_application_description_new();
UBUNTU_DLL_PUBLIC void
u_application_description_destroy(
UApplicationDescription *desc);
UBUNTU_DLL_PUBLIC void
u_application_description_set_application_id(
UApplicationDescription *desc,
UApplicationId *id);
UBUNTU_DLL_PUBLIC UApplicationId*
u_application_description_get_application_id(
UApplicationDescription *desc);
UBUNTU_DLL_PUBLIC void
u_application_description_set_application_lifecycle_delegate(
UApplicationDescription *desc,
UApplicationLifecycleDelegate *lifecycle_delegate);
UBUNTU_DLL_PUBLIC UApplicationLifecycleDelegate*
u_application_description_get_application_lifecycle_delegate(
UApplicationDescription *desc);
#ifdef __cplusplus
}
#endif
#endif /* UBUNTU_APPLICATION_DESCRIPTION_H_ */
UApplicationId
void UApplicationId
An opaque type describing an application ID.
Definition: id.h:35
u_application_description_get_application_lifecycle_delegate
UBUNTU_DLL_PUBLIC UApplicationLifecycleDelegate * u_application_description_get_application_lifecycle_delegate(UApplicationDescription *desc)
Queries the application lifecycle delegate.
u_application_description_get_application_id
UBUNTU_DLL_PUBLIC UApplicationId * u_application_description_get_application_id(UApplicationDescription *desc)
Queries the application id contained in the description instance.
u_application_description_destroy
UBUNTU_DLL_PUBLIC void u_application_description_destroy(UApplicationDescription *desc)
Destroys an instance of application description and releases all resources.
lifecycle_delegate.h
id.h
visibility.h
UApplicationDescription
void UApplicationDescription
Encapsulates properties of an application instance.
Definition: description.h:36
u_application_description_new
UBUNTU_DLL_PUBLIC UApplicationDescription * u_application_description_new()
Creates a new instance of application description.
UApplicationLifecycleDelegate
void UApplicationLifecycleDelegate
Opaque type encapsulating all app-specific callback functions.
Definition: lifecycle_delegate.h:50
UBUNTU_DLL_PUBLIC
#define UBUNTU_DLL_PUBLIC
Definition: visibility.h:26
u_application_description_set_application_lifecycle_delegate
UBUNTU_DLL_PUBLIC void u_application_description_set_application_lifecycle_delegate(UApplicationDescription *desc, UApplicationLifecycleDelegate *lifecycle_delegate)
Sets the application lifecycle delegate.
u_application_description_set_application_id
UBUNTU_DLL_PUBLIC void u_application_description_set_application_id(UApplicationDescription *desc, UApplicationId *id)
Sets the application id contained in the description instance.