|  |  |  | Evolution-Data-Server Manual: Utilities (libedataserver) |  | 
|---|---|---|---|---|
| Top | Description | Object Hierarchy | Signals | ||||
ESource; ESource * e_source_new (const gchar *name, const gchar *relative_uri); ESource * e_source_new_with_absolute_uri (const gchar *name, const gchar *absolute_uri); ESource * e_source_new_from_xml_node (xmlNodePtr node); ESource * e_source_new_from_standalone_xml (const gchar *xml); ESource * e_source_copy (ESource *source); gboolean e_source_update_from_xml_node (ESource *source, xmlNodePtr node, gboolean *changed_return); gchar * e_source_uid_from_xml_node (xmlNodePtr node); void e_source_set_group (ESource *source, ESourceGroup *group); void e_source_set_name (ESource *source, const gchar *name); void e_source_set_relative_uri (ESource *source, const gchar *relative_uri); void e_source_set_absolute_uri (ESource *source, const gchar *absolute_uri); void e_source_set_color_spec (ESource *source, const gchar *color_spec); void e_source_set_readonly (ESource *source, gboolean readonly); void e_source_set_color (ESource *source, guint32 color); void e_source_unset_color (ESource *source); ESourceGroup * e_source_peek_group (ESource *source); const gchar * e_source_peek_uid (ESource *source); const gchar * e_source_peek_name (ESource *source); const gchar * e_source_peek_relative_uri (ESource *source); const gchar * e_source_peek_absolute_uri (ESource *source); const gchar * e_source_peek_color_spec (ESource *source); gboolean e_source_get_readonly (ESource *source); gboolean e_source_get_color (ESource *source, guint32 *color_return); gchar * e_source_get_uri (ESource *source); void e_source_dump_to_xml_node (ESource *source, xmlNodePtr parent_node); gchar * e_source_to_standalone_xml (ESource *source); const gchar * e_source_get_property (ESource *source, const gchar *property); void e_source_set_property (ESource *source, const gchar *property, const gchar *value); void e_source_foreach_property (ESource *source, GHFunc func, gpointer data); gchar * e_source_get_duped_property (ESource *source, const gchar *property); gchar * e_source_build_absolute_uri (ESource *source); gboolean e_source_equal (ESource *a, ESource *b); gboolean e_source_xmlstr_equal (const gchar *a, const gchar *b);
ESource * e_source_new (const gchar *name, const gchar *relative_uri);
| 
 | |
| 
 | |
| Returns : | 
ESource * e_source_new_with_absolute_uri (const gchar *name, const gchar *absolute_uri);
| 
 | |
| 
 | |
| Returns : | 
ESource * e_source_new_from_xml_node (xmlNodePtr node);
| 
 | |
| Returns : | 
ESource * e_source_new_from_standalone_xml (const gchar *xml);
| 
 | |
| Returns : | 
gboolean e_source_update_from_xml_node (ESource *source, xmlNodePtr node, gboolean *changed_return);
Update the ESource properties from node.
| 
 | An ESource. | 
| 
 | A pointer to the node to parse. | 
| 
 | |
| Returns : | TRUEif the data innodewas recognized and parsed into
acceptable values forsource,FALSEotherwise. | 
gchar * e_source_uid_from_xml_node (xmlNodePtr node);
| 
 | |
| Returns : | 
void e_source_set_group (ESource *source, ESourceGroup *group);
| 
 | |
| 
 | 
void e_source_set_relative_uri (ESource *source, const gchar *relative_uri);
| 
 | |
| 
 | 
void e_source_set_absolute_uri (ESource *source, const gchar *absolute_uri);
| 
 | |
| 
 | 
void e_source_set_color_spec (ESource *source, const gchar *color_spec);
Store a textual representation of a color in source.  The color_spec
string should be parsable by #gdk_color_parse(), or NULL to unset the
color in source.
| 
 | an ESource | 
| 
 | a string specifying the color | 
Since 1.10
void e_source_set_readonly (ESource *source, gboolean readonly);
| 
 | |
| 
 | 
void e_source_set_color (ESource *source, guint32 color);
e_source_set_color is deprecated and should not be used in newly-written code.
| 
 | |
| 
 | 
void e_source_unset_color (ESource *source);
e_source_unset_color is deprecated and should not be used in newly-written code.
| 
 | 
const gchar * e_source_peek_relative_uri (ESource *source);
| 
 | |
| Returns : | 
const gchar * e_source_peek_absolute_uri (ESource *source);
| 
 | |
| Returns : | 
const gchar * e_source_peek_color_spec (ESource *source);
Return the textual representation of the color for source, or NULL if it
has none.  The returned string should be parsable by #gdk_color_parse().
| 
 | an ESource | 
| Returns : | a string specifying the color | 
Since 1.10
gboolean e_source_get_color (ESource *source, guint32 *color_return);
e_source_get_color is deprecated and should not be used in newly-written code.
If source has an associated color, return it in *color_return.
| 
 | An ESource | 
| 
 | Pointer to a variable where the returned color will be stored. | 
| Returns : | TRUEif thesourcehas a defined color (and hence
*color_returnwas set),FALSEotherwise. | 
void e_source_dump_to_xml_node (ESource *source, xmlNodePtr parent_node);
| 
 | |
| 
 | 
gchar * e_source_to_standalone_xml (ESource *source);
| 
 | |
| Returns : | 
const gchar * e_source_get_property (ESource *source, const gchar *property);
| 
 | |
| 
 | |
| Returns : | 
void e_source_set_property (ESource *source, const gchar *property, const gchar *value);
| 
 | |
| 
 | |
| 
 | 
void e_source_foreach_property (ESource *source, GHFunc func, gpointer data);
| 
 | |
| 
 | |
| 
 | 
gchar * e_source_get_duped_property (ESource *source, const gchar *property);
| 
 | |
| 
 | |
| Returns : | 
gchar * e_source_build_absolute_uri (ESource *source);
| 
 | |
| Returns : | 
gboolean e_source_equal (ESource *a, ESource *b);
Compares if a is equivalent to b.
| 
 | An ESource | 
| 
 | Another ESource | 
| Returns : | TRUEifais equivalent tob,FALSEotherwise. | 
"changed" signalvoid user_function (ESource *esource, gpointer user_data) : Run Last
| 
 | the object which received the signal. | 
| 
 | user data set when the signal handler was connected. |