From 2341c6036d5af50def10d2696063955ce199360d Mon Sep 17 00:00:00 2001 From: pkanavos Date: Sun, 29 Apr 2012 23:43:41 +0300 Subject: [PATCH] Modifications to enable Sync Pausing for all operations Added cancellation of the current operation --- trunk/Pithos.Client.WPF/Images/Pause.png | Bin 0 -> 515 bytes trunk/Pithos.Client.WPF/Images/Play.png | Bin 0 -> 581 bytes trunk/Pithos.Client.WPF/Pithos.Client.WPF.csproj | 8 +- trunk/Pithos.Client.WPF/Shell/MiniStatusView.xaml | 19 ++- .../Pithos.Client.WPF/Shell/MiniStatusViewModel.cs | 33 ++++ trunk/Pithos.Client.WPF/Shell/ShellView.xaml | 1 + trunk/Pithos.Client.WPF/Shell/ShellViewModel.cs | 40 +++-- .../Utils/EnumerableExtensions.cs | 23 ++- trunk/Pithos.Core.Test/NetworkAgentTest.cs | 5 +- trunk/Pithos.Core/Agents/Agent.cs | 2 +- trunk/Pithos.Core/Agents/Downloader.cs | 157 ++++++++++++-------- trunk/Pithos.Core/Agents/FileAgent.cs | 7 +- trunk/Pithos.Core/Agents/NetworkAgent.cs | 90 +++++++++-- trunk/Pithos.Core/Agents/PollAgent.cs | 43 ++++-- trunk/Pithos.Core/Agents/SelectiveUris.cs | 79 ++++++++++ trunk/Pithos.Core/Agents/Uploader.cs | 43 +++++- trunk/Pithos.Core/Agents/WorkflowAgent.cs | 18 +-- trunk/Pithos.Core/Pithos.Core.csproj | 1 + trunk/Pithos.Core/PithosMonitor.cs | 24 ++- trunk/Pithos.Network.Test/NetworkOpsTest.cs | 3 +- trunk/Pithos.Network/CloudFilesClient.cs | 98 ++++++------ trunk/Pithos.Network/ICloudClient.cs | 9 +- 22 files changed, 506 insertions(+), 197 deletions(-) create mode 100644 trunk/Pithos.Client.WPF/Images/Pause.png create mode 100644 trunk/Pithos.Client.WPF/Images/Play.png create mode 100644 trunk/Pithos.Core/Agents/SelectiveUris.cs diff --git a/trunk/Pithos.Client.WPF/Images/Pause.png b/trunk/Pithos.Client.WPF/Images/Pause.png new file mode 100644 index 0000000000000000000000000000000000000000..1a01be388b76091bd28cd91e724403bba821e335 GIT binary patch literal 515 zcmV+e0{s1nP)<=3*cih?$WlMjGt{_y)ozf~dIQ4~wICooTzP40>in-8Gp51s$Ao=stZ)+#P_E z=eNf|3j!h>2zS5%rh6~%eE<-5=iH^|Pe87ywn*p@jR%OqJ>zADS#t1)yE~gV<;20S-xYf~So$dQ00JIqbuywoCCu_iRzvNO4sP!y8C3k?& zt1MXV|G2M}86|(ma*tVBW-v8Np3_9!!OOJ%^IuK$MU`_;NfX>s0n%cb9soB)TUG54 z4TtZ7rG@zJ?#|{dS*-K%Gg||o`CY0*Vy{S_UOoN+@C)rc*&Gt{BcuQT002ovPDHLk FV1kBRe literal 0 HcmV?d00001 diff --git a/trunk/Pithos.Client.WPF/Images/Play.png b/trunk/Pithos.Client.WPF/Images/Play.png new file mode 100644 index 0000000000000000000000000000000000000000..ff4d7c445fb418723b49e3a12d5930658f88d4c6 GIT binary patch literal 581 zcmV-L0=oT)P)uzSz_nX%`Lw<;c@$AIBTymSBADiBYgn%d0rkp2AjYy;pAS84%x T7V1~>00000NkvXXu0mjf!g%|q literal 0 HcmV?d00001 diff --git a/trunk/Pithos.Client.WPF/Pithos.Client.WPF.csproj b/trunk/Pithos.Client.WPF/Pithos.Client.WPF.csproj index 1d2e23f..3ffbacb 100644 --- a/trunk/Pithos.Client.WPF/Pithos.Client.WPF.csproj +++ b/trunk/Pithos.Client.WPF/Pithos.Client.WPF.csproj @@ -295,6 +295,7 @@ + @@ -618,7 +619,12 @@ - + + + + + +