telephonyserverplugins/multimodetsy/Multimode/mimsi.h
changeset 0 3553901f7fa8
child 24 6638e7f4bd8f
equal deleted inserted replaced
-1:000000000000 0:3553901f7fa8
       
     1 // Copyright (c) 2000-2009 Nokia Corporation and/or its subsidiary(-ies).
       
     2 // All rights reserved.
       
     3 // This component and the accompanying materials are made available
       
     4 // under the terms of "Eclipse Public License v1.0"
       
     5 // which accompanies this distribution, and is available
       
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     7 //
       
     8 // Initial Contributors:
       
     9 // Nokia Corporation - initial contribution.
       
    10 //
       
    11 // Contributors:
       
    12 //
       
    13 // Description:
       
    14 // Deal with Subscriber Id
       
    15 // 
       
    16 //
       
    17 
       
    18 /**
       
    19  @file
       
    20  @internalAll 
       
    21 */
       
    22 
       
    23 #ifndef __MIMSI_H__
       
    24 #define __MIMSI_H__
       
    25 
       
    26 #include "ATBASE.H"
       
    27 #include <etelmm.h>
       
    28 
       
    29 class CATSubscriberId : public CATCommands
       
    30 	{
       
    31 public:
       
    32 	static CATSubscriberId* NewL(CATIO* aIo, CTelObject* aTelObject, CATInit* aInit, CPhoneGlobals* aPhoneGlobals);
       
    33 	~CATSubscriberId();
       
    34 //
       
    35 	inline TBool IsNotSupported();
       
    36 	TBool CachedValue(TDes& aImsi);
       
    37 private:
       
    38 	CATSubscriberId(CATIO* aIo, CTelObject* aTelObject, CATInit* aInit, CPhoneGlobals* aPhoneGlobals);
       
    39 //
       
    40 	virtual void Start(TTsyReqHandle aTsyReqHandle, TAny* aParams);
       
    41 	virtual void Stop(TTsyReqHandle aTsyReqHandle);
       
    42 	virtual void EventSignal(TEventSource aSource);
       
    43 	virtual void CompleteWithIOError(TEventSource aSource, TInt aStatus);
       
    44 //
       
    45 	virtual void Complete(TInt aError, TEventSource aSource);
       
    46 	void ParseResponseL();
       
    47 private:
       
    48 	enum {
       
    49 		EATNotInProgress,
       
    50 		EATImsiWaitForWriteComplete,
       
    51 		EATImsiReadComplete,
       
    52 		EATWaitForStopState,
       
    53 		EATCompleted,
       
    54 		EATNotSupported
       
    55 		} iState;
       
    56 		
       
    57 	RMobilePhone::TMobilePhoneSubscriberId* iReturnPtr;
       
    58 	RMobilePhone::TMobilePhoneSubscriberId  iImsi;
       
    59 	};
       
    60 
       
    61 inline TBool CATSubscriberId::IsNotSupported()
       
    62 	{return iState==EATNotSupported;}
       
    63 
       
    64 #endif