libmsn 4.2.1

- Main Page
- Related Pages
- Namespaces
- Classes
- Files

- File List

/home/salem/libmsn/tags/libmsn-4.2/msn/errorcodes.h

    00001 #ifndef __msn_errorcodes_h__
    00002 #define __msn_errorcodes_h__
    00003
    00004 /*
    00005  * errorcodes.h
    00006  * libmsn
    00007  *
    00008  * Created by Mark Rowe on Mon Mar 22 2004.
    00009  * Refactored by Tiago Salem Herrmann on 08/2007.
    00010  * Copyright (c) 2004 Mark Rowe. All rights reserved.
    00011  * Copyright (c) 2007 Tiago Salem Herrmann. All rights reserved
    00012  *
    00013  * This program is free software; you can redistribute it and/or modify
    00014  * it under the terms of the GNU General Public License as published by
    00015  * the Free Software Foundation; either version 2 of the License, or
    00016  * (at your option) any later version.
    00017  *
    00018  * This program is distributed in the hope that it will be useful,
    00019  * but WITHOUT ANY WARRANTY; without even the implied warranty of
    00020  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    00021  * GNU General Public License for more details.
    00022  *
    00023  * You should have received a copy of the GNU General Public License
    00024  * along with this program; if not, write to the Free Software
    00025  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
    00026  */
    00027
    00028 #include <string>
    00029 #include <list>
    00030 #include <msn/switchboardserver.h>
    00031
    00032 #include "libmsn_export.h"
    00033
    00046 namespace MSN
    00047 {
    00050     typedef enum
    00051     {
    00052         ERR_SYNTAX_ERROR = 200,
    00053         ERR_INVALID_PARAMETER,
    00054
    00055         ERR_INVALID_USER = 205,
    00056         ERR_FQDN_MISSING,
    00057         ERR_ALREADY_LOGIN,
    00058         ERR_INVALID_USERNAME,
    00059         ERR_INVALID_FRIENDLY_NAME,
    00060         ERR_LIST_FULL,
    00061
    00062         ERR_ALREADY_THERE = 215,
    00063         ERR_NOT_ON_LIST,
    00064
    00065         ERR_ALREADY_IN_THE_MODE = 218,
    00066         ERR_ALREADY_IN_OPPOSITE_LIST,
    00067
    00068         ERR_SWITCHBOARD_FAILED = 280,
    00069         ERR_NOTIFY_XFR_FAILED,
    00070
    00071         ERR_REQUIRED_FIELDS_MISSING = 300,
    00072         ERR_NOT_LOGGED_IN = 302,
    00073
    00074         ERR_INTERNAL_SERVER = 500,
    00075         ERR_DB_SERVER = 501,
    00076
    00077         ERR_FILE_OPERATION = 510,
    00078         ERR_MEMORY_ALLOC = 520,
    00079
    00080         ERR_SERVER_BUSY = 600,
    00081         ERR_SERVER_UNAVAILABLE,
    00082         ERR_PEER_NS_DOWN,
    00083         ERR_DB_CONNECT,
    00084         ERR_SERVER_GOING_DOWN,
    00085
    00086         ERR_CREATE_CONNECTION = 707,
    00087
    00088         ERR_BLOCKING_WRITE = 711,
    00089         ERR_SESSION_OVERLOAD,
    00090         ERR_USER_TOO_ACTIVE,
    00091         ERR_TOO_MANY_SESSIONS,
    00092         ERR_NOT_EXPECTED,
    00093         ERR_BAD_FRIEND_FILE = 717,
    00094
    00095         ERR_AUTHENTICATION_FAILED = 911,
    00096         ERR_NOT_ALLOWED_WHEN_OFFLINE = 913,
    00097         ERR_NOT_ACCEPTING_NEW_USERS = 920
    00098     } ErrorCodes;
    00099 }
    00100
    00101 #endif

All Classes Namespaces Functions Variables Enumerations Enumerator