Efl.Vpath.File (class)

Description

VPath File is an actual representation of a downloaded/mapped vpath file

Keep this object around for as long as you need to use the file as it may have been downloaded and kept as a local temporary file and deletion may remove it.

When you have a Vpath File object for the first time, call the do() method on it to actually begin/do the mapping. From here the fetched or failed event callbacks will be called, inside of which or afterwards you can fetch the resulting local file path by getting the result property.

Since 1.18

Inheritance

Members

do

Actually begin the resolving here - emit event now or do later
Eina_Bool efl_vpath_file_do(Eo *obj);


keep (get, set)

If this object has to be kept for the usage of the result
Eina_Bool efl_vpath_file_keep_get(const Eo *obj);
void efl_vpath_file_keep_set(Eo *obj, Eina_Bool keep);


path (get, set)

The original source path provided to lookup/fetch from
const char *efl_vpath_file_path_get(const Eo *obj);
void efl_vpath_file_path_set(Eo *obj, const char *path);


result (get, set)

The resulting real local file path to open/read
const char *efl_vpath_file_result_get(const Eo *obj);
void efl_vpath_file_result_set(Eo *obj, const char *path);


wait

If not fetched yet, wait until it is and call result cb
void efl_vpath_file_wait(Eo *obj);


Inherited

Efl.Object
allow_parent_unref (get, set) Allow an object to be deleted by unref even if it has a parent.
children_iterator_new Get an iterator on all childrens
comment (get, set) A human readable comment for the object
composite_attach Make an object a composite object of another.
composite_detach Detach a composite object from another object.
composite_part_is Check if an object is part of a composite object.
constructor Call the object's constructor.
debug_name_override Build a read-only name for this object used for debugging.
del Unrefs the object and reparents it to NULL.
destructor Call the object's destructor.
event_callback_forwarder_add Add an event callback forwarder for an event and an object.
event_callback_forwarder_del Remove an event callback forwarder for an event and an object.
event_callback_stop Stop the current callback call.
event_freeze Freeze events of object.
event_freeze_count (get) Return freeze events of object.
class event_global_freeze Freeze events of object.
class event_global_freeze_count (get) Return freeze events of object.
class event_global_thaw Thaw events of object.
event_thaw Thaw events of object.
finalize Called at the end of efl_add. Should not be called, just overridden.
finalized (get) True if the object is already finalized, otherwise false.
name (get, set) The name of the object.
name_find Find a child object with the given name and return it.
parent (get, set) The parent of an object.
provider_find Searches upwards in the object tree for a provider which knows the given class/interface.

Events

failed

File fetch or mapping failed
EFL_VPATH_FILE_EVENT_FAILED(void)


fetched

File successfully mapped/fetched
EFL_VPATH_FILE_EVENT_FETCHED(void)


Inherited

Efl.Object
callback,add A callback was added.
callback,del A callback was deleted.
del Object is being deleted.
destruct Object has been fully destroyed. It can not be used beyond this point. This event should only serve to clean up any dangling pointer.