26
|
1 |
/*
|
|
2 |
* Copyright (c) 2008-2009 Nokia Corporation and/or its subsidiary(-ies).
|
|
3 |
* All rights reserved.
|
|
4 |
* This component and the accompanying materials are made available
|
|
5 |
* under the terms of "Eclipse Public License v1.0"
|
|
6 |
* which accompanies this distribution, and is available
|
|
7 |
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
|
|
8 |
*
|
|
9 |
* Initial Contributors:
|
|
10 |
* Nokia Corporation - initial contribution.
|
|
11 |
*
|
|
12 |
* Contributors:
|
|
13 |
*
|
|
14 |
* Description:
|
|
15 |
* Name : simutils.h
|
|
16 |
* Part of : System Startup / Starter
|
|
17 |
* Interface : Domain, SIM Utils API
|
|
18 |
* This file contains SIM Utils definitions of Startup subsystem.
|
|
19 |
* Version : %version: 1 %
|
|
20 |
* This material, including documentation and any related computer
|
|
21 |
* programs, is protected by copyright controlled by Nokia. All
|
|
22 |
* rights are reserved. Copying, including reproducing, storing,
|
|
23 |
* adapting or translating, any or all of this material requires the
|
|
24 |
* prior written consent of Nokia. This material also contains
|
|
25 |
* confidential information which may not be disclosed to others
|
|
26 |
* without the prior written consent of Nokia.
|
|
27 |
* Template version: 4.2
|
|
28 |
* Nokia Core OS *
|
|
29 |
*
|
|
30 |
*/
|
|
31 |
|
|
32 |
#ifndef __SIMUTILS_H__
|
|
33 |
#define __SIMUTILS_H__
|
|
34 |
|
|
35 |
#include <e32property.h>
|
|
36 |
|
|
37 |
/*
|
|
38 |
* @file
|
|
39 |
* @publishedPartner
|
|
40 |
* @released
|
|
41 |
*/
|
|
42 |
|
|
43 |
const TInt KSimUtilsEnumerationFirstValue = 100;
|
|
44 |
|
|
45 |
// =============================================================================
|
|
46 |
// SIM Utils API
|
|
47 |
// =============================================================================
|
|
48 |
|
|
49 |
// Use TUid KPSUidStartup = { 0x101F8766 };
|
|
50 |
|
|
51 |
/**
|
|
52 |
* Indicates the current SIM card status.
|
|
53 |
*/
|
|
54 |
const TUint32 KPSSimStatus = 0x00000031;
|
|
55 |
enum TPSSimStatus
|
|
56 |
{
|
|
57 |
ESimStatusUninitialized = KSimUtilsEnumerationFirstValue,
|
|
58 |
ESimUsable, // The Sim card is fully usable.
|
|
59 |
ESimReadable, // The SIM card is not fully usable, but the emergency number can be read.
|
|
60 |
ESimNotReady, // The Sim card is present but not ready or usable.
|
|
61 |
ESimNotPresent, // The Sim card is not present.
|
|
62 |
ESimNotSupported // SIM/RUIM is not supported. Some CDMA phones do not support a SIM/RUIM at all.
|
|
63 |
};
|
|
64 |
|
|
65 |
/**
|
|
66 |
* Indicates whether the current SIM card is owned.
|
|
67 |
*/
|
|
68 |
const TUint32 KPSSimOwned = 0x00000032;
|
|
69 |
enum TPSSimOwned
|
|
70 |
{
|
|
71 |
ESimOwnedUninitialized = KSimUtilsEnumerationFirstValue,
|
|
72 |
ESimOwned, // The current Sim card is owned.
|
|
73 |
ESimNotOwned // The current Sim card is not owned.
|
|
74 |
};
|
|
75 |
|
|
76 |
/**
|
|
77 |
* Indicates whether the current SIM card is same than the previous one.
|
|
78 |
*/
|
|
79 |
const TUint32 KPSSimChanged = 0x00000033;
|
|
80 |
enum TPSSimChanged
|
|
81 |
{
|
|
82 |
ESimChangedUninitialized = KSimUtilsEnumerationFirstValue,
|
|
83 |
ESimChanged, // The Sim card has been changed.
|
|
84 |
ESimNotChanged // The Sim card has not been changed.
|
|
85 |
};
|
|
86 |
|
|
87 |
#endif // __SIMUTILS_H__
|