efl/legacy/elementary/src/lib/elm_app_server.eo

101 lines
2.7 KiB
Plaintext
Raw Normal View History

class Elm_App_Server (Eo.Base)
2014-03-19 02:01:17 -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 {
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 {
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 {
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 {
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 {
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 {
/*@ Class constructor of elm_app_server */
legacy: null;
params {
@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-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 {
@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 {
@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 {
@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 {
Eo.Base.destructor;
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. */
}
}