2
* Copyright © 2013 Canonical Ltd.
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.
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.
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/>.
16
* Authored by: Ricardo Mendoza <ricardo.mendoza@canonical.com>
17
* Thomas Voß <thomas.voss@canonical.com>
20
#ifndef UBUNTU_APPLICATION_LIFECYCLE_DELEGATE_H_
21
#define UBUNTU_APPLICATION_LIFECYCLE_DELEGATE_H_
30
typedef void (*u_on_application_resumed)(const UApplicationOptions *options, void *context);
31
typedef void (*u_on_application_about_to_stop)(UApplicationArchive *archive, void *context);
33
typedef void UApplicationLifecycleDelegate;
35
UApplicationLifecycleDelegate*
36
u_application_lifecycle_delegate_new();
39
u_application_lifecycle_delegate_destroy(
40
UApplicationLifecycleDelegate *delegate);
43
u_application_lifecycle_delegate_ref(
44
UApplicationLifecycleDelegate *delegate);
47
u_application_lifecycle_delegate_unref(
48
UApplicationLifecycleDelegate *delegate);
51
u_application_lifecycle_delegate_set_application_resumed_cb(
52
UApplicationLifecycleDelegate *delegate,
53
u_on_application_resumed cb);
55
u_on_application_resumed
56
u_application_lifecycle_delegate_get_application_resumed_cb(
57
UApplicationLifecycleDelegate *delegate);
60
u_application_lifecycle_delegate_set_application_about_to_stop_cb(
61
UApplicationLifecycleDelegate *delegate,
62
u_on_application_about_to_stop cb);
64
u_on_application_about_to_stop
65
u_application_lifecycle_delegate_get_application_about_to_stop_cb(
66
UApplicationLifecycleDelegate *delegate);
69
u_application_lifecycle_delegate_set_context(
70
UApplicationLifecycleDelegate *delegate,
74
u_application_lifecycle_delegate_get_context(
75
UApplicationLifecycleDelegate *delegate,
82
#endif /* UBUNTU_APPLICATION_LIFECYCLE_DELEGATE_H_ */