| Evolution Shell Reference Manual | ||||
|---|---|---|---|---|
| Top | Description | Object Hierarchy | Signals | ||||
ESignatureList; ESignatureList * e_signature_list_new (GConfClient *gconf); void e_signature_list_construct (ESignatureList *signature_list,GConfClient *gconf); void e_signature_list_save (ESignatureList *signature_list); void e_signature_list_add (ESignatureList *signature_list,ESignature *signature); void e_signature_list_change (ESignatureList *signature_list,ESignature *signature); void e_signature_list_remove (ESignatureList *signature_list,ESignature *signature); const ESignature * e_signature_list_find (ESignatureList *signature_list,e_signature_find_t type,const gchar *key);
ESignatureList * e_signature_list_new (GConfClient *gconf);
Reads the list of signaturess from gconf and listens for changes.
Will emit signature_added, signature_changed, and signature_removed
signals according to notifications from GConf.
You can modify the list using e_list_append(), e_list_remove(), and
e_iterator_delete(). After adding, removing, or changing accounts,
you must call e_signature_list_save() to push the changes back to
GConf.
|
a GConfClient |
Returns : |
the list of signatures |
void e_signature_list_construct (ESignatureList *signature_list,GConfClient *gconf);
|
|
|
void e_signature_list_save (ESignatureList *signature_list);
Saves signature_list to GConf. Signals will be emitted for changes.
|
an ESignatureList |
void e_signature_list_add (ESignatureList *signature_list,ESignature *signature);
Add an signature to the signature list. Will emit the signature-changed event.
|
|
|
signature to add |
void e_signature_list_change (ESignatureList *signature_list,ESignature *signature);
Signal that the details of an signature have changed.
|
|
|
signature to change |
void e_signature_list_remove (ESignatureList *signature_list,ESignature *signature);
Remove an signature from the signature list, and emit the signature-removed signal. If the signature was the default signature, then reset the default to the first signature.
|
|
|
signature |
const ESignature * e_signature_list_find (ESignatureList *signature_list,e_signature_find_t type,const gchar *key);
Perform a search of the signature list on a single key.
type must be set from one of the following search types:
E_SIGNATURE_FIND_NAME - Find a signature by signature name.
E_SIGNATURE_FIND_UID - Find a signature based on UID
|
|
|
Type of search. |
|
Search key. |
Returns : |
The signature or NULL if it doesn't exist. |
"signature-added" signalvoid user_function (ESignatureList *esignaturelist, ESignature *arg1, gpointer user_data) : Run Last
|
the object which received the signal. |
|
|
|
user data set when the signal handler was connected. |
"signature-changed" signalvoid user_function (ESignatureList *esignaturelist, ESignature *arg1, gpointer user_data) : Run Last
|
the object which received the signal. |
|
|
|
user data set when the signal handler was connected. |
"signature-removed" signalvoid user_function (ESignatureList *esignaturelist, ESignature *arg1, gpointer user_data) : Run Last
|
the object which received the signal. |
|
|
|
user data set when the signal handler was connected. |