![]() |
![]() |
![]() |
IBus Reference Manual | ![]() |
---|---|---|---|---|
Top | Description | Object Hierarchy |
IBusObservedPath; IBusObservedPath * ibus_observed_path_new_from_xml_node (XMLNode *node, gboolean fill_stat); IBusObservedPath * ibus_observed_path_new (const gchar *path, gboolean fill_stat); GList * ibus_observed_path_traverse (IBusObservedPath *path); gboolean ibus_observed_path_check_modification (IBusObservedPath *path); void ibus_observed_path_output (IBusObservedPath *path, GString *output, gint indent);
GObject +----GInitiallyUnowned +----IBusObject +----IBusSerializable +----IBusObservedPath
IBusObservedPath provides methods for file path manipulation, such as monitor modification, directory tree traversal.
typedef struct _IBusObservedPath IBusObservedPath;
Data structure of IBusObservedPath.
IBusObservedPath * ibus_observed_path_new_from_xml_node (XMLNode *node, gboolean fill_stat);
New an IBusObservedPath from an XML node.
|
An XML node that contain path. |
|
Auto-fill the path status. |
Returns : |
A newly allocated IBusObservedPath. |
IBusObservedPath * ibus_observed_path_new (const gchar *path, gboolean fill_stat);
New an IBusObservedPath from an XML node.
|
The path string. |
|
Auto-fill the path status. |
Returns : |
A newly allocated IBusObservedPath. |
GList * ibus_observed_path_traverse (IBusObservedPath *path);
Recursively traverse the path and put the files and subdirectory in to a newly allocated
GLists, if the path
is a directory. Otherwise returns NULL.
|
An IBusObservedPath. |
Returns : |
A newly allocate GList which holds content in path; NULL if path is not directory.
|
gboolean ibus_observed_path_check_modification (IBusObservedPath *path);
Checks whether the path is modified by comparing the mtime in object and mtime in file system. Returns TRUE if imtime is changed, otherwise FALSE.
|
An IBusObservedPath. |
Returns : |
TRUE if mtime is changed; FALSE otherwise. |
void ibus_observed_path_output (IBusObservedPath *path, GString *output, gint indent);
Append the observed path to a string with following format: <path mtime="<i>modified time</i>" ><i>path</i></path>
|
An IBusObservedPath. |
|
Path is appended to. |
|
number of indent. |