]> git.meshlink.io Git - catta/blobdiff - avahi-sharp/ClientException.cs
l10n: Updates to Chinese (China) (zh_CN) translation
[catta] / avahi-sharp / ClientException.cs
index 3ee0cab12550736c4c4e4812423f3f8b8175ecd4..fadcce91f2a18241b7718eb6cc638fd09304ba29 100644 (file)
@@ -49,7 +49,7 @@ namespace Avahi
         AccessDenied = -20,
         InvalidOperation = -21,
         DBusError = -22,
-        NotConnected = -23,
+        Disconnected = -23,
         NoMemory = -24,
         InvalidObject = -25,
         NoDaemon = -26,
@@ -71,10 +71,30 @@ namespace Avahi
         DnsYxRrSet = -42,
         DnsNxRrSet = -43,
         DnsNotAuth = -44,
-        DnsNotZone = -45
+        DnsNotZone = -45,
+        InvalidRData = -46,
+        InvalidDnsClass = -47,
+        InvalidDnsType = -48,
+        NotSupported = -49,
+        NotPermitted = -50
     }
 
-    public delegate void ErrorCodeHandler (object o, ErrorCode code);
+    public delegate void ErrorCodeHandler (object o, ErrorCodeArgs args);
+
+    public class ErrorCodeArgs : EventArgs
+    {
+        private ErrorCode code;
+
+        public ErrorCode ErrorCode
+        {
+            get { return code; }
+        }
+
+        public ErrorCodeArgs (ErrorCode code)
+        {
+            this.code = code;
+        }
+    }
     
     public class ClientException : ApplicationException
     {