webengine/osswebengine/WebCore/platform/network/symbian/CookieHandler.h
branchRCL_3
changeset 40 8bfb9186a8b8
parent 0 dd21522fd290
child 47 e1bea15f9a39
equal deleted inserted replaced
38:4917f9bf7995 40:8bfb9186a8b8
    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();
       
    91         void destroy();
    90 
    92 
    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