Hubiquitus Android  0.3
Android client for hubiquitus protocol
ConnectionError.java
Go to the documentation of this file.
00001 /*
00002  * Copyright (c) Novedia Group 2012.
00003  *
00004  *     This file is part of Hubiquitus.
00005  *
00006  *     Hubiquitus is free software: you can redistribute it and/or modify
00007  *     it under the terms of the GNU General Public License as published by
00008  *     the Free Software Foundation, either version 3 of the License, or
00009  *     (at your option) any later version.
00010  *
00011  *     Hubiquitus is distributed in the hope that it will be useful,
00012  *     but WITHOUT ANY WARRANTY; without even the implied warranty of
00013  *     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00014  *     GNU General Public License for more details.
00015  *
00016  *     You should have received a copy of the GNU General Public License
00017  *     along with Hubiquitus.  If not, see <http://www.gnu.org/licenses/>.
00018  */
00019 
00020 package org.hubiquitus.hapi.hStructures;
00021 
00028 public enum ConnectionError {
00029          NO_ERROR(0),
00030          JID_MALFORMAT(1),
00031          CONN_TIMEOUT(2),
00032          AUTH_FAILED(3),
00033          ATTACH_FAILED(4),
00034          ALREADY_CONNECTED(5),
00035          TECH_ERROR(6),
00036          NOT_CONNECTED(7),
00037          CONN_PROGRESS(8);
00038          
00039          private int value;
00040          
00041          private ConnectionError(int value) {
00042                   this.value = value;
00043          }
00044          
00048          public int value() {
00049                   return value;
00050          }
00051          
00057          public static ConnectionError constant(int value) {
00058                   ConnectionError [] _values = ConnectionError.values();
00059                   return _values[value];
00060          }
00061          
00062 }
 All Classes Namespaces Files Functions Variables