cbsref/telephonyrefplugins/atltsy/handler/inc/cltsysmshandler.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 // CLtsySmsHandler
       
    15 
       
    16 #ifndef __CLTSYDISPATCHSMSHANDLER_H_
       
    17 #define __CLTSYDISPATCHSMSHANDLER_H_
       
    18 
       
    19 // INCLUDES
       
    20 #include <e32std.h>
       
    21 #include <e32base.h>
       
    22 
       
    23 #include <ctsy/ltsy/mltsydispatchinterface.h>
       
    24 #include <ctsy/ltsy/mltsydispatchsmsinterface.h>
       
    25 #include "misdispatchinterfacesupported.h"
       
    26 #include "ltsymacros.h"
       
    27 
       
    28 // FORWARD DECLARATIONS
       
    29 class CCtsyDispatcherCallback;
       
    30 class CGlobalPhonemanager;
       
    31 class CAtSmsReceive;
       
    32 class CAsyncHelperRequest;
       
    33 // Can be removed in real LTSY implementation
       
    34 MTEST_FORWARD_DECLARE_MOCKLTSYENGINE
       
    35 
       
    36 // CLASS DECLARATION
       
    37 /**
       
    38  * Implements interfaces from the CTSY Dispatcher. The CTSY Dispatcher uses these
       
    39  * interfaces to make requests to the Licensee LTSY.
       
    40  */
       
    41 class CLtsySmsHandler : 	public CBase,
       
    42 							public MIsDispatchInterfaceSupported, 
       
    43 							public MLtsyDispatchSmsSendSatSms,
       
    44 							public MLtsyDispatchSmsGetSmsStoreInfo,
       
    45 							public MLtsyDispatchSmsGetSmspList,
       
    46 							public MLtsyDispatchSmsNackSmsStored,
       
    47 							public MLtsyDispatchSmsAckSmsStored,
       
    48 							public MLtsyDispatchSmsResumeSmsReception,
       
    49 							public MLtsyDispatchSmsSendSmsMessage,
       
    50 							public MLtsyDispatchSmsSendSmsMessageNoFdnCheck,
       
    51 							public MLtsyDispatchSmsSetMoSmsBearer,
       
    52 							public MLtsyDispatchSmsStoreSmspListEntry
       
    53 {
       
    54 public:
       
    55 
       
    56 	virtual ~CLtsySmsHandler();
       
    57 	static CLtsySmsHandler* NewL(CCtsyDispatcherCallback& aCtsyDispatcherCallback,CGlobalPhonemanager* aGloblePhone);
       
    58 	static CLtsySmsHandler* NewLC(CCtsyDispatcherCallback& aCtsyDispatcherCallback,CGlobalPhonemanager* aGloblePhone);
       
    59 
       
    60 	// From MIsDispatchInterfaceSupported
       
    61 	virtual TBool IsInterfaceSupported(TLtsyDispatchInterfaceApiId aDispatchApiId);
       
    62 	void IsCallbackIndicatorSupported(TLtsyDispatchIndIdGroup aIdGroup, TUint32& aIndIdBitMask);
       
    63 	
       
    64 
       
    65 
       
    66     // From MLtsyDispatchSmsSendSatSms
       
    67     virtual TInt HandleSendSatSmsReqL( const TDesC8& aSmsTpdu,
       
    68     										   RMobileSmsMessaging::TMobileSmsDataFormat aDataFormat,
       
    69     										   const RMobilePhone::TMobileAddress& aGsmServiceCentre,
       
    70     										   TBool aMoreMessages
       
    71     										  );
       
    72     
       
    73     // From MLtsyDispatchSmsGetSmsStoreInfo
       
    74     virtual TInt HandleGetSmsStoreInfoReqL(/* TODO: Add request params here */);
       
    75 
       
    76     // From MLtsyDispatchSmsGetSmspList
       
    77     virtual TInt HandleGetSmspListReqL(/* TODO: Add request params here */);
       
    78 
       
    79     // From MLtsyDispatchSmsNackSmsStored
       
    80     virtual TInt HandleNackSmsStoredReqL(const TDesC8& aMsgPtr, TInt aRpCause);
       
    81     
       
    82     // From MLtsyDispatchSmsNackSmsStored
       
    83     virtual TInt HandleNackSmsStoredReqL(TInt aRpCause);
       
    84 
       
    85     // From MLtsyDispatchSmsAckSmsStored
       
    86     virtual TInt HandleAckSmsStoredReqL(const TDesC8& aMsgPtr);
       
    87     
       
    88     // From MLtsyDispatchSmsAckSmsStored
       
    89     virtual TInt HandleAckSmsStoredReqL();
       
    90 
       
    91     // From MLtsyDispatchSmsResumeSmsReception
       
    92     virtual TInt HandleResumeSmsReceptionReqL(/* TODO: Add request params here */);
       
    93 
       
    94     // From MLtsyDispatchSmsSendSmsMessage
       
    95     virtual TInt HandleSendSmsMessageReqL( const RMobilePhone::TMobileAddress& aDestination,
       
    96         								   const TDesC8& aSmsTpdu,
       
    97         								   RMobileSmsMessaging::TMobileSmsDataFormat aDataFormat,
       
    98         								   const RMobilePhone::TMobileAddress& aGsmServiceCentre,
       
    99         								   TBool aMoreMessages
       
   100         								  ) ;
       
   101 
       
   102     // From MLtsyDispatchSmsSendSmsMessageNoFdnCheck
       
   103     virtual TInt HandleSendSmsMessageNoFdnCheckReqL( const RMobilePhone::TMobileAddress& aDestination,
       
   104     												 const TDesC8& aSmsTpdu,
       
   105     											     RMobileSmsMessaging::TMobileSmsDataFormat aDataFormat,
       
   106     											     const RMobilePhone::TMobileAddress& aGsmServiceCentre,
       
   107     											     TBool aMoreMessages
       
   108     											    ) ;
       
   109 
       
   110     // From MLtsyDispatchSmsSetMoSmsBearer
       
   111     virtual TInt HandleSetMoSmsBearerReqL(RMobileSmsMessaging::TMobileSmsBearer aBearer);
       
   112 
       
   113     // From MLtsyDispatchSmsStoreSmspList
       
   114     virtual TInt HandleStoreSmspListEntryReqL(const RMobileSmsMessaging::TMobileSmspEntryV1& aSmsParam);
       
   115    
       
   116 private:
       
   117 	
       
   118 	CLtsySmsHandler(CCtsyDispatcherCallback& aCtsyDispatcherCallback,CGlobalPhonemanager* aGloblePhone);
       
   119 	void ConstructL();
       
   120 
       
   121 private:
       
   122 	
       
   123 	// Not owned
       
   124 	
       
   125 	/**
       
   126 	 * Callback object in the CTSY Dispatcher.
       
   127 	 * 
       
   128 	 * Used to complete a request back to the CTSY Dispatcher.
       
   129 	 */
       
   130 	CCtsyDispatcherCallback& iCtsyDispatcherCallback;
       
   131 	CGlobalPhonemanager* iGloblePhone;
       
   132 	CAtSmsReceive       *iAtSmsReceive;
       
   133 	CAsyncHelperRequest* iAsyncHelperRequest;
       
   134 	
       
   135 	}; // class CLtsySmsHandler
       
   136 
       
   137 #endif // __CLTSYDISPATCHSMSHANDLER_H_
       
   138