telephonyserverplugins/multimodetsy/Multimode/monstore.h
changeset 0 3553901f7fa8
child 24 6638e7f4bd8f
equal deleted inserted replaced
-1:000000000000 0:3553901f7fa8
       
     1 // Copyright (c) 1997-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 // MM own number store access Header file.
       
    15 // 
       
    16 //
       
    17 
       
    18 /**
       
    19  @file
       
    20  @internalAll
       
    21 */
       
    22 
       
    23 #ifndef __MONSTORE_H__
       
    24 #define __MONSTORE_H__
       
    25 
       
    26 #include <etelmm.h>
       
    27 #include "ATSTD.H"
       
    28 #include "Mownnum.h"
       
    29 
       
    30 
       
    31 class CATIO;
       
    32 class CATInit;
       
    33 class CPhoneGlobals;
       
    34 
       
    35 
       
    36 /**
       
    37  * \class CMobileONStore MONSTORE.H "MMTSY/MULTIMODE/MONSTORE.H"
       
    38  * \brief The CMobileONStore class is one of the MULTIMODE TSY's sub-session extensions responsible
       
    39  * for handling Client-side calls from the RMobilePhoneONStore class in the Multimode API.
       
    40  *
       
    41  * CMobileONStore inherits from the CSubSessionExtBase class defined in et_phone.h (which in turn
       
    42  * inherits from various mixin classes (MSubSessionExtBaseTSY, MTelObjectTSY). This sub-session
       
    43  * extension class implements all the pure virtuals (functions) from the inherited classes
       
    44  * including ExtFunc(), CancelService(), ReqModeL() etc.
       
    45  */
       
    46 class CMobileONStore : public CSubSessionExtBase
       
    47 	{
       
    48 public:
       
    49 
       
    50 	static CMobileONStore* NewL(CATIO* aATIO,CATInit* aInit,CPhoneGlobals* aMMStatus);						   
       
    51 	~CMobileONStore();
       
    52 //
       
    53 // CTelObject, MTelObject pure virtuals
       
    54 //
       
    55 	virtual CTelObject::TReqMode ReqModeL(const TInt aIpc);
       
    56 	virtual TInt NumberOfSlotsL(const TInt aIpc);		
       
    57 	virtual TInt RegisterNotification(const TInt aIpc);	
       
    58 	virtual TInt DeregisterNotification(const TInt aIpc);	
       
    59 	virtual void Init();								
       
    60 	virtual TInt CancelService(const TInt aIpc, const TTsyReqHandle aTsyReqHandle);
       
    61 	virtual CTelObject* OpenNewObjectByNameL(const TDesC& aName);
       
    62 	virtual CTelObject* OpenNewObjectL(TDes& aName);
       
    63 //
       
    64 // CSubSessionExtBase pure virtuals
       
    65 //
       
    66 	virtual TInt ExtFunc(const TTsyReqHandle aTsyReqHandle,	const TInt aIpc, const TDataPackage& aPackage);
       
    67 
       
    68 
       
    69 private:
       
    70 	CMobileONStore(CATIO* aATIO,CATInit* aInit,CPhoneGlobals* aMMStatus);
       
    71 	TInt GetOwnNumberInfo(TTsyReqHandle aTsyReqHandle,TDes8* aInfo);
       
    72 	TInt Read(TTsyReqHandle aTsyReqHandle,TDes8* aEntry);
       
    73 	TInt ReadCancel(const TTsyReqHandle aTsyReqHandle);
       
    74 private:
       
    75 
       
    76 	void ConstructL();
       
    77 
       
    78 	CATIO* iIo;
       
    79 	CATInit* iInit;
       
    80 	CATOwnNumbers* iATOwnNumbers;
       
    81 	CPhoneGlobals* iPhoneGlobals;
       
    82 	};
       
    83 
       
    84 #endif