|
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 #ifndef EMBEDDEDLINKAPP_H |
|
18 #define EMBEDDEDLINKAPP_H |
|
19 #include "EmbeddedLinkHandler.h" |
|
20 #include <f32file.h> |
|
21 #include <favouritesitem.h> |
|
22 #include <favouritesitemlist.h> |
|
23 |
|
24 class CEmbeddedLinkApp : public CBase |
|
25 { |
|
26 public: // public standard methods |
|
27 static CEmbeddedLinkApp* NewL( TInt aId ); |
|
28 static CEmbeddedLinkApp* NewLC( TInt aId ); |
|
29 virtual ~CEmbeddedLinkApp(); |
|
30 private: // private standard methods |
|
31 void ConstructL( TInt aId ); |
|
32 |
|
33 |
|
34 public: // public methods |
|
35 TInt AddLinkL( TDesC& aName, TDesC& aUrl, const TDesC& aUsername=KNullDesC, |
|
36 const TDesC& aPassword=KNullDesC, TInt aApId=KErrNotFound ); |
|
37 |
|
38 TInt GetLinkL( TInt aUid, CFavouritesItem& aFavItem ); |
|
39 TInt GetLinksL( CFavouritesItemList& aFavItemList ); |
|
40 TPtrC GetURI(); |
|
41 TInt SetURI( const TDesC& aURI ); |
|
42 TInt RemoveLinkL( TInt aUid ); |
|
43 TInt UpdateNameL( const TDesC& aName, TInt aUid ); |
|
44 TInt UpdateUrlL( const TDesC& aUrl, TInt aUid ); |
|
45 TInt UpdateUserNameL( const TDesC& aUserName, const TInt aUid ); |
|
46 TInt UpdatePasswordL( const TDesC& aPassword, const TInt aUid ); |
|
47 TInt UpdateWapApL( const TDesC& aWapAp, const TInt aUid ); |
|
48 TInt GetLinkUidL( TDesC& aName, TDesC& aAddress, TInt folderUid, TInt& aUid ); |
|
49 |
|
50 TInt AppId() const; |
|
51 TPtrC AppName() const; |
|
52 |
|
53 private: // private methods |
|
54 TInt GetAppName( TDes& aName ); |
|
55 TInt FolderUidL( ); |
|
56 |
|
57 public: // public class variables |
|
58 TBuf<64> iURI; |
|
59 |
|
60 private: // private class variables |
|
61 |
|
62 RFavouritesSession iFavouritesSess; |
|
63 |
|
64 TBuf<32> iAppName; |
|
65 TInt iId; |
|
66 }; |
|
67 |
|
68 #endif |
|
69 |
|
70 |
|
71 |
|
72 |