* Removed gtkdocize call from autogen.sh
* Added an index to the generated documentation
* Added widgets and gtk directories to the documentation
pmo-trunk-r577
21 files changed:
echo "You need to install gnome-common from GNOME CVS"
exit 1
}
echo "You need to install gnome-common from GNOME CVS"
exit 1
}
-USE_GNOME2_MACROS=1 . gnome-autogen.sh
-
-gtkdocize || {
- echo -n "**Error**: gtkdoc not found. Please install"
- exit 1
-}
-
+USE_GNOME2_MACROS=1 . gnome-autogen.sh
\ No newline at end of file
esac],[build_docs=false])
AM_CONDITIONAL(BUILD_DOCS, test x$build_docs = xtrue)
esac],[build_docs=false])
AM_CONDITIONAL(BUILD_DOCS, test x$build_docs = xtrue)
-dnl ## is the check package installed?
DOC_MODULE=modest
# The top-level SGML file. You can change this if you want to.
DOC_MODULE=modest
# The top-level SGML file. You can change this if you want to.
-DOC_MAIN_SGML_FILE=modest-docs.sgml
+DOC_MAIN_SGML_FILE=$(DOC_MODULE)-docs.sgml
# The directory containing the source code. Relative to $(srcdir).
# gtk-doc will search all .c & .h files beneath here for inline comments
# The directory containing the source code. Relative to $(srcdir).
# gtk-doc will search all .c & .h files beneath here for inline comments
# Extra SGML files that are included by $(DOC_MAIN_SGML_FILE).
# e.g. content_files=running.sgml building.sgml changes-2.0.sgml
# Extra SGML files that are included by $(DOC_MAIN_SGML_FILE).
# e.g. content_files=running.sgml building.sgml changes-2.0.sgml
-content_files=#xml/tree_index.sgml
+content_files=xml/tree_index.sgml
# SGML files where gtk-doc abbrevations (#GtkWidget) are expanded
# These files must be listed here *and* in content_files
# SGML files where gtk-doc abbrevations (#GtkWidget) are expanded
# These files must be listed here *and* in content_files
-<!--<book id="index" xmlns:xi="http://www.w3.org/2003/XInclude">-->
<book id="index">
<bookinfo>
<title>modest technical documentation</title>
<book id="index">
<bookinfo>
<title>modest technical documentation</title>
<reference>
<title>Object Index</title>
<reference>
<title>Object Index</title>
</chapter>
<chapter id="gtk">
<title>Gtk</title>
</chapter>
<chapter id="gtk">
<title>Gtk</title>
+ >k-ModestAccountViewWindow;
+ >k-ModestAccountAssistant;
+ >k-ModestEditMsgWindow;
+ >k-ModestMainWindow;
+ >k-ModestStoreWidget;
+ >k-modestTransportWidget;
+ >k-modestUi;
</chapter>
<chapter id="widgets">
<title>Widgets</title>
</chapter>
<chapter id="widgets">
<title>Widgets</title>
+ &widgets-ModestAccountView;
+ &widgets-ModestComboBox;
+ &widgets-ModestFolderView;
+ &widgets-ModestHeaderView;
+ &widgets-ModestMsgView;
+ &widgets-modestToolbar;
+
+
+ <index>
+ <title>Index</title>
+ </index>
+
-<FILE>modest-widget-memory</FILE>
-modest_widget_memory_save
-modest_widget_memory_restore
-</SECTION>
-
-<SECTION>
-<FILE>modest-tny-msg-actions</FILE>
-modest_tny_msg_actions_find_body_part
-modest_tny_msg_actions_find_nth_part
-modest_tny_msg_actions_find_body
-</SECTION>
-
-<SECTION>
<FILE>modest-marshal</FILE>
modest_marshal_VOID__POINTER_POINTER
modest_marshal_VOID__POINTER_POINTER_POINTER
<FILE>modest-marshal</FILE>
modest_marshal_VOID__POINTER_POINTER
modest_marshal_VOID__POINTER_POINTER_POINTER
+<FILE>modest-widget-memory</FILE>
+modest_widget_memory_save
+modest_widget_memory_restore
+</SECTION>
+
+<SECTION>
+<FILE>modest-tny-msg-actions</FILE>
+modest_tny_msg_actions_find_body_part
+modest_tny_msg_actions_find_nth_part
+modest_tny_msg_actions_find_body
+</SECTION>
+
+<SECTION>
<FILE>modest-error</FILE>
ModestErrorDomain
ModestErrorCode
<FILE>modest-error</FILE>
ModestErrorDomain
ModestErrorCode
-<FILE>modest-widget-memory</FILE>
-modest_widget_memory_save
-modest_widget_memory_restore
-</SECTION>
-
-<SECTION>
-<FILE>modest-tny-msg-actions</FILE>
-modest_tny_msg_actions_find_body_part
-modest_tny_msg_actions_find_nth_part
-modest_tny_msg_actions_find_body
-</SECTION>
-
-<SECTION>
<FILE>modest-marshal</FILE>
modest_marshal_VOID__POINTER_POINTER
modest_marshal_VOID__POINTER_POINTER_POINTER
<FILE>modest-marshal</FILE>
modest_marshal_VOID__POINTER_POINTER
modest_marshal_VOID__POINTER_POINTER_POINTER
+<FILE>modest-widget-memory</FILE>
+modest_widget_memory_save
+modest_widget_memory_restore
+</SECTION>
+
+<SECTION>
+<FILE>modest-tny-msg-actions</FILE>
+modest_tny_msg_actions_find_body_part
+modest_tny_msg_actions_find_nth_part
+modest_tny_msg_actions_find_body
+</SECTION>
+
+<SECTION>
<FILE>modest-error</FILE>
ModestErrorDomain
ModestErrorCode
<FILE>modest-error</FILE>
ModestErrorDomain
ModestErrorCode
-@modestaccountmgr: the object which received the signal.
-@arg1:
-@arg2:
-@arg3:
<!-- ##### SIGNAL ModestAccountMgr::account-removed ##### -->
<para>
</para>
<!-- ##### SIGNAL ModestAccountMgr::account-removed ##### -->
<para>
</para>
-@modestaccountmgr: the object which received the signal.
-@arg1:
-@arg2:
<!-- ##### SIGNAL ModestAccountMgr::account-changed ##### -->
<para>
</para>
<!-- ##### SIGNAL ModestAccountMgr::account-changed ##### -->
<para>
</para>
-@modestaccountmgr: the object which received the signal.
-@arg1:
-@arg2:
-@arg3:
<!-- ##### SIGNAL ModestAccountMgr::account-removed ##### -->
<para>
</para>
<!-- ##### SIGNAL ModestAccountMgr::account-removed ##### -->
<para>
</para>
-@modestaccountmgr: the object which received the signal.
-@arg1:
-@arg2:
<!-- ##### STRUCT ModestServerAccountData ##### -->
<para>
<!-- ##### STRUCT ModestServerAccountData ##### -->
<para>
+<!-- ##### FUNCTION modest_account_mgr_get_list ##### -->
+<para>
+
+</para>
+
+@self:
+@name:
+@key:
+@list_type:
+@server_account:
+@err:
+@Returns:
+
+
<!-- ##### FUNCTION modest_account_mgr_set_string ##### -->
<para>
<!-- ##### FUNCTION modest_account_mgr_set_string ##### -->
<para>
-<!-- ##### FUNCTION modest_account_mgr_get_list ##### -->
+<!-- ##### FUNCTION modest_account_mgr_set_list ##### -->
@list_type:
@server_account:
@err:
@list_type:
@server_account:
@err:
+
+
+<!-- ##### FUNCTION modest_account_mgr_unset ##### -->
+<para>
+
+</para>
+
+@self:
+@name:
+@key:
+@server_account:
+@err:
+@modestconf: the object which received the signal.
+@arg1:
+@arg2:
<!-- ##### SIGNAL ModestConf::key-changed ##### -->
<para>
</para>
<!-- ##### SIGNAL ModestConf::key-changed ##### -->
<para>
</para>
+@modestconf: the object which received the signal.
+@arg1:
+@arg2:
<!-- ##### FUNCTION modest_conf_new ##### -->
<para>
<!-- ##### FUNCTION modest_conf_new ##### -->
<para>
-<!-- ##### FUNCTION modest_conf_get_string_or_default ##### -->
+<!-- ##### FUNCTION modest_conf_get_list ##### -->
<para>
</para>
@self:
@key:
<para>
</para>
@self:
@key:
-<!-- ##### FUNCTION modest_conf_get_int_or_default ##### -->
+<!-- ##### FUNCTION modest_conf_set_string ##### -->
<para>
</para>
@self:
@key:
<para>
</para>
@self:
@key:
-<!-- ##### FUNCTION modest_conf_set_string ##### -->
+<!-- ##### FUNCTION modest_conf_set_int ##### -->
-<!-- ##### FUNCTION modest_conf_set_int ##### -->
+<!-- ##### FUNCTION modest_conf_set_bool ##### -->
-<!-- ##### FUNCTION modest_conf_set_bool ##### -->
+<!-- ##### FUNCTION modest_conf_set_list ##### -->
<!-- ##### FUNCTION modest_conf_list_subkeys ##### -->
<!-- ##### FUNCTION modest_conf_list_subkeys ##### -->
-<!-- ##### FUNCTION modest_conf_key_escape ##### -->
+<!-- ##### FUNCTION modest_conf_key_is_valid ##### -->
-<!-- ##### FUNCTION modest_conf_key_unescape ##### -->
+<!-- ##### FUNCTION modest_conf_key_escape ##### -->
-<!-- ##### FUNCTION modest_conf_get_list ##### -->
+<!-- ##### FUNCTION modest_conf_key_unescape ##### -->
-@self:
-@key:
-@list_type:
-@err:
-@modesttnyaccountstore: the object which received the signal.
-@arg1:
<!-- ##### SIGNAL ModestTnyAccountStore::password-requested ##### -->
<para>
</para>
<!-- ##### SIGNAL ModestTnyAccountStore::password-requested ##### -->
<para>
</para>
-@modesttnyaccountstore: the object which received the signal.
-@arg1:
-@arg2:
-@arg3:
+@:
+@:
+@:
+@:
+@Param5:
<!-- ##### SIGNAL ModestTnyAccountStore::account-update ##### -->
<para>
</para>
<!-- ##### SIGNAL ModestTnyAccountStore::account-update ##### -->
<para>
</para>
-@modesttnyaccountstore: the object which received the signal.
-@arg1:
<!-- ##### SIGNAL ModestTnyAccountStore::password-requested ##### -->
<para>
</para>
<!-- ##### SIGNAL ModestTnyAccountStore::password-requested ##### -->
<para>
</para>
-@modesttnyaccountstore: the object which received the signal.
-@arg1:
-@arg2:
-@arg3:
+@:
+@:
+@:
+@:
+@Param5:
<!-- ##### FUNCTION modest_tny_account_store_new ##### -->
<para>
<!-- ##### FUNCTION modest_tny_account_store_new ##### -->
<para>
-<!-- ##### FUNCTION modest_ui_show_main_window ##### -->
-<para>
-
-</para>
-
-@ui:
-@Returns:
-
-
-<!-- ##### FUNCTION modest_ui_new_edit_window ##### -->
-<para>
-
-</para>
-
-@ui:
-@to:
-@cc:
-@bcc:
-@subject:
-@body:
-@att:
-@Returns:
-
-
-<!-- ##### FUNCTION modest_ui_new_editor_window ##### -->
-<para>
-
-</para>
-
-@modest_ui:
-@user_data:
-@Returns:
-
-
-<!-- ##### FUNCTION modest_ui_editor_window_set_to_header ##### -->
-<para>
-
-</para>
-
-@to:
-@window_data:
-@Returns:
-
-
-<!-- ##### FUNCTION modest_ui_editor_window_set_cc_header ##### -->
-<para>
-
-</para>
-
-@cc:
-@window_data:
-@Returns:
-
-
-<!-- ##### FUNCTION modest_ui_editor_window_set_bcc_header ##### -->
-<para>
-
-</para>
-
-@bcc:
-@window_data:
-@Returns:
-
-
-<!-- ##### FUNCTION modest_ui_editor_window_set_subject_header ##### -->
-<para>
-
-</para>
-
-@subject:
-@window_data:
-@Returns:
-
-
-<!-- ##### FUNCTION modest_ui_editor_window_set_body ##### -->
-<para>
-
-</para>
-
-@body:
-@window_data:
-@Returns:
-
-
-<!-- ##### FUNCTION modest_ui_editor_window_update_attachments ##### -->
-<para>
-
-</para>
-
-@window_data:
-@Returns:
-
-
-<!-- ##### FUNCTION modest_ui_new_viewer_window ##### -->
-<para>
-
-</para>
-
-@modest_ui:
-@msg_view:
-@msg:
-@user_data:
-@Returns:
-
-
<!-- ##### FUNCTION modest_ui_main_window ##### -->
<para>
<!-- ##### FUNCTION modest_ui_main_window ##### -->
<para>
+<!-- ##### FUNCTION modest_conf_get_int_or_default ##### -->
+<para>
+
+</para>
+
+@self:
+@key:
+@defaultval:
+@Returns:
+
+<!-- ##### FUNCTION modest_conf_get_string_or_default ##### -->
+<para>
+
+</para>
+
+@self:
+@key:
+@defaultval:
+@Returns:
+
<!-- ##### FUNCTION modest_edit_window_new ##### -->
<para>
<!-- ##### FUNCTION modest_edit_window_new ##### -->
<para>
@attachments_list:
@Returns:
@attachments_list:
@Returns:
+<!-- ##### FUNCTION modest_ui_editor_window_set_bcc_header ##### -->
+<para>
+
+</para>
+
+@bcc:
+@window_data:
+@Returns:
+
+<!-- ##### FUNCTION modest_ui_editor_window_set_body ##### -->
+<para>
+
+</para>
+
+@body:
+@window_data:
+@Returns:
+
+<!-- ##### FUNCTION modest_ui_editor_window_set_cc_header ##### -->
+<para>
+
+</para>
+
+@cc:
+@window_data:
+@Returns:
+
+<!-- ##### FUNCTION modest_ui_editor_window_set_subject_header ##### -->
+<para>
+
+</para>
+
+@subject:
+@window_data:
+@Returns:
+
+<!-- ##### FUNCTION modest_ui_editor_window_set_to_header ##### -->
+<para>
+
+</para>
+
+@to:
+@window_data:
+@Returns:
+
+<!-- ##### FUNCTION modest_ui_editor_window_update_attachments ##### -->
+<para>
+
+</para>
+
+@window_data:
+@Returns:
+
+<!-- ##### FUNCTION modest_ui_new_edit_window ##### -->
+<para>
+
+</para>
+
+@ui:
+@to:
+@cc:
+@bcc:
+@subject:
+@body:
+@att:
+@Returns:
+
+<!-- ##### FUNCTION modest_ui_new_editor_window ##### -->
+<para>
+
+</para>
+
+@modest_ui:
+@user_data:
+@Returns:
+
+<!-- ##### FUNCTION modest_ui_new_viewer_window ##### -->
+<para>
+
+</para>
+
+@modest_ui:
+@msg_view:
+@msg:
+@user_data:
+@Returns:
+
<!-- ##### FUNCTION modest_ui_show_edit_window ##### -->
<para>
<!-- ##### FUNCTION modest_ui_show_edit_window ##### -->
<para>
+<!-- ##### FUNCTION modest_ui_show_main_window ##### -->
+<para>
+
+</para>
+
+@ui:
+@Returns:
+
<!-- ##### FUNCTION modest_window_mgr_find_by_id ##### -->
<para>
<!-- ##### FUNCTION modest_window_mgr_find_by_id ##### -->
<para>
* @self: a ModestAccountMgr instance
* @name: the name of the account
* @key: the key of the value to set
* @self: a ModestAccountMgr instance
* @name: the name of the account
* @key: the key of the value to set
- * @key: the list with the values to set
+ * @val: the list with the values to set
* @list_type: the type of the members of the list
* @server_account: if TRUE, this is a server account
* @err: a GError ptr, or NULL to ignore.
* @list_type: the type of the members of the list
* @server_account: if TRUE, this is a server account
* @err: a GError ptr, or NULL to ignore.
gboolean has_attachments);
gboolean has_attachments);
-static void modest_mail_operation_xfer_folder (ModestMailOperation *mail_op,
+static void modest_mail_operation_xfer_folder (ModestMailOperation *self,
TnyFolder *folder,
TnyFolderStore *parent,
gboolean delete_original);
TnyFolder *folder,
TnyFolderStore *parent,
gboolean delete_original);
-static void modest_mail_operation_xfer_msg (ModestMailOperation *mail_op,
+static void modest_mail_operation_xfer_msg (ModestMailOperation *self,
TnyHeader *header,
TnyFolder *folder,
gboolean delete_original);
TnyHeader *header,
TnyFolder *folder,
gboolean delete_original);
-static TnyFolder * modest_mail_operation_find_trash_folder (ModestMailOperation *mail_op,
+static TnyFolder * modest_mail_operation_find_trash_folder (ModestMailOperation *self,
TnyStoreAccount *store_account);
TnyStoreAccount *store_account);
-modest_mail_operation_send_mail (ModestMailOperation *mail_op,
+modest_mail_operation_send_mail (ModestMailOperation *self,
TnyTransportAccount *transport_account,
TnyMsg* msg)
{
TnyTransportAccount *transport_account,
TnyMsg* msg)
{
- g_return_if_fail (MODEST_IS_MAIL_OPERATION (mail_op));
+ g_return_if_fail (MODEST_IS_MAIL_OPERATION (self));
g_return_if_fail (TNY_IS_TRANSPORT_ACCOUNT (transport_account));
tny_transport_account_send (transport_account, msg, NULL); /* FIXME */
}
void
g_return_if_fail (TNY_IS_TRANSPORT_ACCOUNT (transport_account));
tny_transport_account_send (transport_account, msg, NULL); /* FIXME */
}
void
-modest_mail_operation_send_new_mail (ModestMailOperation *mail_op,
+modest_mail_operation_send_new_mail (ModestMailOperation *self,
TnyTransportAccount *transport_account,
const gchar *from,
const gchar *to,
TnyTransportAccount *transport_account,
const gchar *from,
const gchar *to,
gchar *content_type;
ModestMailOperationPrivate *priv = NULL;
gchar *content_type;
ModestMailOperationPrivate *priv = NULL;
- g_return_if_fail (MODEST_IS_MAIL_OPERATION (mail_op));
+ g_return_if_fail (MODEST_IS_MAIL_OPERATION (self));
g_return_if_fail (TNY_IS_TRANSPORT_ACCOUNT (transport_account));
g_return_if_fail (TNY_IS_TRANSPORT_ACCOUNT (transport_account));
- priv = MODEST_MAIL_OPERATION_GET_PRIVATE(mail_op);
+ priv = MODEST_MAIL_OPERATION_GET_PRIVATE(self);
/* Check parametters */
if (to == NULL) {
/* Check parametters */
if (to == NULL) {
static void
folder_refresh_cb (TnyFolder *folder, gboolean canceled, GError **err, gpointer user_data)
{
static void
folder_refresh_cb (TnyFolder *folder, gboolean canceled, GError **err, gpointer user_data)
{
- ModestMailOperation *mail_op = NULL;
+ ModestMailOperation *self = NULL;
ModestMailOperationPrivate *priv = NULL;
RefreshFolderAsyncHelper *helper;
helper = (RefreshFolderAsyncHelper *) user_data;
ModestMailOperationPrivate *priv = NULL;
RefreshFolderAsyncHelper *helper;
helper = (RefreshFolderAsyncHelper *) user_data;
- mail_op = MODEST_MAIL_OPERATION (helper->mail_op);
- priv = MODEST_MAIL_OPERATION_GET_PRIVATE(mail_op);
+ self = MODEST_MAIL_OPERATION (helper->mail_op);
+ priv = MODEST_MAIL_OPERATION_GET_PRIVATE(self);
if ((canceled && *err) || *err) {
priv->error = g_error_copy (*err);
if ((canceled && *err) || *err) {
priv->error = g_error_copy (*err);
status_update_cb,
helper);
}
status_update_cb,
helper);
}
- g_signal_emit (G_OBJECT (mail_op), signals[PROGRESS_CHANGED_SIGNAL], 0, NULL);
+ g_signal_emit (G_OBJECT (self), signals[PROGRESS_CHANGED_SIGNAL], 0, NULL);
-update_folders_cb (TnyFolderStore *self, TnyList *list, GError **err, gpointer user_data)
+update_folders_cb (TnyFolderStore *folder_store, TnyList *list, GError **err, gpointer user_data)
- ModestMailOperation *mail_op;
+ ModestMailOperation *self;
ModestMailOperationPrivate *priv;
TnyList *folders;
RefreshFolderAsyncHelper *helper;
ModestMailOperationPrivate *priv;
TnyList *folders;
RefreshFolderAsyncHelper *helper;
- mail_op = MODEST_MAIL_OPERATION (user_data);
- priv = MODEST_MAIL_OPERATION_GET_PRIVATE (mail_op);
+ self = MODEST_MAIL_OPERATION (user_data);
+ priv = MODEST_MAIL_OPERATION_GET_PRIVATE (self);
if (*err) {
priv->error = g_error_copy (*err);
if (*err) {
priv->error = g_error_copy (*err);
priv->status = MODEST_MAIL_OPERATION_STATUS_IN_PROGRESS;
helper = g_slice_new0 (RefreshFolderAsyncHelper);
priv->status = MODEST_MAIL_OPERATION_STATUS_IN_PROGRESS;
helper = g_slice_new0 (RefreshFolderAsyncHelper);
- helper->mail_op = mail_op;
+ helper->mail_op = self;
helper->iter = tny_list_create_iterator (list);
helper->failed = 0;
helper->canceled = 0;
helper->iter = tny_list_create_iterator (list);
helper->failed = 0;
helper->canceled = 0;
-modest_mail_operation_update_account (ModestMailOperation *mail_op,
+modest_mail_operation_update_account (ModestMailOperation *self,
TnyStoreAccount *store_account)
{
ModestMailOperationPrivate *priv;
TnyList *folders;
TnyFolderStoreQuery *query;
TnyStoreAccount *store_account)
{
ModestMailOperationPrivate *priv;
TnyList *folders;
TnyFolderStoreQuery *query;
- g_return_val_if_fail (MODEST_IS_MAIL_OPERATION (mail_op), FALSE);
+ g_return_val_if_fail (MODEST_IS_MAIL_OPERATION (self), FALSE);
g_return_val_if_fail (TNY_IS_STORE_ACCOUNT(store_account), FALSE);
g_return_val_if_fail (TNY_IS_STORE_ACCOUNT(store_account), FALSE);
- priv = MODEST_MAIL_OPERATION_GET_PRIVATE(mail_op);
+ priv = MODEST_MAIL_OPERATION_GET_PRIVATE(self);
/* Get subscribed folders & refresh them */
folders = TNY_LIST (tny_simple_list_new ());
query = tny_folder_store_query_new ();
tny_folder_store_query_add_item (query, NULL, TNY_FOLDER_STORE_QUERY_OPTION_SUBSCRIBED);
tny_folder_store_get_folders_async (TNY_FOLDER_STORE (store_account),
/* Get subscribed folders & refresh them */
folders = TNY_LIST (tny_simple_list_new ());
query = tny_folder_store_query_new ();
tny_folder_store_query_add_item (query, NULL, TNY_FOLDER_STORE_QUERY_OPTION_SUBSCRIBED);
tny_folder_store_get_folders_async (TNY_FOLDER_STORE (store_account),
- folders, update_folders_cb, query, mail_op);
+ folders, update_folders_cb, query, self);
g_object_unref (query);
return TRUE;
}
ModestMailOperationStatus
g_object_unref (query);
return TRUE;
}
ModestMailOperationStatus
-modest_mail_operation_get_status (ModestMailOperation *mail_op)
+modest_mail_operation_get_status (ModestMailOperation *self)
{
ModestMailOperationPrivate *priv;
{
ModestMailOperationPrivate *priv;
- g_return_val_if_fail (mail_op, MODEST_MAIL_OPERATION_STATUS_INVALID);
- g_return_val_if_fail (MODEST_IS_MAIL_OPERATION (mail_op),
+ g_return_val_if_fail (self, MODEST_MAIL_OPERATION_STATUS_INVALID);
+ g_return_val_if_fail (MODEST_IS_MAIL_OPERATION (self),
MODEST_MAIL_OPERATION_STATUS_INVALID);
MODEST_MAIL_OPERATION_STATUS_INVALID);
- priv = MODEST_MAIL_OPERATION_GET_PRIVATE (mail_op);
+ priv = MODEST_MAIL_OPERATION_GET_PRIVATE (self);
return priv->status;
}
const GError *
return priv->status;
}
const GError *
-modest_mail_operation_get_error (ModestMailOperation *mail_op)
+modest_mail_operation_get_error (ModestMailOperation *self)
{
ModestMailOperationPrivate *priv;
{
ModestMailOperationPrivate *priv;
- g_return_val_if_fail (mail_op, NULL);
- g_return_val_if_fail (MODEST_IS_MAIL_OPERATION (mail_op), NULL);
+ g_return_val_if_fail (self, NULL);
+ g_return_val_if_fail (MODEST_IS_MAIL_OPERATION (self), NULL);
- priv = MODEST_MAIL_OPERATION_GET_PRIVATE (mail_op);
+ priv = MODEST_MAIL_OPERATION_GET_PRIVATE (self);
-modest_mail_operation_get_task_done (ModestMailOperation *mail_op)
+modest_mail_operation_get_task_done (ModestMailOperation *self)
{
ModestMailOperationPrivate *priv;
{
ModestMailOperationPrivate *priv;
- g_return_val_if_fail (MODEST_IS_MAIL_OPERATION (mail_op), 0);
+ g_return_val_if_fail (MODEST_IS_MAIL_OPERATION (self), 0);
- priv = MODEST_MAIL_OPERATION_GET_PRIVATE (mail_op);
+ priv = MODEST_MAIL_OPERATION_GET_PRIVATE (self);
return priv->done;
}
guint
return priv->done;
}
guint
-modest_mail_operation_get_task_total (ModestMailOperation *mail_op)
+modest_mail_operation_get_task_total (ModestMailOperation *self)
{
ModestMailOperationPrivate *priv;
{
ModestMailOperationPrivate *priv;
- g_return_val_if_fail (MODEST_IS_MAIL_OPERATION (mail_op), 0);
+ g_return_val_if_fail (MODEST_IS_MAIL_OPERATION (self), 0);
- priv = MODEST_MAIL_OPERATION_GET_PRIVATE (mail_op);
+ priv = MODEST_MAIL_OPERATION_GET_PRIVATE (self);
return priv->total;
}
gboolean
return priv->total;
}
gboolean
-modest_mail_operation_is_finished (ModestMailOperation *mail_op)
+modest_mail_operation_is_finished (ModestMailOperation *self)
{
ModestMailOperationPrivate *priv;
gboolean retval = FALSE;
{
ModestMailOperationPrivate *priv;
gboolean retval = FALSE;
- if (!MODEST_IS_MAIL_OPERATION (mail_op)) {
+ if (!MODEST_IS_MAIL_OPERATION (self)) {
g_warning ("%s: invalid parametter", G_GNUC_FUNCTION);
return retval;
}
g_warning ("%s: invalid parametter", G_GNUC_FUNCTION);
return retval;
}
- priv = MODEST_MAIL_OPERATION_GET_PRIVATE (mail_op);
+ priv = MODEST_MAIL_OPERATION_GET_PRIVATE (self);
if (priv->status == MODEST_MAIL_OPERATION_STATUS_SUCCESS ||
priv->status == MODEST_MAIL_OPERATION_STATUS_FAILED ||
if (priv->status == MODEST_MAIL_OPERATION_STATUS_SUCCESS ||
priv->status == MODEST_MAIL_OPERATION_STATUS_FAILED ||
-modest_mail_operation_create_folder (ModestMailOperation *mail_op,
+modest_mail_operation_create_folder (ModestMailOperation *self,
TnyFolderStore *parent,
const gchar *name)
{
TnyFolderStore *parent,
const gchar *name)
{
-modest_mail_operation_remove_folder (ModestMailOperation *mail_op,
+modest_mail_operation_remove_folder (ModestMailOperation *self,
TnyFolder *folder,
gboolean remove_to_trash)
{
TnyFolder *folder,
gboolean remove_to_trash)
{
if (remove_to_trash) {
TnyFolder *trash_folder;
if (remove_to_trash) {
TnyFolder *trash_folder;
- trash_folder = modest_mail_operation_find_trash_folder (mail_op,
+ trash_folder = modest_mail_operation_find_trash_folder (self,
TNY_STORE_ACCOUNT (folder_store));
/* TODO: error_handling */
TNY_STORE_ACCOUNT (folder_store));
/* TODO: error_handling */
- modest_mail_operation_move_folder (mail_op,
+ modest_mail_operation_move_folder (self,
folder,
TNY_FOLDER_STORE (trash_folder));
} else {
folder,
TNY_FOLDER_STORE (trash_folder));
} else {
-modest_mail_operation_rename_folder (ModestMailOperation *mail_op,
+modest_mail_operation_rename_folder (ModestMailOperation *self,
TnyFolder *folder,
const gchar *name)
{
TnyFolder *folder,
const gchar *name)
{
- g_return_if_fail (MODEST_IS_MAIL_OPERATION (mail_op));
+ g_return_if_fail (MODEST_IS_MAIL_OPERATION (self));
g_return_if_fail (TNY_IS_FOLDER_STORE (folder));
g_return_if_fail (name);
g_return_if_fail (TNY_IS_FOLDER_STORE (folder));
g_return_if_fail (name);
-modest_mail_operation_move_folder (ModestMailOperation *mail_op,
+modest_mail_operation_move_folder (ModestMailOperation *self,
TnyFolder *folder,
TnyFolderStore *parent)
{
TnyFolder *folder,
TnyFolderStore *parent)
{
- g_return_if_fail (MODEST_IS_MAIL_OPERATION (mail_op));
+ g_return_if_fail (MODEST_IS_MAIL_OPERATION (self));
g_return_if_fail (TNY_IS_FOLDER_STORE (parent));
g_return_if_fail (TNY_IS_FOLDER (folder));
g_return_if_fail (TNY_IS_FOLDER_STORE (parent));
g_return_if_fail (TNY_IS_FOLDER (folder));
- modest_mail_operation_xfer_folder (mail_op, folder, parent, TRUE);
+ modest_mail_operation_xfer_folder (self, folder, parent, TRUE);
-modest_mail_operation_copy_folder (ModestMailOperation *mail_op,
+modest_mail_operation_copy_folder (ModestMailOperation *self,
TnyFolder *folder,
TnyFolderStore *parent)
{
TnyFolder *folder,
TnyFolderStore *parent)
{
- g_return_if_fail (MODEST_IS_MAIL_OPERATION (mail_op));
+ g_return_if_fail (MODEST_IS_MAIL_OPERATION (self));
g_return_if_fail (TNY_IS_FOLDER_STORE (parent));
g_return_if_fail (TNY_IS_FOLDER (folder));
g_return_if_fail (TNY_IS_FOLDER_STORE (parent));
g_return_if_fail (TNY_IS_FOLDER (folder));
- modest_mail_operation_xfer_folder (mail_op, folder, parent, FALSE);
+ modest_mail_operation_xfer_folder (self, folder, parent, FALSE);
-modest_mail_operation_xfer_folder (ModestMailOperation *mail_op,
+modest_mail_operation_xfer_folder (ModestMailOperation *self,
TnyFolder *folder,
TnyFolderStore *parent,
gboolean delete_original)
TnyFolder *folder,
TnyFolderStore *parent,
gboolean delete_original)
/* Create the destination folder */
folder_name = tny_folder_get_name (folder);
/* Create the destination folder */
folder_name = tny_folder_get_name (folder);
- dest_folder = modest_mail_operation_create_folder (mail_op,
+ dest_folder = modest_mail_operation_create_folder (self,
parent, folder_name);
/* Transfer messages */
parent, folder_name);
/* Transfer messages */
while (!tny_iterator_is_done (iter)) {
child = TNY_FOLDER (tny_iterator_get_current (iter));
while (!tny_iterator_is_done (iter)) {
child = TNY_FOLDER (tny_iterator_get_current (iter));
- modest_mail_operation_xfer_folder (mail_op, child,
+ modest_mail_operation_xfer_folder (self, child,
TNY_FOLDER_STORE (dest_folder),
delete_original);
tny_iterator_next (iter);
TNY_FOLDER_STORE (dest_folder),
delete_original);
tny_iterator_next (iter);
/* Delete source folder (if needed) */
if (delete_original)
/* Delete source folder (if needed) */
if (delete_original)
- modest_mail_operation_remove_folder (mail_op, folder, FALSE);
+ modest_mail_operation_remove_folder (self, folder, FALSE);
/* Clean up */
g_object_unref (G_OBJECT (dest_folder));
/* Clean up */
g_object_unref (G_OBJECT (dest_folder));
/* FIXME: this method should be rewritten when the policy for the
Trash folder becomes clearer */
static TnyFolder *
/* FIXME: this method should be rewritten when the policy for the
Trash folder becomes clearer */
static TnyFolder *
-modest_mail_operation_find_trash_folder (ModestMailOperation *mail_op,
+modest_mail_operation_find_trash_folder (ModestMailOperation *self,
TnyStoreAccount *store_account)
{
TnyList *folders;
TnyStoreAccount *store_account)
{
TnyList *folders;
/* ******************************************************************* */
void
/* ******************************************************************* */
void
-modest_mail_operation_copy_msg (ModestMailOperation *mail_op,
+modest_mail_operation_copy_msg (ModestMailOperation *self,
TnyHeader *header,
TnyFolder *folder)
{
g_return_if_fail (TNY_IS_HEADER (header));
g_return_if_fail (TNY_IS_FOLDER (folder));
TnyHeader *header,
TnyFolder *folder)
{
g_return_if_fail (TNY_IS_HEADER (header));
g_return_if_fail (TNY_IS_FOLDER (folder));
- modest_mail_operation_xfer_msg (mail_op, header, folder, FALSE);
+ modest_mail_operation_xfer_msg (self, header, folder, FALSE);
-modest_mail_operation_move_msg (ModestMailOperation *mail_op,
+modest_mail_operation_move_msg (ModestMailOperation *self,
TnyHeader *header,
TnyFolder *folder)
{
g_return_if_fail (TNY_IS_HEADER (header));
g_return_if_fail (TNY_IS_FOLDER (folder));
TnyHeader *header,
TnyFolder *folder)
{
g_return_if_fail (TNY_IS_HEADER (header));
g_return_if_fail (TNY_IS_FOLDER (folder));
- modest_mail_operation_xfer_msg (mail_op, header, folder, TRUE);
+ modest_mail_operation_xfer_msg (self, header, folder, TRUE);
-modest_mail_operation_remove_msg (ModestMailOperation *mail_op,
+modest_mail_operation_remove_msg (ModestMailOperation *self,
TnyHeader *header,
gboolean remove_to_trash)
{
TnyHeader *header,
gboolean remove_to_trash)
{
TnyStoreAccount *store_account;
store_account = TNY_STORE_ACCOUNT (tny_folder_get_account (folder));
TnyStoreAccount *store_account;
store_account = TNY_STORE_ACCOUNT (tny_folder_get_account (folder));
- trash_folder = modest_mail_operation_find_trash_folder (mail_op, store_account);
+ trash_folder = modest_mail_operation_find_trash_folder (self, store_account);
- modest_mail_operation_move_msg (mail_op, header, trash_folder);
+ modest_mail_operation_move_msg (self, header, trash_folder);
g_object_unref (G_OBJECT (store_account));
} else {
g_object_unref (G_OBJECT (store_account));
} else {
-modest_mail_operation_xfer_msg (ModestMailOperation *mail_op,
+modest_mail_operation_xfer_msg (ModestMailOperation *self,
TnyHeader *header,
TnyFolder *folder,
gboolean delete_original)
TnyHeader *header,
TnyFolder *folder,
gboolean delete_original)
* #TnyTransportAccount. This operation is synchronous, so the
* #ModestMailOperation should not be added to any
* #ModestMailOperationQueue
* #TnyTransportAccount. This operation is synchronous, so the
* #ModestMailOperation should not be added to any
* #ModestMailOperationQueue
void modest_mail_operation_send_mail (ModestMailOperation *self,
TnyTransportAccount *transport_account,
TnyMsg* msg);
void modest_mail_operation_send_mail (ModestMailOperation *self,
TnyTransportAccount *transport_account,
TnyMsg* msg);
* #TnyTransportAccount. This operation is synchronous, so the
* #ModestMailOperation should not be added to any
* #ModestMailOperationQueue
* #TnyTransportAccount. This operation is synchronous, so the
* #ModestMailOperation should not be added to any
* #ModestMailOperationQueue
void modest_mail_operation_send_new_mail (ModestMailOperation *self,
TnyTransportAccount *transport_account,
const gchar *from,
void modest_mail_operation_send_new_mail (ModestMailOperation *self,
TnyTransportAccount *transport_account,
const gchar *from,
* destroy a ModestPair instance. If it was created with own==TRUE, the elements
* will be g_free'd as well. If pair==NULL, nothing will be done.
*/
* destroy a ModestPair instance. If it was created with own==TRUE, the elements
* will be g_free'd as well. If pair==NULL, nothing will be done.
*/
-void modest_pair_destroy (ModestPair *pair);
+void modest_pair_destroy (ModestPair *self);
* modest_presets_get_server:
* @self: a valid ModestPresets instance
* @provider: name of the provider
* modest_presets_get_server:
* @self: a valid ModestPresets instance
* @provider: name of the provider
- * @incoming: get the incoming mailserver if TRUE, get the outgoing server otherwise
+ * @incoming_server: get the incoming mailserver if TRUE, get the
+ * outgoing server otherwise
*
* get the name of a incoming or outgoing mailserver
*
*
* get the name of a incoming or outgoing mailserver
*
* modest_presets_get_info:
* @self: a valid ModestPresets instance
* @provider: name of the provider
* modest_presets_get_info:
* @self: a valid ModestPresets instance
* @provider: name of the provider
- * @incoming: get the incoming mailserver if TRUE, get the outgoing server otherwise
+ * @incoming_server: get the incoming mailserver if TRUE, get the
+ * outgoing server otherwise
*
* get information about some incoming or outgoing mailserver
*
*
* get information about some incoming or outgoing mailserver
*
/**
* modest_text_utils_quote:
/**
* modest_text_utils_quote:
- * @buf: a string which contains the message to quote
+ * @text: a string which contains the message to quote
* @from: the sender of the original message
* @sent_date: sent date/time of the original message
* @limit: specifies the maximum characters per line in the quoted text
* @from: the sender of the original message
* @sent_date: sent date/time of the original message
* @limit: specifies the maximum characters per line in the quoted text
*
* Returns: a newly allocated string containing the html
*/
*
* Returns: a newly allocated string containing the html
*/
-gchar* modest_text_utils_convert_to_html (const gchar *data);
+gchar* modest_text_utils_convert_to_html (const gchar *txt);
/**
* modest_tny_account_store_new:
/**
* modest_tny_account_store_new:
- * @modest_acc_mgr: account manager to use for new account store
+ * @account_mgr: account manager to use for new account store
*
* creates new (tinymail) account store for account manager modest_acc_mgr
*
*
* creates new (tinymail) account store for account manager modest_acc_mgr
*
/**
* modest_tny_platform_factory_get_instance:
/**
* modest_tny_platform_factory_get_instance:
*
* Gets a new instance of the platform factory if it is the first call
* to the function, or the current one otherwise. This object is
*
* Gets a new instance of the platform factory if it is the first call
* to the function, or the current one otherwise. This object is
/**
* modest_widget_factory_new
/**
* modest_widget_factory_new
- * @conf: a modest conf instance
- * @acc_store: a modest account store instance
- * @acc_mgr: a modest account mgr instance
*
* instantiates a ModestWidgetFactory
*
*
* instantiates a ModestWidgetFactory
*
/**
* modest_widget_memory_save:
/**
* modest_widget_memory_save:
- * @self: a ModestConf instance
+ * @conf: a ModestConf instance
* @widget: the widget to save the settings for
* @name: the unique name for this widget
*
* @widget: the widget to save the settings for
* @name: the unique name for this widget
*
/**
* modest_widget_memory_restore:
/**
* modest_widget_memory_restore:
- * @self: a ModestConf instance
+ * @conf: a ModestConf instance
* @widget: the widget to save the settings for
* @name: the unique name for this widget
*
* @widget: the widget to save the settings for
* @name: the unique name for this widget
*
/**
* modest_header_view_get_columns:
* @self: a ModestHeaderView instance
/**
* modest_header_view_get_columns:
* @self: a ModestHeaderView instance
- * @folder: a TnyFolder object
*
* get the GtkTreeColumns for this ModestHeaderView. Each one of the
* tree columns will have property than can be retrieved
*
* get the GtkTreeColumns for this ModestHeaderView. Each one of the
* tree columns will have property than can be retrieved