cbsref/telephonyrefplugins/atltsy/handler/inc/cltsycellbroadcasthandler.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 // CLtsyCellBroadcastHandler
       
    15 
       
    16 #ifndef __CLTSYDISPATCHCELLBROADCASTHANDLER_H_
       
    17 #define __CLTSYDISPATCHCELLBROADCASTHANDLER_H_
       
    18 
       
    19 // INCLUDES
       
    20 #include <e32std.h>
       
    21 #include <e32base.h>
       
    22 
       
    23 #include <ctsy/ltsy/mltsydispatchinterface.h>
       
    24 #include <ctsy/ltsy/mltsydispatchcellbroadcastinterface.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 CLtsyCellBroadcastHandler : 	public CBase,
       
    43 							public MIsDispatchInterfaceSupported, 
       
    44 							public MLtsyDispatchCellBroadcastSetBroadcastFilterSetting,
       
    45 							public MLtsyDispatchCellBroadcastActivateBroadcastReceiveMessage,
       
    46 							public MLtsyDispatchCellBroadcastReceiveMessageCancel,
       
    47 							public MLtsyDispatchCellBroadcastStartSimCbTopicBrowsing,
       
    48 							public MLtsyDispatchCellBroadcastDeleteSimCbTopic
       
    49 							
       
    50 	{
       
    51 public:
       
    52 
       
    53 	virtual ~CLtsyCellBroadcastHandler();
       
    54 	static CLtsyCellBroadcastHandler* NewL(CCtsyDispatcherCallback& aCtsyDispatcherCallback);
       
    55 	static CLtsyCellBroadcastHandler* NewLC(CCtsyDispatcherCallback& aCtsyDispatcherCallback);
       
    56 
       
    57 	// From MIsDispatchInterfaceSupported
       
    58 	virtual TBool IsInterfaceSupported(TLtsyDispatchInterfaceApiId aDispatchApiId);
       
    59 	void IsCallbackIndicatorSupported(TLtsyDispatchIndIdGroup aIdGroup, TUint32& aIndIdBitMask);
       
    60 	
       
    61 	
       
    62     // From MLtsyDispatchCellBroadcastSetBroadcastFilterSetting
       
    63     virtual TInt HandleSetBroadcastFilterSettingReqL(RMobileBroadcastMessaging::TMobilePhoneBroadcastFilter aFilterSetting);
       
    64 
       
    65     // From MLtsyDispatchCellBroadcastActivateBroadcastReceiveMessage
       
    66     virtual TInt HandleActivateBroadcastReceiveMessageReqL(RMobileBroadcastMessaging::TMobilePhoneBroadcastFilter aFilterSetting);
       
    67 
       
    68     // From MLtsyDispatchCellBroadcastReceiveMessageCancel
       
    69     virtual TInt HandleReceiveMessageCancelReqL(RMobileBroadcastMessaging::TMobilePhoneBroadcastFilter aFilterSetting);
       
    70     
       
    71     // From MLtsyDispatchCellBroadcastStartSimCbTopicBrowsing
       
    72     virtual TInt HandleStartSimCbTopicBrowsingReqL();
       
    73     
       
    74     // From MLtsyDispatchCellDeleteSimCbTopic
       
    75     virtual TInt HandleDeleteSimCbTopicReqL(TUint aIndex, TBool aDeleteFlag);
       
    76 
       
    77 private:
       
    78 	
       
    79 	CLtsyCellBroadcastHandler(CCtsyDispatcherCallback& aCtsyDispatcherCallback);
       
    80 	void ConstructL();
       
    81 
       
    82 private:
       
    83 	
       
    84 	// Not owned
       
    85 	
       
    86 	/**
       
    87 	 * Callback object in the CTSY Dispatcher.
       
    88 	 * 
       
    89 	 * Used to complete a request back to the CTSY Dispatcher.
       
    90 	 */
       
    91 	CCtsyDispatcherCallback& iCtsyDispatcherCallback;
       
    92 	
       
    93 public:
       
    94 
       
    95 
       
    96 	}; // class CLtsyCellBroadcastHandler
       
    97 
       
    98 #endif // __CLTSYDISPATCHCELLBROADCASTHANDLER_H_
       
    99