Ubuntu Platform API  1.0.0
A library helping with tight integration into the Ubuntu platform
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
lifecycle_delegate.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_LIFECYCLE_DELEGATE_H_
21 #define UBUNTU_APPLICATION_LIFECYCLE_DELEGATE_H_
22 
23 #include <ubuntu/visibility.h>
24 
27 
28 #ifdef __cplusplus
29 extern "C" {
30 #endif
31 
38  typedef void (*u_on_application_resumed)(const UApplicationOptions *options, void *context);
44  typedef void (*u_on_application_about_to_stop)(UApplicationArchive *archive, void *context);
45 
51 
57  UBUNTU_DLL_PUBLIC UApplicationLifecycleDelegate*
59 
67  UApplicationLifecycleDelegate *delegate);
68 
76  UApplicationLifecycleDelegate *delegate);
77 
85  UApplicationLifecycleDelegate *delegate);
86 
95  UApplicationLifecycleDelegate *delegate,
97 
106  UApplicationLifecycleDelegate *delegate);
107 
114  UBUNTU_DLL_PUBLIC void
116  UApplicationLifecycleDelegate *delegate,
118 
127  UApplicationLifecycleDelegate *delegate);
128 
135  UBUNTU_DLL_PUBLIC void
137  UApplicationLifecycleDelegate *delegate,
138  void *context);
139 
147  UBUNTU_DLL_PUBLIC void*
149  UApplicationLifecycleDelegate *delegate,
150  void *context);
151 
152 #ifdef __cplusplus
153 }
154 #endif
155 
156 #endif /* UBUNTU_APPLICATION_LIFECYCLE_DELEGATE_H_ */