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