Commit Graph

12 Commits

Author SHA1 Message Date
0
3afcc4239f Dont setup cancel_fd. (camel_operation_cancel_fd): If cancel_fd not
2001-10-30    <NotZed@Ximian.com>

        * camel-operation.c (camel_operation_new): Dont setup cancel_fd.
        (camel_operation_cancel_fd): If cancel_fd not created, set it up.
        (camel_operation_cancel): Set cancel flag before sending message.
        (cancel_thread): Same.

svn path=/trunk/; revision=14469
2001-10-30 18:52:00 +00:00
9
b457da9a98 Another go at getting the logic right again. Make transients only update
2001-10-09    <NotZed@Ximian.com>

        * camel-operation.c (camel_operation_progress): Another go at
        getting the logic right again.  Make transients only update after
        5 seconds (CAMEL_OPERATION_TRANSIENT_DELAY)
        (camel_operation_end): Likewise.

svn path=/trunk/; revision=13536
2001-10-09 23:36:31 +00:00
2
1747072ed0 Go back to using the store url's path, not the toplevel_dir thing.
2001-10-02    <NotZed@Ximian.com>

        * providers/local/camel-maildir-store.c (get_folder_info): Go back
        to using the store url's path, not the toplevel_dir thing.

        * camel-operation.c (camel_operation_progress): Fix the progress
        logic, so we dont update too often.

svn path=/trunk/; revision=13354
2001-10-02 22:03:13 +00:00
7fcdd7c974 Minor style change to operation_registered.
svn path=/trunk/; revision=13206
2001-09-27 23:34:33 +00:00
5120d7098b Change "gboolean connected" to "CamelServiceConnectionStatus status",
* camel-service.c: Change "gboolean connected" to
	"CamelServiceConnectionStatus status", which can be disconnected,
	connecting, connected, or disconnecting.
	(camel_service_init, camel_service_finalize): create/destroy the
	connect_op_lock. Refer to service->status rather than
	service->connected.
	(camel_service_connect): When connecting, note the current
	operation (and create a new one if there's none registered) and
	mark the connection "connecting" until we succeed or fail.
	(camel_service_disconnect): Likewise in reverse.
	(camel_service_cancel_connect): New function to cancel a
	connection attempt.
	(cancel_connect): Default implementation: Call
	camel_operation_cancel on the connect_op.

	* camel-disco-store.c (disco_connect): Only call
	CamelRemoteStore's connect func if we're online.
	(disco_cancel_connect): Fall back to offline if a connection gets
	cancelled.
	(disco_get_folder_info): Kludge: call connect explicitly before
	deciding whether to do the online or offline version, so if the
	connect fails, we fall back correctly.

	* camel-session.c (camel_session_get_service_connected):
	s/svc->connected/svc->status/

	* camel-remote-store.c (camel_remote_store_finalise):
	Change service->connected check to service->status check.
	(remote_connect): Don't set service->connected here:
	camel_service_connect() itself does that.

	* camel-operation.c (camel_operation_registered): Deal with the
	possibility that there's no registered op.

svn path=/trunk/; revision=13191
2001-09-27 14:39:39 +00:00
5
c753a2a3d8 Fix for !threads enabled not ccompiling. (camel_operation_ref): Assert
2001-09-25    <NotZed@Ximian.com>

        * camel-operation.c (camel_operation_unref): Fix for !threads
        enabled not ccompiling.
        (camel_operation_ref): Assert refcount > 0.
        (struct _CamelOperation): Removed the lock.  On further
        investigation, I dont think this will always work, the
        registration operations assume that a lookup in the
        operation_active table will return a ref, that will remain valid
        until we ref it, which needn't be the case.  So now i'm using a
        single global lock, since we'd need to do that for unref anyway,
        and every operation is fast & memory-bound.  Changed all the code
        to handle this.
        (camel_operation_progress_count): Since the code is identical,
        just call progress() for now.
        (camel_operation_register): No longer refcount, use unref to
        check/clear the active table.
        (camel_operation_unregister): Same here.
        (camel_operation_unref): Check if operation is in active table, if
        so, warn, remove.

svn path=/trunk/; revision=13125
2001-09-25 22:09:04 +00:00
46b5e76947 Somehow this missed the commit.
2001-07-24  Not Zed  <NotZed@Ximian.com>

        * camel-operation.c (camel_operation_register, unregister): Added
        some warnings for bad cases.

svn path=/trunk/; revision=11333
2001-07-24 01:39:53 +00:00
5ef14553c1 Added some warnings for bad cases.
2001-07-24  Not Zed  <NotZed@Ximian.com>

	* camel-operation.c (camel_operation_register, unregister): Added
	some warnings for bad cases.

2001-07-23  Not Zed  <NotZed@Ximian.com>

	* camel-operation.c (camel_operation_register): Only insert a hash
	entry if we haven't already.
	(camel_operation_unregister): Only remove the has entry if the id
	is a real thread.

svn path=/trunk/; revision=11329
2001-07-24 00:56:11 +00:00
aef303fd88 Added a prototype for stamp().
2001-04-16  Jeffrey Stedfast  <fejj@ximian.com>

	* camel-operation.c: Added a prototype for stamp().

	* camel-charset-map.c (camel_charset_locale_name): #include
	string.h so we don't get a warning about strchr being undefined
	and also init charset to NULL.

	* camel-pgp-context.c (pgp_verify): Go back to doing the utf8
	conversion by hand so that we don't depend on gal.

svn path=/trunk/; revision=9388
2001-04-16 19:16:53 +00:00
2ac5b884fe merge from evolution-0-10-branch to evolution-0-10-merge-0
2001-04-05  Not Zed  <NotZed@Ximian.com>

        * merge from evolution-0-10-branch to evolution-0-10-merge-0

svn path=/trunk/; revision=9194
2001-04-05 02:31:47 +00:00
fe962a2055 Big header cleanups and nntp compile fix
svn path=/trunk/; revision=9024
2001-03-29 20:31:40 +00:00
49f8a687a4 Changed to push the operation into a status stack.
2001-02-07  Not Zed  <NotZed@Ximian.com>

        * camel-operation.c (camel_operation_start): Changed to push the
        operation into a status stack.
        (camel_operation_progress): Changed to only accept % complete.
        (camel_operation_reset): Free status stack as well.

        * providers/pop3/camel-pop3-folder.c (pop3_get_message): Get the
        octect count from the return line, and pass it to
        get_additional_data().
        (pop3_refresh_info): Added status stuff.

        * providers/pop3/camel-pop3-store.c
        (camel_pop3_command_get_additional_data): Added a total bytes
        expected argument for progress reporting & fixed callers.
        (camel_pop3_command_get_additional_data): Added progress
        reporting.

        * providers/local/camel-mbox-summary.c (mbox_summary_sync_full):
        (mbox_summary_sync_quick):
        (summary_rebuild): Added progress reporting stuff.

svn path=/trunk/; revision=8095
2001-02-08 01:42:53 +00:00