Main Page | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Class Members | File Members | Related Pages

jzIXMPPErrors.idl

00001 /* ***** BEGIN LICENSE BLOCK *****
00002  * Version: MPL 1.1/GPL 2.0/LGPL 2.1
00003  *
00004  * The contents of this file are subject to the Mozilla Public License Version
00005  * 1.1 (the "License"); you may not use this file except in compliance with
00006  * the License. You may obtain a copy of the License at
00007  * http://www.mozilla.org/MPL/
00008  *
00009  * Software distributed under the License is distributed on an "AS IS" basis,
00010  * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
00011  * for the specific language governing rights and limitations under the
00012  * License.
00013  *
00014  * The Original Code is JabberZilla.
00015  *
00016  * The Initial Developer of the Original Code is Pawel Chmielowski
00017  * Portions created by the Pawel Chmielowski are Copyright (C) Pawel
00018  * Chmielowski. All Rights Reserved.
00019  *
00020  * Contributor(s):
00021  *
00022  * Alternatively, the contents of this file may be used under the terms of
00023  * either the GNU General Public License Version 2 or later (the "GPL"), or
00024  * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
00025  * in which case the provisions of the GPL or the LGPL are applicable instead
00026  * of those above. If you wish to allow use of your version of this file only
00027  * under the terms of either the GPL or the LGPL, and not to allow others to
00028  * use your version of this file under the terms of the MPL, indicate your
00029  * decision by deleting the provisions above and replace them with the notice
00030  * and other provisions required by the GPL or the LGPL. If you do not delete
00031  * the provisions above, a recipient may use your version of this file under
00032  * the terms of any one of the MPL, the GPL or the LGPL.
00033  *
00034  * ***** END LICENSE BLOCK ***** */
00035 
00036 #include "nsISupports.idl"
00037 
00038 [scriptable, uuid(0b1bac7d-dc93-43fa-a798-40d4dc7cd142)]
00039 interface nsIXMPPErrors : nsISupports
00040 {
00041   const long PARSER_RESET = 0x00;
00042   const long CONFLICT = 0x01;
00043   const long TIMEOUT = 0x02;
00044   const long UNKNOWN_HOST = 0x03;
00045   const long PROXY_ERROR = 0x04;
00046   const long INTERNAL_ERROR = 0x05;
00047   const long TLS_ERROR = 0x06;
00048   const long AUTHORIZATION_ERROR = 0x07;
00049   const long ALREADY_CONNECTED_ERROR = 0x08;
00050   const long ALREADY_CONNECTING_ERROR = 0x09;
00051   const long STREAM_ERROR = 0x0a;
00052   const long BAD_STREAM_FORMAT = 0x0b;
00053   const long STREAM_PARSE_ERROR = 0x0c;
00054   const long BIND_ERROR = 0x0d;
00055   const long SESSION_ERROR = 0x0e;
00056   const long NOT_CONNECTED = 0x0f;
00057 };
00058 
00059 %{C++
00060 
00061 #define JZ_ERROR_MODULE_XMPP 54
00062 
00063 #define JZ_SUCCESS_PARSER_RESET \
00064     NS_ERROR_GENERATE_SUCCESS(JZ_ERROR_MODULE_XMPP, \
00065                               nsIXMPPErrors::PARSER_RESET)
00066 
00067 #define JZ_ERROR_XMPP_CONFLICT \
00068     NS_ERROR_GENERATE_FAILURE(JZ_ERROR_MODULE_XMPP, \
00069                               nsIXMPPErrors::CONFLICT)
00070 
00071 #define JZ_ERROR_XMPP_TIMEOUT \
00072     NS_ERROR_GENERATE_FAILURE(JZ_ERROR_MODULE_XMPP, \
00073                               nsIXMPPErrors::TIMEOUT)
00074 
00075 #define JZ_ERROR_XMPP_UNKNOWN_HOST \
00076     NS_ERROR_GENERATE_FAILURE(JZ_ERROR_MODULE_XMPP, \
00077                               nsIXMPPErrors::UNKNOWN_HOST)
00078 
00079 #define JZ_ERROR_XMPP_PROXY_ERROR \
00080     NS_ERROR_GENERATE_FAILURE(JZ_ERROR_MODULE_XMPP, \
00081                               nsIXMPPErrors::PROXY_ERROR)
00082 
00083 #define JZ_ERROR_XMPP_INTERNAL_ERROR \
00084     NS_ERROR_GENERATE_FAILURE(JZ_ERROR_MODULE_XMPP, \
00085                               nsIXMPPErrors::INTERNAL_ERROR)
00086 
00087 #define JZ_ERROR_XMPP_TLS_ERROR \
00088     NS_ERROR_GENERATE_FAILURE(JZ_ERROR_MODULE_XMPP, \
00089                               nsIXMPPErrors::TLS_ERROR)
00090 
00091 #define JZ_ERROR_XMPP_AUTHORIZATION_ERROR \
00092     NS_ERROR_GENERATE_FAILURE(JZ_ERROR_MODULE_XMPP, \
00093                               nsIXMPPErrors::AUTHORIZATION_ERROR)
00094 
00095 #define JZ_ERROR_XMPP_ALREADY_CONNECTED_ERROR \
00096     NS_ERROR_GENERATE_FAILURE(JZ_ERROR_MODULE_XMPP, \
00097                               nsIXMPPErrors::ALREADY_CONNECTED_ERROR)
00098 
00099 #define JZ_ERROR_XMPP_ALREADY_CONNECTING_ERROR \
00100     NS_ERROR_GENERATE_FAILURE(JZ_ERROR_MODULE_XMPP, \
00101                               nsIXMPPErrors::ALREADY_CONNECTING_ERROR)
00102 
00103 #define JZ_ERROR_XMPP_STREAM_ERROR \
00104     NS_ERROR_GENERATE_FAILURE(JZ_ERROR_MODULE_XMPP, \
00105                               nsIXMPPErrors::STREAM_ERROR)
00106 
00107 #define JZ_ERROR_XMPP_BAD_STREAM_FORMAT \
00108     NS_ERROR_GENERATE_FAILURE(JZ_ERROR_MODULE_XMPP, \
00109                               nsIXMPPErrors::BAD_STREAM_FORMAT)
00110 
00111 #define JZ_ERROR_XMPP_STREAM_PARSE_ERROR \
00112     NS_ERROR_GENERATE_FAILURE(JZ_ERROR_MODULE_XMPP, \
00113                               nsIXMPPErrors::STREAM_PARSE_ERROR)
00114 
00115 #define JZ_ERROR_XMPP_BIND_ERROR \
00116     NS_ERROR_GENERATE_FAILURE(JZ_ERROR_MODULE_XMPP, \
00117                               nsIXMPPErrors::BIND_ERROR)
00118 
00119 #define JZ_ERROR_XMPP_STREAM_ERROR \
00120     NS_ERROR_GENERATE_FAILURE(JZ_ERROR_MODULE_XMPP, \
00121                               nsIXMPPErrors::STREAM_ERROR)
00122 
00123 #define JZ_ERROR_XMPP_NOT_CONNECTED \
00124     NS_ERROR_GENERATE_FAILURE(JZ_ERROR_MODULE_XMPP, \
00125                               nsIXMPPErrors::NOT_CONNECTED)
00126 %}

Generated on Tue Jan 4 01:03:49 2005 for JabberZilla by  doxygen 1.4.0