API Guide Home (Online version only) |

# HsPhoneSecurityTypes.h

Go to the documentation of this file.

    00001 /******************************************************************************
    00002  * Copyright (c) 2004 palmOne, Inc. or its subsidiaries.
    00003  * All rights reserved.
    00004  *****************************************************************************/
    00005 /** @ingroup Telephony
    00006  *
    00007  */
    00008
    00009
    00010 /**
    00011  *
    00012  * @file    HsPhoneSecurityTypes.h
    00013  *
    00014  * @brief  Header File for Phone Library API ---- NETWORK CATEGORY
    00015  *
    00016  * NOTES:
    00017  *  All implementations of the Handspring Phone Library support a common API.
    00018  *  This API is broken up into various categories for easier management.  This file
    00019  *  defines the Security category.  These API calls are used to interact with the wireless network.
    00020  */
    00021
    00022
    00023
    00024 #ifndef _HS_PHONE_Security_TYPES_H__
    00025 #define _HS_PHONE_Security_TYPES_H__
    00026 #include <PalmOS.h>
    00027 #include <PalmTypes.h>
    00028 #ifndef __CORE_COMPATIBILITY_H__
    00029 #include <PalmCompatibility.h>
    00030     /** workaround for differing header files in sdk-3.5 and sdk-internal */
    00031     #ifndef __CORE_COMPATIBILITY_H__
    00032     #define __CORE_COMPATIBILITY_H__
    00033     #endif
    00034 #endif
    00035
    00036
    00037 #define isValidPhnPasswordType(p) (p <= phnPasswordBarrAC)
    00038 //#define isValidPhnPasswordType(p) ((p >= phnPasswordUnknown) && (p <= phnPasswordBarrAC))
    00039
    00040
    00041 /**
    00042  *  Phone password types
    00043  *  See GSM 07.07, section 8.3 for a list of passwords. The following
    00044  *  list is based on on version 6.2.0 of the recommendation.
    00045  *
    00046  *  It is assumed that all PINs and PUKs below are network-based
    00047  *  PINS and PUKs. Function Change() uses a different timeout for
    00048  *  such PINs and/or PUKs.
    00049  **/
    00050 typedef enum {
    00051     phnPasswordUnknown,     /**< FAULT or none of the strings below */
    00052
    00053     phnPasswordNone,        /**< READY */
    00054     phnPasswordSIMPIN,      /**< SIM PIN */
    00055     phnPasswordSIMPUK,      /**< SIM PUK */
    00056     phnPasswordPhSIMPIN,        /**< PH-SIM PIN */
    00057     phnPasswordPh1SIMPIN,       /**< PH-FSIM PIN */
    00058     phnPasswordPh1SIMPUK,       /**< PH-FSIM PUK */
    00059     phnPasswordSIMPIN2,     /**< SIM PIN2 */
    00060     phnPasswordSIMPUK2,     /**< SIM PUK2 */
    00061
    00062     phnPasswordNetworkPIN,      /**< PH-NET PIN */
    00063     phnPasswordNetworkPUK,      /**< PH-NET PUK */
    00064     phnPasswordNetworkSubsetPIN,    /**< PH-NETSUB PIN */
    00065     phnPasswordNetworkSubsetPUK,    /**< PH-NETSUB PUK */
    00066     phnPasswordServiceProviderPIN,  /**< PH-SP PIN */
    00067     phnPasswordServiceProviderPUK,  /**< PH-SP PUK */
    00068     phnPasswordCorporatePIN,    /**< PH-CORP PIN */
    00069     phnPasswordCorporatePUK,    /**< PH-CORP PUK */
    00070
    00071         // The passwords below are supported by the +CPWD command. See GSM 07.07
    00072     // section 7.4 and 7.5 for a list of facility-specific passwords.
    00073
    00074     phnPasswordBarrAO,      /**< all outgoing call */
    00075     phnPasswordBarrOI,      /**< outgoing intŐl calls */
    00076     phnPasswordBarrOX,      /**< outgoing intŐl calls except to home country */
    00077     phnPasswordBarrAI,      /**< all incoming calls */
    00078     phnPasswordBarrIR,      /**< incoming calls when roaming outside home country */
    00079     phnPasswordBarrAB,      /**< all barring services */
    00080     phnPasswordBarrAG,      /**< all outgoing barring services */
    00081     phnPasswordBarrAC       /**< all incoming barring services */
    00082 } PhnPasswordTypeEnum;
    00083
    00084 typedef UInt8 PhnPasswordType;
    00085
    00086 #endif // _HS_PHONE_Security_TYPES_H__

Top | Palm Developer Network © 2004-2008, Palm, Inc. All rights reserved. Generated on Fri Jun 13 10:06:53 2008 for Palm API Guide