customization/EmbeddedLinkAdapter/inc/EmbeddedLinkHandler.h
author Simon Howkins <simonh@symbian.org>
Mon, 29 Nov 2010 13:50:02 +0000
branchRCL_3
changeset 75 902e8e3951f0
parent 58 5b858729772b
permissions -rw-r--r--
Adjusted to avoid further exports from a top-level bld.inf

/*
* Copyright (c) 2009 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: Implementation of customization components
*
*/

#ifndef  EMBEDDEDLINKHANDLER_H
#define  EMBEDDEDLINKHANDLER_H

#include <e32base.h>
#include <favouriteslimits.h>
#include <e32std.h>

#include <favouritesdb.h>


class CEmbeddedLinkApp;

class CEmbeddedLinkHandler : public CBase
{
	public:
		static CEmbeddedLinkHandler* NewL();
		static CEmbeddedLinkHandler* NewLC();
		~CEmbeddedLinkHandler();
	private:
		void ConstructL();
			
	public:
		enum TLinkAppType
		{
			EImageLinkApp = 0,
			ERingtoneLinkApp,
			EVideoLinkApp,
			EAudioLinkApp,
			ESkinLinkApp,
			EGameLinkApp,
			EApplicationLinkApp
		};
		typedef TBuf<10> TEmbeddedLinkAppName;
		void SupportingApplicationsL( RArray<TEmbeddedLinkAppName>& aArray );
		TInt GetLinkAppL( TInt aLinkType, CEmbeddedLinkApp*& aLinkApp );
		TInt RemoveLinkL( TInt aLinkUid );
		TInt UpdateLinkUrlL( TInt aLinkUid, const TDesC& aURL );
		TInt UpdateLinkNameL( TInt aLinkUid, const TDesC& aName );
		TInt UpdateUserNameL( TInt aLinkUid, const TDesC& aUserName );
		TInt UpdatePasswordL( TInt aLinkUid, const TDesC& aPassword );
		TInt UpdateWapApL( TInt aLinkUid, const TDesC& aWapAp );

	private:
	
	public:
		CEmbeddedLinkApp* iEmbeddedLinkImage;
		CEmbeddedLinkApp* iEmbeddedLinkRingtone;
		CEmbeddedLinkApp* iEmbeddedLinkVideo;
		CEmbeddedLinkApp* iEmbeddedLinkAudio;
		CEmbeddedLinkApp* iEmbeddedLinkSkin;
		CEmbeddedLinkApp* iEmbeddedLinkGame;
		CEmbeddedLinkApp* iEmbeddedLinkApplication;	
		CEmbeddedLinkApp* iEmbeddedLinkMusic;	
	private:

		RFavouritesSession iFavouritesSess;


};

#endif