diff options
author | Aleksander Morgado <aleksander@lanedo.com> | 2011-11-23 12:36:47 +0100 |
---|---|---|
committer | Aleksander Morgado <aleksander@lanedo.com> | 2012-03-15 14:14:25 +0100 |
commit | c58db4e015c1d6aeccccb167f7f2f68c211a3b86 (patch) | |
tree | fa5cdffcd6856ba236b8614349b1ee5714885242 /src/mm-errors.h | |
parent | e4d8c4ace72e72c53951f80792d852ff4b043329 (diff) |
core: start using our newly defined errors
Diffstat (limited to 'src/mm-errors.h')
-rw-r--r-- | src/mm-errors.h | 163 |
1 files changed, 0 insertions, 163 deletions
diff --git a/src/mm-errors.h b/src/mm-errors.h deleted file mode 100644 index a183b70b..00000000 --- a/src/mm-errors.h +++ /dev/null @@ -1,163 +0,0 @@ -/* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ -/* - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details: - * - * Copyright (C) 2008 Novell, Inc. - * Copyright (C) 2009 Red Hat, Inc. - */ - -#ifndef MM_MODEM_ERROR_H -#define MM_MODEM_ERROR_H - -#include <glib-object.h> - -#include <ModemManager-errors.h> -#include <mm-errors-types.h> - -enum { - MM_MODEM_ERROR_GENERAL = 0, - MM_MODEM_ERROR_OPERATION_NOT_SUPPORTED = 1, - MM_MODEM_ERROR_CONNECTED = 2, - MM_MODEM_ERROR_DISCONNECTED = 3, - MM_MODEM_ERROR_OPERATION_IN_PROGRESS = 4, - MM_MODEM_ERROR_REMOVED = 5, - MM_MODEM_ERROR_AUTHORIZATION_REQUIRED = 6, - MM_MODEM_ERROR_UNSUPPORTED_CHARSET = 7 -}; - -#define MM_MODEM_ERROR (mm_modem_error_quark ()) -#define MM_TYPE_MODEM_ERROR (mm_modem_error_get_type ()) - -GQuark mm_modem_error_quark (void); -GType mm_modem_error_get_type (void); - - -enum { - MM_MODEM_CONNECT_ERROR_NO_CARRIER = 3, - MM_MODEM_CONNECT_ERROR_NO_DIALTONE = 6, - MM_MODEM_CONNECT_ERROR_BUSY = 7, - MM_MODEM_CONNECT_ERROR_NO_ANSWER = 8, -}; - -#define MM_MODEM_CONNECT_ERROR (mm_modem_connect_error_quark ()) -#define MM_TYPE_MODEM_CONNECT_ERROR (mm_modem_connect_error_get_type ()) - -GQuark mm_modem_connect_error_quark (void); -GType mm_modem_connect_error_get_type (void); -GError *mm_modem_connect_error_for_code (int error_code); - - -/* 3GPP TS 07.07 version 7.8.0 Release 1998 (page 90) ETSI TS 100 916 V7.8.0 (2003-03) */ -enum { - MM_MOBILE_ERROR_PHONE_FAILURE = 0, - MM_MOBILE_ERROR_NO_CONNECTION = 1, - MM_MOBILE_ERROR_LINK_RESERVED = 2, - MM_MOBILE_ERROR_NOT_ALLOWED = 3, - MM_MOBILE_ERROR_NOT_SUPPORTED = 4, - MM_MOBILE_ERROR_PH_SIM_PIN = 5, - MM_MOBILE_ERROR_PH_FSIM_PIN = 6, - MM_MOBILE_ERROR_PH_FSIM_PUK = 7, - MM_MOBILE_ERROR_SIM_NOT_INSERTED = 10, - MM_MOBILE_ERROR_SIM_PIN = 11, - MM_MOBILE_ERROR_SIM_PUK = 12, - MM_MOBILE_ERROR_SIM_FAILURE = 13, - MM_MOBILE_ERROR_SIM_BUSY = 14, - MM_MOBILE_ERROR_SIM_WRONG = 15, - MM_MOBILE_ERROR_WRONG_PASSWORD = 16, - MM_MOBILE_ERROR_SIM_PIN2 = 17, - MM_MOBILE_ERROR_SIM_PUK2 = 18, - MM_MOBILE_ERROR_MEMORY_FULL = 20, - MM_MOBILE_ERROR_INVALID_INDEX = 21, - MM_MOBILE_ERROR_NOT_FOUND = 22, - MM_MOBILE_ERROR_MEMORY_FAILURE = 23, - MM_MOBILE_ERROR_TEXT_TOO_LONG = 24, - MM_MOBILE_ERROR_INVALID_CHARS = 25, - MM_MOBILE_ERROR_DIAL_STRING_TOO_LONG = 26, - MM_MOBILE_ERROR_DIAL_STRING_INVALID = 27, - MM_MOBILE_ERROR_NO_NETWORK = 30, - MM_MOBILE_ERROR_NETWORK_TIMEOUT = 31, - MM_MOBILE_ERROR_NETWORK_NOT_ALLOWED = 32, - MM_MOBILE_ERROR_NETWORK_PIN = 40, - MM_MOBILE_ERROR_NETWORK_PUK = 41, - MM_MOBILE_ERROR_NETWORK_SUBSET_PIN = 42, - MM_MOBILE_ERROR_NETWORK_SUBSET_PUK = 43, - MM_MOBILE_ERROR_SERVICE_PIN = 44, - MM_MOBILE_ERROR_SERVICE_PUK = 45, - MM_MOBILE_ERROR_CORP_PIN = 46, - MM_MOBILE_ERROR_CORP_PUK = 47, - MM_MOBILE_ERROR_HIDDEN_KEY = 48, - MM_MOBILE_ERROR_EAP_NOT_SUPPORTED = 49, - MM_MOBILE_ERROR_INCORRECT_PARAMS = 50, - MM_MOBILE_ERROR_UNKNOWN = 100, - - MM_MOBILE_ERROR_GPRS_ILLEGAL_MS = 103, - MM_MOBILE_ERROR_GPRS_ILLEGAL_ME = 106, - MM_MOBILE_ERROR_GPRS_SERVICE_NOT_ALLOWED = 107, - MM_MOBILE_ERROR_GPRS_PLMN_NOT_ALLOWED = 111, - MM_MOBILE_ERROR_GPRS_LOCATION_NOT_ALLOWED = 112, - MM_MOBILE_ERROR_GPRS_ROAMING_NOT_ALLOWED = 113, - MM_MOBILE_ERROR_GPRS_OPTION_NOT_SUPPORTED = 132, - MM_MOBILE_ERROR_GPRS_NOT_SUBSCRIBED = 133, - MM_MOBILE_ERROR_GPRS_OUT_OF_ORDER = 134, - MM_MOBILE_ERROR_GPRS_UNKNOWN = 148, - MM_MOBILE_ERROR_GPRS_PDP_AUTH_FAILURE = 149, - MM_MOBILE_ERROR_GPRS_INVALID_CLASS = 150 -}; - - -#define MM_MOBILE_ERROR (mm_mobile_error_quark ()) -#define MM_TYPE_MOBILE_ERROR (mm_mobile_error_get_type ()) - -GQuark mm_mobile_error_quark (void); -GType mm_mobile_error_get_type (void); -GError *mm_mobile_error_for_code (int error_code); -GError *mm_mobile_error_for_string (const char *str); - - -/* 3GPP TS 27.005 version 10 section 3.2.5 */ -enum { - /* 0 -> 127 per 3GPP TS 24.011 [6] clause E.2 */ - /* 128 -> 255 per 3GPP TS 23.040 [3] clause 9.2.3.22 */ - MM_MSG_ERROR_ME_FAILURE = 300, - MM_MSG_ERROR_SMS_SERVICE_RESERVED = 301, - MM_MSG_ERROR_NOT_ALLOWED = 302, - MM_MSG_ERROR_NOT_SUPPORTED = 303, - MM_MSG_ERROR_INVALID_PDU_PARAMETER = 304, - MM_MSG_ERROR_INVALID_TEXT_PARAMETER = 305, - MM_MSG_ERROR_SIM_NOT_INSERTED = 310, - MM_MSG_ERROR_SIM_PIN = 311, - MM_MSG_ERROR_PH_SIM_PIN = 312, - MM_MSG_ERROR_SIM_FAILURE = 313, - MM_MSG_ERROR_SIM_BUSY = 314, - MM_MSG_ERROR_SIM_WRONG = 315, - MM_MSG_ERROR_SIM_PUK = 316, - MM_MSG_ERROR_SIM_PIN2 = 317, - MM_MSG_ERROR_SIM_PUK2 = 318, - MM_MSG_ERROR_MEMORY_FAILURE = 320, - MM_MSG_ERROR_INVALID_INDEX = 321, - MM_MSG_ERROR_MEMORY_FULL = 322, - MM_MSG_ERROR_SMSC_ADDRESS_UNKNOWN = 330, - MM_MSG_ERROR_NO_NETWORK = 331, - MM_MSG_ERROR_NETWORK_TIMEOUT = 332, - MM_MSG_ERROR_NO_CNMA_ACK_EXPECTED = 340, - MM_MSG_ERROR_UNKNOWN = 500, -}; - - -#define MM_MSG_ERROR (mm_msg_error_quark ()) -#define MM_TYPE_MSG_ERROR (mm_msg_error_get_type ()) - -GQuark mm_msg_error_quark (void); -GType mm_msg_error_get_type (void); -GError *mm_msg_error_for_code (int error_code); -GError *mm_msg_error_for_string (const char *str); - -#endif /* MM_MODEM_ERROR_H */ |