sysstatemgmt/systemstatereferenceplugins/clayer/inc/simutils.h
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Fri, 19 Mar 2010 09:58:42 +0200
changeset 12 e978f818f9bd
parent 0 4e1aa6a622a0
permissions -rw-r--r--
Revision: 201007 Kit: 201011

/*
* Copyright (c) 2008-2010 Nokia Corporation and/or its subsidiary(-ies).
* All rights reserved.
* This component and the accompanying materials are made available
* under the terms of "Eclipse Public License v1.0"
* which accompanies this distribution, and is available
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
*
* Initial Contributors:
* Nokia Corporation - initial contribution.
*
* Contributors:
*
* Description:
* Interface   : Domain, SIM Utils API
* This file contains SIM Utils definitions of Startup subsystem.
*
*/

#ifndef __SIMUTILS_H__
#define __SIMUTILS_H__

#include <e32property.h>

/*
* @file
* @publishedPartner
* @released
*/

const TInt KSimUtilsEnumerationFirstValue = 100;

// =============================================================================
// SIM Utils API
// =============================================================================

// Use TUid KPSUidStartup = { 0x101F8766 };

/**
* Indicates the current SIM card status.
*/
const TUint32 KPSSimStatus = 0x00000031;
enum TPSSimStatus
    {
    ESimStatusUninitialized = KSimUtilsEnumerationFirstValue,
    ESimUsable,         // The Sim card is fully usable.
    ESimReadable,       // The SIM card is not fully usable, but the emergency number can be read.
    ESimNotReady,       // The Sim card is present but not ready or usable.
    ESimNotPresent,     // The Sim card is not present.
    ESimNotSupported    // SIM/RUIM is not supported. Some CDMA phones do not support a SIM/RUIM at all.
    };

/**
* Indicates whether the current SIM card is owned.
*/
const TUint32 KPSSimOwned = 0x00000032;
enum TPSSimOwned
    {
    ESimOwnedUninitialized = KSimUtilsEnumerationFirstValue,
    ESimOwned,          // The current Sim card is owned.
    ESimNotOwned        // The current Sim card is not owned.
    };

/**
* Indicates whether the current SIM card is same than the previous one.
*/
const TUint32 KPSSimChanged = 0x00000033;
enum TPSSimChanged
    {
    ESimChangedUninitialized = KSimUtilsEnumerationFirstValue,
    ESimChanged,        // The Sim card has been changed.
    ESimNotChanged      // The Sim card has not been changed.
    };

#endif // __SIMUTILS_H__