equal
deleted
inserted
replaced
19 #ifndef COOKIE_HANDLER_H |
19 #ifndef COOKIE_HANDLER_H |
20 #define COOKIE_HANDLER_H |
20 #define COOKIE_HANDLER_H |
21 |
21 |
22 // System includes |
22 // System includes |
23 #include <e32base.h> |
23 #include <e32base.h> |
|
24 #include <stringpool.h> |
24 |
25 |
25 // CONSTANTS |
26 // CONSTANTS |
26 |
27 |
27 const TUint8 KMaxNumOfTypes = 30; |
28 const TUint8 KMaxNumOfTypes = 30; |
28 |
29 |
31 // DATA TYPES |
32 // DATA TYPES |
32 |
33 |
33 // FUNCTION PROTOTYPES |
34 // FUNCTION PROTOTYPES |
34 |
35 |
35 // FORWARD DECLARATIONS |
36 // FORWARD DECLARATIONS |
36 class RStringPool; |
37 //class RStringPool; |
37 class CCookie; |
38 class CCookie; |
38 class RStringF; |
39 class RStringF; |
39 class RCookieManager; |
40 class RCookieManager; |
40 // CLASS DECLARATION |
41 // CLASS DECLARATION |
41 |
42 |
65 public : // construction, destruction |
66 public : // construction, destruction |
66 /** |
67 /** |
67 * Creates a new object. |
68 * Creates a new object. |
68 * @return The constructed session. |
69 * @return The constructed session. |
69 */ |
70 */ |
70 static CookieHandler* init(); |
71 static CookieHandler* init(RStringPool aStringPool); |
71 |
72 |
72 /** |
73 /** |
73 * adds cookie , |
74 * adds cookie , |
74 * @param aUrl ,document.url |
75 * @param aUrl ,document.url |
75 * @param aCookieData,cookie buffer |
76 * @param aCookieData,cookie buffer |
85 |
86 |
86 /** |
87 /** |
87 * Destructor. |
88 * Destructor. |
88 */ |
89 */ |
89 virtual ~CookieHandler(); |
90 virtual ~CookieHandler(); |
90 |
91 void destroy(); |
|
92 inline RCookieManager* cookieManager(){return m_cookieManager;} |
91 private : // constructors |
93 private : // constructors |
92 /** |
94 /** |
93 * Constructor. |
95 * Constructor. |
94 */ |
96 */ |
95 CookieHandler( ); |
97 CookieHandler( RStringPool aStringPool); |
96 |
98 |
97 /** |
99 /** |
98 * ConstructL. |
100 * ConstructL. |
99 * @return None. |
101 * @return None. |
100 */ |
102 */ |
159 * @param aCookieString cookie buffer. |
161 * @param aCookieString cookie buffer. |
160 * @param aCookieRecord cookie fields structure. |
162 * @param aCookieRecord cookie fields structure. |
161 */ |
163 */ |
162 void parseCookieFieldsL( const TPtrC& aCookieString, |
164 void parseCookieFieldsL( const TPtrC& aCookieString, |
163 CookieRecord& aCookieRecord) const; |
165 CookieRecord& aCookieRecord) const; |
|
166 |
164 private : // data members |
167 private : // data members |
165 RStringPool* m_stringPool ;// <<has |
168 RStringPool m_stringPool ;// <<has |
166 RPointerArray<CCookie> m_getCookies;// <<has |
169 RPointerArray<CCookie> m_getCookies;// <<has |
167 RCookieManager* m_cookieManager; // NOTE: should not use pointers to r-class, but RCookieManager |
170 RCookieManager* m_cookieManager; // NOTE: should not use pointers to r-class, but RCookieManager |
168 // class doesn't provide a default constructor, too bad :( |
171 // class doesn't provide a default constructor, too bad :( |
169 }; |
172 }; |
170 |
173 |