Some timeout issues
[pithos-ms-client] / trunk / Pithos.Core / IStatusNotification.cs
index f2fb632..1f29ad7 100644 (file)
@@ -55,6 +55,10 @@ namespace Pithos.Core
         void NotifyConflicts(IEnumerable<FileSystemInfo> conflictFiles, string message);\r
         void NotifyForFiles(IEnumerable<FileSystemInfo> files, string message,TraceLevel level);\r
         void Notify(Notification notification);\r
+        void SetPithosStatus(PithosStatus status);\r
+        void SetPithosStatus(PithosStatus localSyncing, string format);\r
+        //Notifier GetNotifier(Notification startNotification, Notification endNotification);\r
+        Notifier GetNotifier(string startMessage, string endMessage,bool isActive=true,params object[] args);\r
     }\r
 \r
     public class Notification\r
@@ -71,20 +75,33 @@ namespace Pithos.Core
         }\r
     }\r
 \r
+    public class StatusNotification:Notification\r
+    {\r
+        public StatusNotification(string title)\r
+        {\r
+            Level = TraceLevel.Info;\r
+            Title = title;\r
+        }\r
+    }\r
+\r
     public class ProgressNotification:Notification\r
     {\r
         public string FileName { get; set; }\r
-        public int Block { get; set; }\r
+        public long Block { get; set; }\r
         public int TotalBlocks { get; set; }\r
         public long FileSize { get; set; }\r
         public string Action { get; set; }\r
-        public ProgressNotification(string fileName, string action,int block, int totalBlocks, long fileSize)\r
+        public int BlockPercentage { get; set; }\r
+        \r
+        public ProgressNotification(string fileName, string action, long block, int blockPercentage,int totalBlocks, long fileSize)\r
         {\r
             FileName = fileName;\r
             Block = block;\r
             TotalBlocks = totalBlocks;\r
             FileSize = fileSize;\r
             Action = action;\r
+            BlockPercentage = blockPercentage;\r
+\r
         }\r
     }\r
 \r
@@ -111,6 +128,10 @@ namespace Pithos.Core
     {\r
         \r
     }\r
+    public class CloudDeleteNotification:CloudNotification\r
+    {\r
+        \r
+    }\r
 \r
     public class ExpirationNotification:Notification<AccountSettings>\r
     {\r