--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/customization/EmbeddedLinkAdapter/inc/EmbeddedLinkHandler.h Thu Dec 17 08:40:12 2009 +0200
@@ -0,0 +1,78 @@
+/*
+* 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
\ No newline at end of file