#include <dsmcccache.h>
The leaves are files and the intermediate nodes are directories. A directory can contain references to files or to other directories. Certain directories, known as gateways, are special and represent roots of the graph i.e. they are not themselves referred to by other directories. One of these gateways is referenced by a DownloadServerInitiate message and is the root for the particular carousel. Crucially, directories and files may be shared between directories and gateways. For example, the BBC radio channels Radio 1, Radio 2, Radio 3 and Radio 4 all share the same object carousel and differ only in the DownloadServerInitiate message.
Definition at line 87 of file dsmcccache.h.
Public Member Functions | |
| DSMCCCache (Dsmcc *) | |
| ~DSMCCCache () | |
| DSMCCCacheDir * | Srg (const DSMCCCacheReference &ref) |
| DSMCCCacheDir * | Directory (const DSMCCCacheReference &ref) |
| void | AddFileInfo (DSMCCCacheDir *dir, const BiopBinding *) |
| void | AddDirInfo (DSMCCCacheDir *dir, const BiopBinding *) |
| void | CacheFileData (const DSMCCCacheReference &ref, const QByteArray &data) |
| void | SetGateway (const DSMCCCacheReference &ref) |
| int | GetDSMObject (QStringList &objectPath, QByteArray &result) |
Public Attributes | |
| Dsmcc * | m_Dsmcc |
Protected Member Functions | |
| DSMCCCacheFile * | FindFileData (DSMCCCacheReference &ref) |
| DSMCCCacheDir * | FindDir (DSMCCCacheReference &ref) |
| DSMCCCacheDir * | FindGateway (DSMCCCacheReference &ref) |
Protected Attributes | |
| DSMCCCacheReference | m_GatewayRef |
| QMap< DSMCCCacheReference, DSMCCCacheDir * > | m_Directories |
| QMap< DSMCCCacheReference, DSMCCCacheDir * > | m_Gateways |
| QMap< DSMCCCacheReference, DSMCCCacheFile * > | m_Files |
| DSMCCCache::DSMCCCache | ( | Dsmcc * | dsmcc | ) |
Definition at line 30 of file dsmcccache.cpp.
| DSMCCCache::~DSMCCCache | ( | ) |
Definition at line 36 of file dsmcccache.cpp.
| DSMCCCacheDir * DSMCCCache::Srg | ( | const DSMCCCacheReference & | ref | ) |
| DSMCCCacheDir * DSMCCCache::Directory | ( | const DSMCCCacheReference & | ref | ) |
| void DSMCCCache::AddFileInfo | ( | DSMCCCacheDir * | dir, | |
| const BiopBinding * | pBB | |||
| ) |
| void DSMCCCache::AddDirInfo | ( | DSMCCCacheDir * | dir, | |
| const BiopBinding * | pBB | |||
| ) |
| void DSMCCCache::CacheFileData | ( | const DSMCCCacheReference & | ref, | |
| const QByteArray & | data | |||
| ) |
| void DSMCCCache::SetGateway | ( | const DSMCCCacheReference & | ref | ) |
Definition at line 321 of file dsmcccache.cpp.
Referenced by Dsmcc::ProcessDownloadServerInitiate().
| int DSMCCCache::GetDSMObject | ( | QStringList & | objectPath, | |
| QByteArray & | result | |||
| ) |
| DSMCCCacheFile * DSMCCCache::FindFileData | ( | DSMCCCacheReference & | ref | ) | [protected] |
| DSMCCCacheDir * DSMCCCache::FindDir | ( | DSMCCCacheReference & | ref | ) | [protected] |
| DSMCCCacheDir * DSMCCCache::FindGateway | ( | DSMCCCacheReference & | ref | ) | [protected] |
DSMCCCacheReference DSMCCCache::m_GatewayRef [protected] |
QMap<DSMCCCacheReference, DSMCCCacheDir*> DSMCCCache::m_Directories [protected] |
Definition at line 120 of file dsmcccache.h.
Referenced by Directory(), FindDir(), and ~DSMCCCache().
QMap<DSMCCCacheReference, DSMCCCacheDir*> DSMCCCache::m_Gateways [protected] |
QMap<DSMCCCacheReference, DSMCCCacheFile*> DSMCCCache::m_Files [protected] |
Definition at line 122 of file dsmcccache.h.
Referenced by CacheFileData(), FindFileData(), and ~DSMCCCache().
Definition at line 125 of file dsmcccache.h.
Referenced by DSMCCCache(), and BiopMessage::ProcessDir().
1.5.5