2016-04-19 08:44:33 -07:00
|
|
|
import eina_types;
|
|
|
|
|
|
|
|
type Elm_App_Client_Open_View_Cb: __undefined_type;
|
|
|
|
type Elm_App_Client_Pending: __undefined_type;
|
|
|
|
|
2016-05-12 03:18:43 -07:00
|
|
|
class Elm.App.Client (Eo.Base)
|
2014-03-18 07:40:24 -07:00
|
|
|
{
|
2015-05-07 09:32:53 -07:00
|
|
|
methods {
|
|
|
|
@property views {
|
2014-03-18 07:40:24 -07:00
|
|
|
get {
|
2015-07-14 06:44:02 -07:00
|
|
|
[[Return a iterator with all views of application.]]
|
2014-03-18 07:40:24 -07:00
|
|
|
}
|
|
|
|
values {
|
2016-05-23 07:41:28 -07:00
|
|
|
ret: free(own(iterator<Elm.App.Client.View>), eina_iterator_free); [[The iterator with all views, must be freed after use.]]
|
2014-03-18 07:40:24 -07:00
|
|
|
}
|
|
|
|
}
|
2015-05-07 09:32:53 -07:00
|
|
|
@property package {
|
2014-03-18 07:40:24 -07:00
|
|
|
get {
|
2015-07-14 06:44:02 -07:00
|
|
|
[[Return the application package.]]
|
2014-03-18 07:40:24 -07:00
|
|
|
}
|
|
|
|
values {
|
2016-05-31 08:02:26 -07:00
|
|
|
ret: string; [[application package]]
|
2014-03-18 07:40:24 -07:00
|
|
|
}
|
|
|
|
}
|
2014-09-01 07:57:56 -07:00
|
|
|
constructor {
|
2015-07-14 06:44:02 -07:00
|
|
|
[[Class constructor of elm_app_client.]]
|
2014-08-27 07:44:11 -07:00
|
|
|
legacy: null;
|
|
|
|
params {
|
2016-05-31 08:02:26 -07:00
|
|
|
@in package: string; [[Package of application]]
|
2014-08-27 07:44:11 -07:00
|
|
|
}
|
|
|
|
}
|
2014-03-18 07:40:24 -07:00
|
|
|
view_all_close {
|
2015-07-14 06:44:02 -07:00
|
|
|
[[Close all views of application.]]
|
2014-03-18 07:40:24 -07:00
|
|
|
}
|
|
|
|
terminate {
|
2015-07-14 06:44:02 -07:00
|
|
|
[[Terminate application.]]
|
2014-03-18 07:40:24 -07:00
|
|
|
}
|
|
|
|
view_open {
|
2015-07-14 06:44:02 -07:00
|
|
|
[[Open an application view.]]
|
2014-03-18 07:40:24 -07:00
|
|
|
params {
|
2016-05-24 07:22:25 -07:00
|
|
|
@in args: generic_value * @optional; [[an array of.]]
|
2015-07-14 06:44:02 -07:00
|
|
|
@in view_open_cb: Elm_App_Client_Open_View_Cb @optional; [[callback to be called when view open]]
|
2016-06-02 04:54:59 -07:00
|
|
|
@in data: const(void_ptr) @optional; [[callback user data]]
|
2014-03-18 07:40:24 -07:00
|
|
|
}
|
2015-07-14 06:44:02 -07:00
|
|
|
return: Elm_App_Client_Pending *; [[handler to cancel the view opening if it takes to long ]]
|
2014-03-18 07:40:24 -07:00
|
|
|
}
|
|
|
|
view_open_cancel {
|
2015-07-14 06:44:02 -07:00
|
|
|
[[Cancel a pending elm_app_client_view_open().]]
|
2014-03-18 07:40:24 -07:00
|
|
|
params {
|
2015-07-14 06:44:02 -07:00
|
|
|
@in pending: Elm_App_Client_Pending *; [[the view open handler]]
|
2014-03-18 07:40:24 -07:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
implements {
|
2014-06-27 15:36:05 -07:00
|
|
|
Eo.Base.destructor;
|
2015-05-20 08:31:04 -07:00
|
|
|
Eo.Base.finalize;
|
2014-03-18 07:40:24 -07:00
|
|
|
}
|
2014-09-01 07:57:56 -07:00
|
|
|
constructors {
|
|
|
|
.constructor;
|
|
|
|
}
|
2014-03-18 07:40:24 -07:00
|
|
|
events {
|
2015-06-11 09:13:46 -07:00
|
|
|
view,created; [[Called when a view of this application is created.]]
|
|
|
|
view,deleted; [[Called when a view of this application is deleted.]]
|
|
|
|
view_list,loaded; [[Called when list of view is loaded.]]
|
|
|
|
application,terminated; [[Called when application is terminated.]]
|
2014-03-18 07:40:24 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
}
|