2014-06-27 15:36:05 -07:00
|
|
|
class Elm_App_Server (Eo.Base)
|
2014-03-19 02:01:17 -07:00
|
|
|
{
|
2014-04-03 00:19:03 -07:00
|
|
|
legacy_prefix: null;
|
2014-03-19 02:01:17 -07:00
|
|
|
eo_prefix: elm_app_server;
|
2015-05-07 09:32:53 -07:00
|
|
|
methods {
|
|
|
|
@property icon {
|
2014-03-19 02:01:17 -07:00
|
|
|
set {
|
|
|
|
}
|
|
|
|
get {
|
|
|
|
}
|
|
|
|
values {
|
2015-05-18 08:16:08 -07:00
|
|
|
icon: Eina_Stringshare *; /*@ title of icon */
|
2014-03-19 02:01:17 -07:00
|
|
|
}
|
|
|
|
}
|
2015-05-07 09:32:53 -07:00
|
|
|
@property views {
|
2014-03-19 02:01:17 -07:00
|
|
|
get {
|
|
|
|
/*@ Return a iterator with all views of application */
|
|
|
|
}
|
|
|
|
values {
|
2015-05-18 08:16:08 -07:00
|
|
|
ret: free(own(iterator<Elm_App_Server_View *> *), eina_iterator_free); /*@ Iterator with all views of application, you must free iterator after use */
|
2014-03-19 02:01:17 -07:00
|
|
|
}
|
|
|
|
}
|
2015-05-07 09:32:53 -07:00
|
|
|
@property path {
|
2014-03-19 02:01:17 -07:00
|
|
|
get {
|
|
|
|
}
|
|
|
|
values {
|
2015-05-18 08:16:08 -07:00
|
|
|
ret: const(char)*;
|
2014-03-19 02:01:17 -07:00
|
|
|
}
|
|
|
|
}
|
2015-05-07 09:32:53 -07:00
|
|
|
@property package {
|
2014-03-19 02:01:17 -07:00
|
|
|
get {
|
|
|
|
}
|
|
|
|
values {
|
2015-05-18 08:16:08 -07:00
|
|
|
ret: Eina_Stringshare *;
|
2014-03-19 02:01:17 -07:00
|
|
|
}
|
|
|
|
}
|
2015-05-07 09:32:53 -07:00
|
|
|
@property pixels {
|
2014-03-19 02:01:17 -07:00
|
|
|
get {
|
|
|
|
/*@ Get application raw icon. */
|
|
|
|
}
|
|
|
|
set {
|
|
|
|
/*@ Set icon to application, using the raw pixels of image. */
|
|
|
|
}
|
|
|
|
values {
|
2015-05-18 08:16:08 -07:00
|
|
|
w: uint;
|
|
|
|
h: uint;
|
|
|
|
has_alpha: bool;
|
|
|
|
pixels: const(ubyte)*;
|
2014-03-19 02:01:17 -07:00
|
|
|
}
|
|
|
|
}
|
2014-09-01 07:57:56 -07:00
|
|
|
constructor {
|
2014-08-27 07:44:11 -07:00
|
|
|
/*@ Class constructor of elm_app_server */
|
|
|
|
legacy: null;
|
|
|
|
params {
|
2015-05-18 08:16:08 -07:00
|
|
|
@in packageid: const(char)*; /*@ package of application */
|
|
|
|
@in create_view_cb: Elm_App_Server_Create_View_Cb; /*@ callback to be called when user whants to open some application view */
|
2014-08-27 07:44:11 -07:00
|
|
|
}
|
|
|
|
}
|
2014-03-19 02:01:17 -07:00
|
|
|
close_all {
|
|
|
|
/*@ Close all views of application */
|
|
|
|
}
|
|
|
|
view_check {
|
|
|
|
/*@ If view id is available and unique, return the full DBus object path of view */
|
|
|
|
params {
|
2015-05-18 08:16:08 -07:00
|
|
|
@in id: const(char)*; /*@ view identifier */
|
2014-03-19 02:01:17 -07:00
|
|
|
}
|
2015-05-11 07:25:29 -07:00
|
|
|
return: bool; /*@ @c EINA_TRUE if id is valid or @c EINA_FALSE if not */
|
2014-03-19 02:01:17 -07:00
|
|
|
}
|
|
|
|
view_add {
|
|
|
|
/*@ Add a view to elm_app_server. This should only be used if the application open a view that was not requested by create_view_cb. */
|
|
|
|
params {
|
2015-05-18 08:16:08 -07:00
|
|
|
@in view: Elm_App_Server_View *; /*@ elm_app_server_view */
|
2014-03-19 02:01:17 -07:00
|
|
|
}
|
|
|
|
}
|
|
|
|
title_set {
|
|
|
|
/*@ Set a title to application. */
|
|
|
|
params {
|
2015-05-18 08:16:08 -07:00
|
|
|
@in title: const(char)* @nullable; /*@ title of application */
|
2014-03-19 02:01:17 -07:00
|
|
|
}
|
|
|
|
}
|
|
|
|
title_get {
|
|
|
|
/*@ Get title of application */
|
2015-05-11 07:25:29 -07:00
|
|
|
return: Eina_Stringshare *; /*@ title of application */
|
2014-03-19 02:01:17 -07:00
|
|
|
}
|
|
|
|
save {
|
|
|
|
/*@ Save the state of all views */
|
|
|
|
}
|
|
|
|
}
|
|
|
|
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-19 02:01:17 -07:00
|
|
|
}
|
2014-09-01 07:57:56 -07:00
|
|
|
constructors {
|
|
|
|
.constructor;
|
|
|
|
}
|
2014-03-19 02:01:17 -07:00
|
|
|
events {
|
|
|
|
terminate; /*@ Called when application must be terminated. */
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|