customization/EmbeddedLinkAdapter/inc/EmbeddedLinkApp.h
changeset 0 3ce708148e4d
child 14 4699373c9af8
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/customization/EmbeddedLinkAdapter/inc/EmbeddedLinkApp.h	Thu Dec 17 08:40:12 2009 +0200
@@ -0,0 +1,72 @@
+/*
+* 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  EMBEDDEDLINKAPP_H
+#define  EMBEDDEDLINKAPP_H
+#include "EmbeddedLinkHandler.h"
+#include <f32file.h>
+#include <FavouritesItem.h>
+#include <FavouritesItemList.h>
+
+class CEmbeddedLinkApp : public CBase
+{
+	public:		// public standard methods
+		static CEmbeddedLinkApp* NewL( TInt aId );
+		static CEmbeddedLinkApp* NewLC( TInt aId );
+		virtual ~CEmbeddedLinkApp();	
+	private:	// private standard methods
+		void ConstructL( TInt aId );
+		
+	
+	public:		// public methods
+		TInt AddLinkL( TDesC& aName, TDesC& aUrl, const TDesC& aUsername=KNullDesC, 
+			const TDesC& aPassword=KNullDesC, TInt aApId=KErrNotFound );
+
+		TInt GetLinkL( TInt aUid, CFavouritesItem& aFavItem );
+		TInt GetLinksL( CFavouritesItemList& aFavItemList );
+		TPtrC GetURI();
+		TInt SetURI( const TDesC& aURI );
+		TInt RemoveLinkL( TInt aUid );
+		TInt UpdateNameL( const TDesC& aName, TInt aUid );
+		TInt UpdateUrlL( const TDesC& aUrl, TInt aUid );
+		TInt UpdateUserNameL( const TDesC& aUserName, const TInt aUid );
+		TInt UpdatePasswordL( const TDesC& aPassword, const TInt aUid );
+		TInt UpdateWapApL( const TDesC& aWapAp, const TInt aUid );
+		TInt GetLinkUidL( TDesC& aName, TDesC& aAddress, TInt folderUid, TInt& aUid );
+
+		TInt AppId() const;
+		TPtrC AppName() const;
+
+	private:	// private methods
+		TInt GetAppName( TDes& aName );
+		TInt FolderUidL( );
+	
+	public:		// public class variables
+		TBuf<64> iURI;
+	
+	private:	// private class variables
+
+		RFavouritesSession iFavouritesSess;
+
+		TBuf<32> iAppName;
+		TInt iId;
+};
+
+#endif
+
+
+
+