Qt 4.8
Public Functions | Protected Functions | Properties | Friends | List of all members
QNetworkAccessCache::CacheableObject Class Referenceabstract

#include <qnetworkaccesscache_p.h>

Inheritance diagram for QNetworkAccessCache::CacheableObject:
QNetworkAccessCachedFtpConnection QNetworkAccessCachedHttpConnection QNetworkAuthenticationCache

Public Functions

 CacheableObject ()
 
QByteArray cacheKey () const
 
virtual void dispose ()=0
 
virtual ~CacheableObject ()
 

Protected Functions

void setExpires (bool enable)
 
void setShareable (bool enable)
 

Properties

bool expires
 
QByteArray key
 
bool shareable
 

Friends

class QNetworkAccessCache
 

Detailed Description

Definition at line 77 of file qnetworkaccesscache_p.h.

Constructors and Destructors

◆ CacheableObject()

QNetworkAccessCache::CacheableObject::CacheableObject ( )

Definition at line 81 of file qnetworkaccesscache.cpp.

82 {
83  // leave the members uninitialized
84  // they must be initialized by the derived class's constructor
85 }

◆ ~CacheableObject()

QNetworkAccessCache::CacheableObject::~CacheableObject ( )
virtual

Definition at line 87 of file qnetworkaccesscache.cpp.

88 {
89 #if 0 //def QT_DEBUG
90  if (!key.isEmpty() && Ptr()->hasEntry(key))
91  qWarning() << "QNetworkAccessCache: object" << (void*)this << "key" << key
92  << "destroyed without being removed from cache first!";
93 #endif
94 }
Q_CORE_EXPORT void qWarning(const char *,...)
bool isEmpty() const
Returns true if the byte array has size 0; otherwise returns false.
Definition: qbytearray.h:421

Functions

◆ cacheKey()

QByteArray QNetworkAccessCache::CacheableObject::cacheKey ( ) const
inline

◆ dispose()

virtual void QNetworkAccessCache::CacheableObject::dispose ( )
pure virtual

◆ setExpires()

void QNetworkAccessCache::CacheableObject::setExpires ( bool  enable)
protected

◆ setShareable()

void QNetworkAccessCache::CacheableObject::setShareable ( bool  enable)
protected

Friends and Related Functions

◆ QNetworkAccessCache

friend class QNetworkAccessCache
friend

Definition at line 79 of file qnetworkaccesscache_p.h.

Referenced by cacheKey().

Properties

◆ expires

bool QNetworkAccessCache::CacheableObject::expires
private

Definition at line 81 of file qnetworkaccesscache_p.h.

Referenced by QNetworkAccessCache::releaseEntry().

◆ key

QByteArray QNetworkAccessCache::CacheableObject::key
private

◆ shareable

bool QNetworkAccessCache::CacheableObject::shareable
private

Definition at line 82 of file qnetworkaccesscache_p.h.

Referenced by QNetworkAccessCache::requestEntry().


The documentation for this class was generated from the following files: