CHTTPManager Class Reference

class CHTTPManager : public CBase

A singleton manager for HTTP Client. The purpose of this class is to ensure that only a single instance of a string pool is used throughout HTTP - necessary to ensure that string comparisons in requests and responses succeed. The singleton pattern is achieved by caching a pointer to the manager object in DLL's Thread-Local Storage.

Inherits from

Constructor & Destructor Documentation

CHTTPManager()

CHTTPManager()[private, inline]

Constructor

~CHTTPManager()

~CHTTPManager()[private]

Destructor

Member Functions Documentation

ConstructL()

voidConstructL()[private]

2 phase construction

CreateOrFindL()

CHTTPManager *CreateOrFindL()[static]

Creates the object, or returns a pointer to the existing singleton. Note that the manager has a reference count; calls to this must be matched with a call to Release()

Release()

voidRelease()

Decrements the reference count, and deletes if it is 0. (opposite of CreateOrFindL())

StringPool()

RStringPool &StringPool()[inline]

Returns the string pool

StringPool()

const RStringPool &StringPool()const [inline]

Returns the string pool

Member Data Documentation

RStringPool iPool

RStringPool iPool[private]

The string pool

TUint iUseCount

TUint iUseCount[private]

The reference count