fmradio/fmradio/inc/mchannellisthandler.h
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Tue, 02 Feb 2010 00:17:10 +0200
changeset 0 f3d95d9c00ab
child 6 3cb097cb90f8
permissions -rw-r--r--
Revision: 201003 Kit: 201005

/*
* Copyright (c) 2005 Nokia Corporation and/or its subsidiary(-ies).
* All rights reserved.
* This component and the accompanying materials are made available
* under the terms of "Eclipse Public License v1.0"
* which accompanies this distribution, and is available
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
*
* Initial Contributors:
* Nokia Corporation - initial contribution.
*
* Contributors:
*
* Description:  Callback definitions to channel main list update
*                     
*
*/

#ifndef MCHANNELLISTHANDLER_H

#define MCHANNELLISTHANDLER_H

/**
*	Operations to main list
*    @since 2.6
*/
enum TMoveoperations
	{
	EMoveChannels,
	EDeleteChannel,
	EAddChannelToList,
	EStoreAllToRepository,
	EStoreIndexToRepository,
	ERemoveAllFromRepository
	};

/**
*	Holder for the channel information and channel frequency
*    @since 2.6
*/
struct TChannelInformation
	{
	TBuf<32> iChannelInformation;
	TInt iChannelFrequency;
	};

/**
* Interface to update channel list
*
*    @since 2.6
*/
class MChannelListHandler
	{
	public:
		
		
		virtual void UpdateChannelsL( TMoveoperations aOperation, 
				TInt aIndex, 
				TInt aMovedToNewIndex ) = NULL;
		
		virtual void AddChannelToListL( const TDesC& aChannelName, TInt aChannelFreq ) = 0;
		
		virtual CArrayFixFlat<TChannelInformation>* Channels() = 0;
		
	};

#endif // MCHANNELLISTHANDLER_H