webengine/osswebengine/WebCore/platform/network/symbian/CookieHandler.h
branchRCL_3
changeset 94 919f36ff910f
parent 93 79859ed3eea9
--- a/webengine/osswebengine/WebCore/platform/network/symbian/CookieHandler.h	Tue Aug 31 16:17:46 2010 +0300
+++ b/webengine/osswebengine/WebCore/platform/network/symbian/CookieHandler.h	Wed Sep 01 12:28:30 2010 +0100
@@ -21,6 +21,7 @@
 
 // System includes
 #include <e32base.h>
+#include <stringpool.h> 
 
 // CONSTANTS
 
@@ -33,7 +34,7 @@
 // FUNCTION PROTOTYPES
 
 // FORWARD DECLARATIONS
-class RStringPool;
+//class RStringPool;
 class CCookie;
 class RStringF;
 class RCookieManager;
@@ -67,7 +68,7 @@
         * Creates a new object.
         * @return The constructed session.
         */
-        static CookieHandler* init();
+        static CookieHandler* init(RStringPool aStringPool);
 
         /**
         * adds cookie ,
@@ -87,12 +88,13 @@
         * Destructor.
         */
         virtual ~CookieHandler();
-
+        void destroy();
+        inline RCookieManager* cookieManager(){return m_cookieManager;}
     private :    // constructors
         /**
         * Constructor.
         */
-        CookieHandler( );
+        CookieHandler( RStringPool aStringPool);
 
         /**
         * ConstructL.
@@ -161,8 +163,9 @@
         */
         void parseCookieFieldsL( const TPtrC& aCookieString,
                                  CookieRecord& aCookieRecord) const;
+                                 
     private :    // data members
-        RStringPool* m_stringPool ;// <<has
+        RStringPool m_stringPool ;// <<has
         RPointerArray<CCookie> m_getCookies;// <<has
         RCookieManager* m_cookieManager; // NOTE: should not use pointers to r-class, but RCookieManager
                     // class doesn't provide a default constructor, too bad :(