218 * @since 3.1 |
253 * @since 3.1 |
219 * @param |
254 * @param |
220 * @return |
255 * @return |
221 */ |
256 */ |
222 void Accessed(TInt64 aLastAccessed, TUint16 aRef); |
257 void Accessed(TInt64 aLastAccessed, TUint16 aRef); |
|
258 |
|
259 /** |
|
260 * |
|
261 * @since 7.1 |
|
262 * @param |
|
263 * @return |
|
264 */ |
|
265 inline TBool BodyFileDeleteNeeded() { return iBodyFileDeleteNeeded; } |
|
266 |
|
267 /** |
|
268 * |
|
269 * @since 7.1 |
|
270 * @param |
|
271 * @return |
|
272 */ |
|
273 inline void SetBodyFileDeleteNeeded( TBool aBodyFileDeleteNeeded ) |
|
274 { |
|
275 iBodyFileDeleteNeeded = aBodyFileDeleteNeeded; |
|
276 } |
|
277 |
|
278 /** |
|
279 * |
|
280 * @since 7.1 |
|
281 * @param |
|
282 * @return |
|
283 */ |
|
284 TBool CacheFilesOpened() { return iCacheFilesOpened; } |
|
285 |
|
286 /** |
|
287 * |
|
288 * @since 7.1 |
|
289 * @param |
|
290 * @return |
|
291 */ |
|
292 void SetCacheFilesOpened( TBool aCacheFilesOpened ); |
223 |
293 |
224 public : |
294 public : |
225 |
295 |
226 // support linked list |
296 // support linked list |
227 static const TInt iOffset; |
297 static const TInt iOffset; |
243 void ConstructL( const TDesC8& aUrl ); |
313 void ConstructL( const TDesC8& aUrl ); |
244 |
314 |
245 private: // Data |
315 private: // Data |
246 |
316 |
247 // |
317 // |
248 HBufC8* iUrl; // owned |
318 HBufC8* iUrl; // owned |
249 // if empty, then use url to get filename |
319 // if empty, then use url to get filename |
250 HBufC* iFileName; // owned |
320 HBufC* iFileName; // owned |
251 // |
321 // |
252 TCacheEntryState iState; |
322 TCacheEntryState iState; |
253 // |
323 // |
254 TInt64 iLastAccessed; |
324 TInt64 iLastAccessed; |
255 // ref counter |
325 // ref counter |
256 TUint16 iRef; |
326 TUint16 iRef; |
257 // content size |
327 // content size |
258 TUint iSize; |
328 TUint iBodySize; |
259 // header size |
329 // header size |
260 TUint16 iHeaderSize; |
330 TUint16 iHeaderSize; |
261 // protected content like css, script |
331 // protected content like css, script |
262 TUint8 iProtected; |
332 TUint8 iProtected; |
263 // |
333 // |
264 TSglQueLink iSlink; |
334 TSglQueLink iSqlQueLink; |
265 // |
335 // |
266 CHttpCacheEvictionHandler* iEvictionHandler; // not owned |
336 CHttpCacheEvictionHandler* iEvictionHandler; // not owned |
267 // Etrue if added to the eviction table |
337 // Etrue if added to the eviction table |
268 TUint8 iVictim; |
338 TUint8 iEvictionCandidate; |
|
339 // |
|
340 TBool iBodyFileDeleteNeeded; |
|
341 // |
|
342 RFile iHeaderFile; // owned |
|
343 // |
|
344 RFile iBodyFile; // owned |
|
345 // |
|
346 HBufC8* iCacheBuffer; // owned |
|
347 // ETrue if files open (and attached to StreamHandler) for read/write |
|
348 TBool iCacheFilesOpened; |
269 }; |
349 }; |
270 |
350 |
271 #endif // CHTTPCACHEENTRY_H |
351 #endif // CHTTPCACHEENTRY_H |
272 |
352 |
273 // End of File |
353 // End of File |