fmradio/fmradio/inc/mchannellisthandler.h
branchRCL_3
changeset 20 93c594350b9a
equal deleted inserted replaced
19:cce62ebc198e 20:93c594350b9a
       
     1 /*
       
     2 * Copyright (c) 2005 Nokia Corporation and/or its subsidiary(-ies).
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description:  Callback definitions to channel main list update
       
    15 *                     
       
    16 *
       
    17 */
       
    18 
       
    19 #ifndef MCHANNELLISTHANDLER_H
       
    20 
       
    21 #define MCHANNELLISTHANDLER_H
       
    22 
       
    23 #include "fmradiopreset.h"
       
    24 
       
    25 /**
       
    26 *	Operations to main list
       
    27 *    @since 2.6
       
    28 */
       
    29 enum TMoveoperations
       
    30 	{
       
    31 	EMoveChannels,
       
    32 	EDeleteChannel,
       
    33 	EAddChannelToList,
       
    34 	EStoreAllToRepository,
       
    35 	EStoreIndexToRepository,
       
    36 	ERemoveAllFromRepository
       
    37 	};
       
    38 
       
    39 
       
    40 /**
       
    41 * Interface to update channel list
       
    42 *
       
    43 *    @since 2.6
       
    44 */
       
    45 class MChannelListHandler
       
    46 	{
       
    47 	public:
       
    48 		
       
    49 		
       
    50 		virtual void UpdateChannelsL( TMoveoperations aOperation, 
       
    51 				TInt aIndex, 
       
    52 				TInt aMovedToNewIndex ) = NULL;
       
    53 		
       
    54 		virtual void AddChannelToListL( const TDesC& aChannelName, TInt aChannelFreq ) = 0;
       
    55 		
       
    56 		virtual RPointerArray<CFMRadioPreset>& Channels() = 0;
       
    57 		
       
    58 	};
       
    59 
       
    60 #endif // MCHANNELLISTHANDLER_H