|
1 // Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies). |
|
2 // All rights reserved. |
|
3 // This component and the accompanying materials are made available |
|
4 // under the terms of "Eclipse Public License v1.0" |
|
5 // which accompanies this distribution, and is available |
|
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
7 // |
|
8 // Initial Contributors: |
|
9 // Nokia Corporation - initial contribution. |
|
10 // |
|
11 // Contributors: |
|
12 // |
|
13 // Description: |
|
14 // Classes for manipulating bookmarks and bookmark folders. |
|
15 // @internalComponent |
|
16 // |
|
17 // |
|
18 |
|
19 #ifndef __BKMRK_H__ |
|
20 #define __BKMRK_H__ |
|
21 |
|
22 #include "bkmrkbase.h" |
|
23 #include "bkmrkproperties.h" |
|
24 |
|
25 /** |
|
26 Internal representation of a bookmark. It contains the bookmark specific properties and holds |
|
27 a pointer to an extended properties object. This object is only loaded when needed. |
|
28 */ |
|
29 class CBookmark: public CBookmarkBase |
|
30 { |
|
31 public: |
|
32 static CBookmark* NewL(CBookmarkFolder& aParent, CBookmarkDb& aDb); |
|
33 ~CBookmark(); |
|
34 void DeleteL(); |
|
35 |
|
36 // From CBookmarkBase |
|
37 Bookmark::TType Type() const; |
|
38 |
|
39 RBkBookmark OpenBookmark(); |
|
40 |
|
41 TBool IsHomePage(); |
|
42 |
|
43 const TTime& LastVisited() const; |
|
44 void SetLastVisited(const TTime& aTime); |
|
45 void UpdateVisited(); |
|
46 |
|
47 const TDesC8& Uri() const; |
|
48 void SetUriL(const TDesC8& aUri); |
|
49 |
|
50 CBkmrkExtendedProperties& BkmrkExtendedPropertiesL(); |
|
51 |
|
52 // From MRepositoryAccessor |
|
53 TUint32 IndexBase(); |
|
54 void SetIdFromIndexBase(TUint32 aIndexBase); |
|
55 void TransSaveL(); |
|
56 void TransNewL(); |
|
57 void TransLoadL(); |
|
58 void TransRemoveL(); |
|
59 |
|
60 private: |
|
61 CBookmark(CBookmarkDb& aDb); |
|
62 |
|
63 void ConstructL(CBookmarkFolder& aParent); |
|
64 |
|
65 private: |
|
66 TTime iLastVisited; |
|
67 CUri8* iUri; |
|
68 CBkmrkExtendedProperties* iProperties; |
|
69 }; |
|
70 |
|
71 #endif //__BKMRK_H__ |