OSDN Git Service

remove crf flag and all uses of it
[handbrake-jp/handbrake-jp-git.git] / win / C# / Functions / GrowlCommunicator.cs
index 7403a80..507ebd5 100644 (file)
@@ -36,8 +36,7 @@ namespace Handbrake.Functions
         /// <summary>\r
         /// Notification shown upon completion of encoding\r
         /// </summary>\r
-        public static NotificationType EncodingComplete;\r
-\r
+        public static NotificationType EncodeOrQueueCompleted = new NotificationType("EncodeOrQueue", "HandBrake Status");\r
 \r
         /// <summary>\r
         /// Checks to see if Growl is currently running on the local machine.\r
@@ -62,20 +61,16 @@ namespace Handbrake.Functions
         public static void Register()\r
         {\r
             Initialize();\r
-\r
-            growl.Register(application, new NotificationType[] { EncodingComplete });\r
+            growl.Register(application, new NotificationType[] { EncodeOrQueueCompleted });\r
         }\r
 \r
         /// <summary>\r
         /// Sends a notification to Growl. (Since Handbrake currently only supports one type of notification with\r
         /// static text, this is a shortcut method).\r
         /// </summary>\r
-        public static void Notify()\r
+        public static void Notify(string title, string text)\r
         {\r
-            string title = "Encoding Complete";\r
-            string text = "Put down that cocktail...\nyour Handbrake encode is done.";\r
-            Notification notification = new Notification(application.Name, EncodingComplete.Name, String.Empty, title, text);\r
-\r
+            Notification notification = new Notification(application.Name, EncodeOrQueueCompleted.Name, String.Empty, title, text);\r
             growl.Notify(notification);\r
         }\r
 \r
@@ -107,8 +102,6 @@ namespace Handbrake.Functions
 \r
                 application = new Application("Handbrake");\r
                 application.Icon = global::Handbrake.Properties.Resources.logo64;\r
-\r
-                EncodingComplete = new NotificationType("Encoding Complete");\r
             }\r
         }\r
     }\r