cbsref/telephonyrefplugins/atltsy/handler/inc/cltsysathandler.h
branchRCL_3
changeset 65 630d2f34d719
equal deleted inserted replaced
61:17af172ffa5f 65:630d2f34d719
       
     1 // Copyright (c) 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 // CLtsySatHandler
       
    15 
       
    16 #ifndef __CLTSYDISPATCHSATHANDLER_H_
       
    17 #define __CLTSYDISPATCHSATHANDLER_H_
       
    18 
       
    19 // INCLUDES
       
    20 #include <e32std.h>
       
    21 #include <e32base.h>
       
    22 
       
    23 #include <ctsy/ltsy/mltsydispatchinterface.h>
       
    24 #include <ctsy/ltsy/mltsydispatchsatinterface.h>
       
    25 #include "misdispatchinterfacesupported.h"
       
    26 #include "ltsymacros.h"
       
    27 
       
    28 
       
    29 
       
    30 // FORWARD DECLARATIONS
       
    31 class CCtsyDispatcherCallback;
       
    32 
       
    33 // Can be removed in real LTSY implementation
       
    34 MTEST_FORWARD_DECLARE_MOCKLTSYENGINE
       
    35 
       
    36 // CLASS DECLARATION
       
    37 
       
    38 /**
       
    39  * Implements interfaces from the CTSY Dispatcher. The CTSY Dispatcher uses these
       
    40  * interfaces to make requests to the Licensee LTSY.
       
    41  */
       
    42 class CLtsySatHandler : 	public CBase,
       
    43 							public MIsDispatchInterfaceSupported, 
       
    44 							public MLtsyDispatchSatSmsDeliverReport,
       
    45 							public MLtsyDispatchSatGetImageInstance,
       
    46 							public MLtsyDispatchSatGetIconData,
       
    47 							public MLtsyDispatchSatGetClut,
       
    48 							public MLtsyDispatchSatGetDefaultBearerCapability,
       
    49 							public MLtsyDispatchSatGetSmsPpDownloadSupported,
       
    50 							public MLtsyDispatchSatGetSmsControlActivated,
       
    51 							public MLtsyDispatchSatCellBroadcastEnvelope,
       
    52 							public MLtsyDispatchSatTimingAdvance,
       
    53 							public MLtsyDispatchSatSmControlResponseData,
       
    54 							public MLtsyDispatchSatProvideLocationInfo,
       
    55 							public MLtsyDispatchSatSetPollingInterval,
       
    56 							public MLtsyDispatchSatSmsPpDownloadEnvelope,
       
    57 							public MLtsyDispatchSatLocalInformationNmr,
       
    58 							public MLtsyDispatchSatGetAccessTechnology,
       
    59 							public MLtsyDispatchSatGetUssdControlSupported,
       
    60 							public MLtsyDispatchSatCallAndSmsControlEnvelope,
       
    61 							public MLtsyDispatchSatRefreshAllowed,
       
    62 							public MLtsyDispatchSatReady,
       
    63 							public MLtsyDispatchSatPCmdNotification,
       
    64 							public MLtsyDispatchSatUssdControlEnvelopeError,
       
    65 							public MLtsyDispatchSatTimerExpirationEnvelope,
       
    66 							public MLtsyDispatchSatTerminalRsp,
       
    67 							public MLtsyDispatchSatMenuSelectionEnvelope,
       
    68 							public MLtsyDispatchSatEventDownloadEnvelope
       
    69 							
       
    70 	{
       
    71 public:
       
    72 
       
    73 	virtual ~CLtsySatHandler();
       
    74 	static CLtsySatHandler* NewL(CCtsyDispatcherCallback& aCtsyDispatcherCallback);
       
    75 	static CLtsySatHandler* NewLC(CCtsyDispatcherCallback& aCtsyDispatcherCallback);
       
    76 
       
    77 	// From MIsDispatchInterfaceSupported
       
    78 	virtual TBool IsInterfaceSupported(TLtsyDispatchInterfaceApiId aDispatchApiId);
       
    79 	void IsCallbackIndicatorSupported(TLtsyDispatchIndIdGroup aIdGroup, TUint32& aIndIdBitMask);
       
    80 	
       
    81 
       
    82 
       
    83     // From MLtsyDispatchSatSmsDeliverReport
       
    84     virtual TInt HandleSmsDeliverReportReqL(const TDesC8& aSmsDeliverReportTpdu);
       
    85 
       
    86     // From MLtsyDispatchSatGetImageInstance
       
    87     virtual TInt HandleGetImageInstanceReqL(TUint8 aEfImgRecordNumber, TUint8 aInstanceNumberInEfImgRecord);
       
    88 
       
    89     // From MLtsyDispatchSatGetIconData
       
    90     virtual TInt HandleGetIconDataReqL(TUint8 aEfImgRecordNumber, const TDesC8& aSimFilePath);
       
    91 
       
    92     // From MLtsyDispatchSatGetClut
       
    93     virtual TInt HandleGetClutReqL(TUint8 aEfImgRecordNumber, TUint8 aInstanceNumberInEfImgRecord);
       
    94 
       
    95     // From MLtsyDispatchSatGetDefaultBearerCapability
       
    96     virtual TInt HandleGetDefaultBearerCapabilityReqL();
       
    97 
       
    98     // From MLtsyDispatchSatGetSmsPpDownloadSupported
       
    99     virtual TInt HandleGetSmsPpDownloadSupportedReqL();
       
   100 
       
   101     // From MLtsyDispatchSatGetSmsControlActivated
       
   102     virtual TInt HandleGetSmsControlActivatedReqL();
       
   103 
       
   104     // From MLtsyDispatchSatCellBroadcastEnvelope
       
   105     virtual TInt HandleCellBroadcastEnvelopeReqL(const TDesC8& aEnvelope);
       
   106 
       
   107     // From MLtsyDispatchSatTimingAdvance
       
   108     virtual TInt HandleTimingAdvanceReqL();
       
   109 
       
   110     // From MLtsyDispatchSatSmControlResponseData
       
   111     virtual TInt HandleSmControlResponseDataReqL(
       
   112     		TUint8 aResult, const TDesC8& aRpDestinationAddress, const TDesC8& aTpDestinationAddress);
       
   113 
       
   114 	// From MLtsyDispatchSatGetAccessTechnology
       
   115     virtual TInt HandleGetAccessTechnologyReqL();
       
   116     
       
   117     // From MLtsyDispatchSatProvideLocationInfo
       
   118     virtual TInt HandleProvideLocationInfoReqL();
       
   119 
       
   120     // From MLtsyDispatchSatSetPollingInterval
       
   121     virtual TInt HandleSetPollingIntervalReqL(TUint8 aPollingInterval);
       
   122 
       
   123     // From MLtsyDispatchSatSmsPpDownloadEnvelope
       
   124     virtual TInt HandleSmsPpDownloadEnvelopeReqL(const TDesC8& aEnvelope);
       
   125 
       
   126     // From MLtsyDispatchSatLocalInformationNmr
       
   127     virtual TInt HandleLocalInformationNmrReqL();
       
   128     
       
   129     // From MLtsyDispatchSatGetUssdControlSupported
       
   130     virtual TInt HandleGetUssdControlSupportedReqL();
       
   131 
       
   132     // From MLtsyDispatchSatCallAndSmsControlEnvelope
       
   133     virtual TInt HandleCallAndSmsControlEnvelopeReqL(const TDesC8& aEnvelope);
       
   134 
       
   135     // From MLtsyDispatchSatRefreshAllowed
       
   136     virtual TInt HandleRefreshAllowedReqL(const TDesC8& aRefreshFileList, const TDesC8& aAid, TUint16 aTsyCache);
       
   137 
       
   138     // From MLtsyDispatchSatReady
       
   139     virtual TInt HandleReadyReqL();
       
   140 
       
   141     // From MLtsyDispatchSatPCmdNotification
       
   142     virtual TInt HandlePCmdNotificationReqL(TUint8 aPCmdType);
       
   143 
       
   144     // From MLtsyDispatchSatUssdControlEnvelopeError
       
   145     virtual TInt HandleUssdControlEnvelopeErrorReqL();
       
   146 
       
   147     // From MLtsyDispatchSatTimerExpirationEnvelope
       
   148     virtual TInt HandleTimerExpirationEnvelopeReqL(const TDesC8& aEnvelope);
       
   149 
       
   150     // From MLtsyDispatchSatTerminalRsp
       
   151     virtual TInt HandleTerminalRspReqL(const TDesC8& aTerminalRsp);
       
   152 
       
   153     // From MLtsyDispatchSatMenuSelectionEnvelope
       
   154     virtual TInt HandleMenuSelectionEnvelopeReqL(const TDesC8& aEnvelope);
       
   155 
       
   156     // From MLtsyDispatchSatEventDownloadEnvelope
       
   157     virtual TInt HandleEventDownloadEnvelopeReqL(const TDesC8& aEnvelope);
       
   158 
       
   159 
       
   160 private:
       
   161 	
       
   162 	CLtsySatHandler(CCtsyDispatcherCallback& aCtsyDispatcherCallback);
       
   163 	void ConstructL();
       
   164 
       
   165 private:
       
   166 	
       
   167 	// Not owned
       
   168 	
       
   169 	/**
       
   170 	 * Callback object in the CTSY Dispatcher.
       
   171 	 * 
       
   172 	 * Used to complete a request back to the CTSY Dispatcher.
       
   173 	 */
       
   174 	CCtsyDispatcherCallback& iCtsyDispatcherCallback;
       
   175 	
       
   176 public:
       
   177 
       
   178 
       
   179 	}; // class CLtsySatHandler
       
   180 
       
   181 #endif // __CLTSYDISPATCHSATHANDLER_H_
       
   182