customization/EmbeddedLinkAdapter/inc/EmbeddedLinkHandler.h
changeset 0 3ce708148e4d
child 2 a5fecba4b1e4
equal deleted inserted replaced
-1:000000000000 0:3ce708148e4d
       
     1 /*
       
     2 * Copyright (c) 2009 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: Implementation of customization components
       
    15 *
       
    16 */
       
    17 
       
    18 #ifndef  EMBEDDEDLINKHANDLER_H
       
    19 #define  EMBEDDEDLINKHANDLER_H
       
    20 
       
    21 #include <e32base.h>
       
    22 #include <FavouritesLimits.h>
       
    23 #include <e32std.h>
       
    24 
       
    25 #include <FavouritesDb.h>
       
    26 
       
    27 
       
    28 class CEmbeddedLinkApp;
       
    29 
       
    30 class CEmbeddedLinkHandler : public CBase
       
    31 {
       
    32 	public:
       
    33 		static CEmbeddedLinkHandler* NewL();
       
    34 		static CEmbeddedLinkHandler* NewLC();
       
    35 		~CEmbeddedLinkHandler();
       
    36 	private:
       
    37 		void ConstructL();
       
    38 			
       
    39 	public:
       
    40 		enum TLinkAppType
       
    41 		{
       
    42 			EImageLinkApp = 0,
       
    43 			ERingtoneLinkApp,
       
    44 			EVideoLinkApp,
       
    45 			EAudioLinkApp,
       
    46 			ESkinLinkApp,
       
    47 			EGameLinkApp,
       
    48 			EApplicationLinkApp
       
    49 		};
       
    50 		typedef TBuf<10> TEmbeddedLinkAppName;
       
    51 		void SupportingApplicationsL( RArray<TEmbeddedLinkAppName>& aArray );
       
    52 		TInt GetLinkAppL( TInt aLinkType, CEmbeddedLinkApp*& aLinkApp );
       
    53 		TInt RemoveLinkL( TInt aLinkUid );
       
    54 		TInt UpdateLinkUrlL( TInt aLinkUid, const TDesC& aURL );
       
    55 		TInt UpdateLinkNameL( TInt aLinkUid, const TDesC& aName );
       
    56 		TInt UpdateUserNameL( TInt aLinkUid, const TDesC& aUserName );
       
    57 		TInt UpdatePasswordL( TInt aLinkUid, const TDesC& aPassword );
       
    58 		TInt UpdateWapApL( TInt aLinkUid, const TDesC& aWapAp );
       
    59 
       
    60 	private:
       
    61 	
       
    62 	public:
       
    63 		CEmbeddedLinkApp* iEmbeddedLinkImage;
       
    64 		CEmbeddedLinkApp* iEmbeddedLinkRingtone;
       
    65 		CEmbeddedLinkApp* iEmbeddedLinkVideo;
       
    66 		CEmbeddedLinkApp* iEmbeddedLinkAudio;
       
    67 		CEmbeddedLinkApp* iEmbeddedLinkSkin;
       
    68 		CEmbeddedLinkApp* iEmbeddedLinkGame;
       
    69 		CEmbeddedLinkApp* iEmbeddedLinkApplication;	
       
    70 		CEmbeddedLinkApp* iEmbeddedLinkMusic;	
       
    71 	private:
       
    72 
       
    73 		RFavouritesSession iFavouritesSess;
       
    74 
       
    75 
       
    76 };
       
    77 
       
    78 #endif