webengine/osswebengine/cache/inc/HttpCacheUtil.h
changeset 10 a359256acfc6
parent 1 7c90e6132015
child 11 c8a366e56285
equal deleted inserted replaced
5:10e98eab6f85 10:a359256acfc6
    43     ELogEntrySize,
    43     ELogEntrySize,
    44     ELogLookupTablePos,
    44     ELogLookupTablePos,
    45     ELogFileErrorCode
    45     ELogFileErrorCode
    46     };
    46     };
    47 
    47 
    48 const TInt KCacheVersionNumber = 1;
    48 const TInt KCacheVersionNumber = 2; // changed on-disk format
    49 //make 16 subdirectories named 0 through F for organizing cached files
    49 //make 16 subdirectories named 0 through F for organizing cached files
    50 const TUint32 KCacheSubdirCount = 16;
    50 const TUint32 KCacheSubdirCount = 16;
       
    51 // The subdirectory name is calculated in HttpCacheUtil::GenerateNameLC()
       
    52 const TUint32 KSubdirNameLength = 2;
       
    53 // The filename is calculated in HttpCacheUtil::GenerateNameLC()
       
    54 const TUint32 KFilenameLength = 8;
    51 _LIT( KHttpCacheHeaderExt, ".h" );
    55 _LIT( KHttpCacheHeaderExt, ".h" );
    52 
    56 
    53 //#define __CACHELOG__
    57 #ifdef _DEBUG
       
    58 #define __CACHELOG__
       
    59 #endif
    54 
    60 
    55 // MACROS
    61 // MACROS
    56 
    62 
    57 // DATA TYPES
    63 // DATA TYPES
    58 
    64 
   145         * @since 3.1
   151         * @since 3.1
   146         * @param
   152         * @param
   147         * @return
   153         * @return
   148         */
   154         */
   149         static TCacheLoadMethod MethodFromStr( RStringF aMethodStr, RStringPool aStrP );
   155         static TCacheLoadMethod MethodFromStr( RStringF aMethodStr, RStringPool aStrP );
   150      
   156 
   151         /**
   157         /**
   152         *
   158         *
   153         * @since 3.1
   159         * @since 3.1
   154         * @param
   160         * @param
   155         * @return
   161         * @return
   202         * @since 3.1
   208         * @since 3.1
   203         * @param
   209         * @param
   204         * @return
   210         * @return
   205         */
   211         */
   206         static void GetHeaderFileName( const TDesC& aBodyFileName, TDes& aHeaderFileName );
   212         static void GetHeaderFileName( const TDesC& aBodyFileName, TDes& aHeaderFileName );
   207         
   213 
   208         /**
   214         /**
   209         *
   215         *
   210         * @since 3.1
   216         * @since 3.1
   211         * @param
   217         * @param
   212         * @return
   218         * @return
   252         * @since 3.1
   258         * @since 3.1
   253         * @param
   259         * @param
   254         * @return
   260         * @return
   255         */
   261         */
   256         static void WriteLog( TInt aLogLevel, TPtrC aBuf, TInt aAny = 0xffff );
   262         static void WriteLog( TInt aLogLevel, TPtrC aBuf, TInt aAny = 0xffff );
       
   263 
       
   264         /**
       
   265         * expects a format string in aBuf, plus arguments...
       
   266         * @since 7.1
       
   267         * @param
       
   268         * @return
       
   269         */
       
   270         static void WriteFormatLog( TInt aLogLevel, TRefByValue<const TDesC> aBuf, ... );
   257 
   271 
   258         /**
   272         /**
   259         *
   273         *
   260         * @since 7.1
   274         * @since 7.1
   261         * @param
   275         * @param