[evolution-exchange] ExchangeAccount: Make the header file readable.
- From: Matthew Barnes <mbarnes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution-exchange] ExchangeAccount: Make the header file readable.
- Date: Fri, 12 Aug 2011 15:22:59 +0000 (UTC)
commit 48f62bdce304a1459b1517266bc53bcdcbfb63a2
Author: Matthew Barnes <mbarnes redhat com>
Date: Thu Aug 11 20:29:05 2011 -0400
ExchangeAccount: Make the header file readable.
server/storage/exchange-account.h | 255 ++++++++++++++++++++-----------------
1 files changed, 138 insertions(+), 117 deletions(-)
---
diff --git a/server/storage/exchange-account.h b/server/storage/exchange-account.h
index a3aa1c8..b40b10e 100644
--- a/server/storage/exchange-account.h
+++ b/server/storage/exchange-account.h
@@ -14,14 +14,14 @@
#include <libedataserver/e-account-list.h>
#include <gtk/gtk.h>
-G_BEGIN_DECLS
-
#define EXCHANGE_TYPE_ACCOUNT (exchange_account_get_type ())
#define EXCHANGE_ACCOUNT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), EXCHANGE_TYPE_ACCOUNT, ExchangeAccount))
#define EXCHANGE_ACCOUNT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), EXCHANGE_TYPE_ACCOUNT, ExchangeAccountClass))
#define EXCHANGE_IS_ACCOUNT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), EXCHANGE_TYPE_ACCOUNT))
#define EXCHANGE_IS_ACCOUNT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((obj), EXCHANGE_TYPE_ACCOUNT))
+G_BEGIN_DECLS
+
struct _ExchangeAccount {
GObject parent;
@@ -43,10 +43,12 @@ struct _ExchangeAccountClass {
GObjectClass parent_class;
/* signals */
- void (*connected) (ExchangeAccount *, E2kContext *);
-
- void (*new_folder) (ExchangeAccount *, EFolder *);
- void (*removed_folder) (ExchangeAccount *, EFolder *);
+ void (*connected) (ExchangeAccount *account,
+ E2kContext *context);
+ void (*new_folder) (ExchangeAccount *account,
+ EFolder *folder);
+ void (*removed_folder) (ExchangeAccount *account,
+ EFolder *folder);
};
typedef enum {
@@ -71,67 +73,72 @@ typedef enum {
EXCHANGE_ACCOUNT_CONNECT_SUCCESS
} ExchangeAccountResult;
-GType exchange_account_get_type (void);
-ExchangeAccount *exchange_account_new (EAccountList *account_list,
- EAccount *adata);
-E2kContext *exchange_account_get_context (ExchangeAccount *acct);
-E2kGlobalCatalog *exchange_account_get_global_catalog (ExchangeAccount *acct);
-
-EAccount *exchange_account_fetch (ExchangeAccount *acct);
-gchar *exchange_account_get_account_uri_param (ExchangeAccount *acct, const gchar *param);
-
-const gchar *exchange_account_get_standard_uri (ExchangeAccount *acct,
- const gchar *item);
-
-gchar *exchange_account_get_sanitized_path (const gchar *uri);
-
-gchar *exchange_account_get_standard_uri_for (ExchangeAccount *acct,
- const gchar *home_uri,
- const gchar *std_uri_prop);
-gchar *exchange_account_get_foreign_uri (ExchangeAccount *acct,
- E2kGlobalCatalogEntry *entry,
- const gchar *std_uri_prop);
-ExchangeHierarchy *exchange_account_get_hierarchy_by_email (ExchangeAccount *account, const gchar *email);
-
-gchar *exchange_account_get_authtype (ExchangeAccount *account);
-
-E2kContext *exchange_account_connect (ExchangeAccount *acct,
- const gchar *pword,
- ExchangeAccountResult *result);
-
-EFolder *exchange_account_get_folder (ExchangeAccount *acct,
- const gchar *path_or_uri);
-GPtrArray *exchange_account_get_folders (ExchangeAccount *acct);
-
-GPtrArray *exchange_account_get_folder_tree (ExchangeAccount *account, gchar * path);
-
-ExchangeHierarchy *exchange_account_get_hierarchy_by_type (ExchangeAccount *acct,
- ExchangeHierarchyType type);
-
-void exchange_account_rescan_tree (ExchangeAccount *acct);
-
-gchar *exchange_account_get_password (ExchangeAccount *acct);
-
-ExchangeAccountResult exchange_account_set_password (ExchangeAccount *acct,
- gchar *old_password,
- gchar *new_password);
-
-void exchange_account_forget_password (ExchangeAccount *acct);
-
-void exchange_account_set_save_password (ExchangeAccount *account,
- gboolean save_password);
-
-gboolean exchange_account_is_save_password (ExchangeAccount *account);
-
-gboolean exchange_account_set_offline (ExchangeAccount *account);
-
-gboolean exchange_account_set_online (ExchangeAccount *account);
-
-void exchange_account_is_offline (ExchangeAccount *account,
- gint *mode);
-
-void exchange_account_is_offline_sync_set (ExchangeAccount *account,
- gint *mode);
+GType exchange_account_get_type (void);
+ExchangeAccount *
+ exchange_account_new (EAccountList *account_list,
+ EAccount *adata);
+E2kContext * exchange_account_get_context (ExchangeAccount *account);
+E2kGlobalCatalog
+ *exchange_account_get_global_catalog
+ (ExchangeAccount *account);
+EAccount * exchange_account_fetch (ExchangeAccount *account);
+gchar * exchange_account_get_account_uri_param
+ (ExchangeAccount *account,
+ const gchar *param);
+const gchar * exchange_account_get_standard_uri
+ (ExchangeAccount *account,
+ const gchar *item);
+gchar * exchange_account_get_sanitized_path
+ (const gchar *uri);
+gchar * exchange_account_get_standard_uri_for
+ (ExchangeAccount *account,
+ const gchar *home_uri,
+ const gchar *std_uri_prop);
+gchar * exchange_account_get_foreign_uri
+ (ExchangeAccount *account,
+ E2kGlobalCatalogEntry *entry,
+ const gchar *std_uri_prop);
+ExchangeHierarchy *
+ exchange_account_get_hierarchy_by_email
+ (ExchangeAccount *account,
+ const gchar *email);
+gchar * exchange_account_get_authtype (ExchangeAccount *account);
+E2kContext * exchange_account_connect (ExchangeAccount *account,
+ const gchar *pword,
+ ExchangeAccountResult *result);
+EFolder * exchange_account_get_folder (ExchangeAccount *account,
+ const gchar *path_or_uri);
+GPtrArray * exchange_account_get_folders (ExchangeAccount *account);
+
+GPtrArray * exchange_account_get_folder_tree
+ (ExchangeAccount *account,
+ gchar *path);
+ExchangeHierarchy *
+ exchange_account_get_hierarchy_by_type
+ (ExchangeAccount *account,
+ ExchangeHierarchyType type);
+void exchange_account_rescan_tree (ExchangeAccount *account);
+gchar * exchange_account_get_password (ExchangeAccount *account);
+ExchangeAccountResult
+ exchange_account_set_password (ExchangeAccount *account,
+ gchar *old_password,
+ gchar *new_password);
+void exchange_account_forget_password
+ (ExchangeAccount *account);
+
+void exchange_account_set_save_password
+ (ExchangeAccount *account,
+ gboolean save_password);
+
+gboolean exchange_account_is_save_password
+ (ExchangeAccount *account);
+gboolean exchange_account_set_offline (ExchangeAccount *account);
+gboolean exchange_account_set_online (ExchangeAccount *account);
+void exchange_account_is_offline (ExchangeAccount *account,
+ gint *mode);
+void exchange_account_is_offline_sync_set
+ (ExchangeAccount *account,
+ gint *mode);
typedef enum {
EXCHANGE_ACCOUNT_FOLDER_OK,
@@ -146,58 +153,72 @@ typedef enum {
EXCHANGE_ACCOUNT_FOLDER_GENERIC_ERROR
} ExchangeAccountFolderResult;
-ExchangeAccountFolderResult exchange_account_create_folder (ExchangeAccount *account,
- const gchar *path,
- const gchar *type);
-ExchangeAccountFolderResult exchange_account_remove_folder (ExchangeAccount *account,
- const gchar *path);
-ExchangeAccountFolderResult exchange_account_xfer_folder (ExchangeAccount *account,
- const gchar *source_path,
- const gchar *dest_path,
- gboolean remove_source);
-ExchangeAccountFolderResult exchange_account_open_folder (ExchangeAccount *account,
- const gchar *path);
-
-ExchangeAccountFolderResult exchange_account_discover_shared_folder (ExchangeAccount *account,
- const gchar *user,
- const gchar *folder_name,
- EFolder **folder);
-void exchange_account_cancel_discover_shared_folder (ExchangeAccount *account,
- const gchar *user,
- const gchar *folder);
-ExchangeAccountFolderResult exchange_account_remove_shared_folder (ExchangeAccount *account,
- const gchar *path);
-
-ExchangeAccountFolderResult exchange_account_add_favorite (ExchangeAccount *account,
- EFolder *folder);
-ExchangeAccountFolderResult exchange_account_remove_favorite (ExchangeAccount *account,
- EFolder *folder);
-
-gboolean exchange_account_is_favorite_folder (ExchangeAccount *account,
- EFolder *folder);
-
-gchar * exchange_account_get_username (ExchangeAccount *account);
-
-gchar * exchange_account_get_windows_domain (ExchangeAccount *account);
-
-gchar * exchange_account_get_email_id (ExchangeAccount *account);
-
-gint exchange_account_get_quota_limit (ExchangeAccount *account);
-
-gint exchange_account_check_password_expiry (ExchangeAccount *account);
+ExchangeAccountFolderResult
+ exchange_account_create_folder (ExchangeAccount *account,
+ const gchar *path,
+ const gchar *type);
+ExchangeAccountFolderResult
+ exchange_account_remove_folder (ExchangeAccount *account,
+ const gchar *path);
+ExchangeAccountFolderResult
+ exchange_account_xfer_folder (ExchangeAccount *account,
+ const gchar *source_path,
+ const gchar *dest_path,
+ gboolean remove_source);
+ExchangeAccountFolderResult
+ exchange_account_open_folder (ExchangeAccount *account,
+ const gchar *path);
+
+ExchangeAccountFolderResult
+ exchange_account_discover_shared_folder
+ (ExchangeAccount *account,
+ const gchar *user,
+ const gchar *folder_name,
+ EFolder **folder);
+void exchange_account_cancel_discover_shared_folder
+ (ExchangeAccount *account,
+ const gchar *user,
+ const gchar *folder);
+ExchangeAccountFolderResult
+ exchange_account_remove_shared_folder
+ (ExchangeAccount *account,
+ const gchar *path);
+ExchangeAccountFolderResult
+ exchange_account_add_favorite (ExchangeAccount *account,
+ EFolder *folder);
+ExchangeAccountFolderResult
+ exchange_account_remove_favorite
+ (ExchangeAccount *account,
+ EFolder *folder);
+gboolean exchange_account_is_favorite_folder
+ (ExchangeAccount *account,
+ EFolder *folder);
+gchar * exchange_account_get_username (ExchangeAccount *account);
+gchar * exchange_account_get_windows_domain
+ (ExchangeAccount *account);
+gchar * exchange_account_get_email_id (ExchangeAccount *account);
+gint exchange_account_get_quota_limit
+ (ExchangeAccount *account);
+gint exchange_account_check_password_expiry
+ (ExchangeAccount *account);
/* Folder Size methods */
-void exchange_account_folder_size_add (ExchangeAccount *account,
- const gchar *folder_name,
- gdouble size);
-void exchange_account_folder_size_remove (ExchangeAccount *account,
- const gchar *folder_name);
-void exchange_account_folder_size_rename (ExchangeAccount *account,
- const gchar *old_name,
- const gchar *new_name);
-GtkListStore *exchange_account_folder_size_get_model (ExchangeAccount *account);
-void exchange_account_scan_foreign_hierarchy (ExchangeAccount *account,
- const gchar *user_email);
+void exchange_account_folder_size_add
+ (ExchangeAccount *account,
+ const gchar *folder_name,
+ gdouble size);
+void exchange_account_folder_size_remove
+ (ExchangeAccount *account,
+ const gchar *folder_name);
+void exchange_account_folder_size_rename
+ (ExchangeAccount *account,
+ const gchar *old_name,
+ const gchar *new_name);
+GtkListStore * exchange_account_folder_size_get_model
+ (ExchangeAccount *account);
+void exchange_account_scan_foreign_hierarchy
+ (ExchangeAccount *account,
+ const gchar *user_email);
G_END_DECLS
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]