Enlightenment CVS committal

Author  : lordchaos
Project : e17
Module  : apps/evfs

Dir     : e17/apps/evfs/src/include


Modified Files:
        evfs_operation.h 


Log Message:
* Re-add support for operational (e.g. file copy/remove/etc) responses - this 
time in the new workflow system.  Currently supported responses for overwrite: 
Yes, Yes to All, No, Abort.  Some cleanup and helper functions are still 
required here, but the base logic works

===================================================================
RCS file: /cvsroot/enlightenment/e17/apps/evfs/src/include/evfs_operation.h,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -3 -r1.10 -r1.11
--- evfs_operation.h    12 Mar 2006 05:27:33 -0000      1.10
+++ evfs_operation.h    14 Mar 2006 10:54:19 -0000      1.11
@@ -9,12 +9,18 @@
 typedef enum evfs_operation_status
 {
    EVFS_OPERATION_STATUS_USER_WAIT,
+   EVFS_OPERATION_STATUS_REPLY_RECEIVED,
    EVFS_OPERATION_STATUS_ERROR,
    EVFS_OPERATION_STATUS_OVERRIDE,
    EVFS_OPERATION_STATUS_NORMAL,
    EVFS_OPERATION_STATUS_COMPLETED
 } evfs_operation_status;
 
+typedef enum evfs_operation_wait_type
+{
+       EVFS_OPERATION_WAIT_TYPE_FILE_OVERWRITE
+} evfs_operation_wait_type;
+
 typedef enum evfs_operation_response
 {
    EVFS_OPERATION_RESPONSE_AFFIRM=0,
@@ -45,6 +51,9 @@
 {
        EVFS_OPERATION_TASK_STATUS_PENDING,
        EVFS_OPERATION_TASK_STATUS_EXEC,
+       EVFS_OPERATION_TASK_STATUS_EXEC_CONT,  /*When we have cause to go into 
user_wait,
+                                                but have done so already*/
+       EVFS_OPERATION_TASK_STATUS_CANCEL,
        EVFS_OPERATION_TASK_STATUS_COMMITTED
 } evfs_operation_task_status;
 
@@ -62,6 +71,7 @@
    char* misc_str;
    evfs_operation_status status;
    evfs_operation_substatus substatus;
+   evfs_operation_wait_type wait_type;
    evfs_operation_response response;
 
    Ecore_List* sub_task;   /*The tasks that must be performed by this 
operation pre-completion*/
@@ -98,7 +108,9 @@
        evfs_operation_task task;
 
        struct stat source_stat;
+       int source_stat_response;
        struct stat dest_stat;
+       int dest_stat_response;
 
        evfs_filereference* file_from;
        evfs_filereference* file_to;
@@ -134,8 +146,11 @@
 void evfs_operation_destroy(evfs_operation * op);
 evfs_operation *evfs_operation_get_by_id(long id);
 void evfs_operation_status_set(evfs_operation * op, int status);
+void evfs_operation_wait_type_set(evfs_operation* op, int type);
+void evfs_operation_response_handle(evfs_operation* op, evfs_operation_task* 
task);
+
 void evfs_operation_copy_task_add(evfs_operation* op, evfs_filereference* 
file_from, 
-               evfs_filereference* file_to, struct stat from_stat, struct stat 
to_stat);
+               evfs_filereference* file_to, struct stat from_stat, struct stat 
to_stat, int);
 void evfs_operation_mkdir_task_add(evfs_operation* op, evfs_filereference* 
dir);
 void evfs_operation_tasks_print(evfs_operation* op);
 void evfs_operation_queue_pending_add(evfs_operation* op);




-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to