kget
bt::CacheFactory Class Reference
#include <cachefactory.h>
Inheritance diagram for bt::CacheFactory:

Detailed Description
Factory to create Cache objects.If you want a custom Cache you need to derive from this class and implement the create method to create your own custom Caches.
Definition at line 37 of file cachefactory.h.
Public Member Functions | |
| CacheFactory () | |
| virtual Cache * | create (Torrent &tor, const QString &tmpdir, const QString &datadir)=0 |
| virtual | ~CacheFactory () |
Constructor & Destructor Documentation
| bt::CacheFactory::CacheFactory | ( | ) |
Definition at line 26 of file cachefactory.cpp.
| bt::CacheFactory::~CacheFactory | ( | ) | [virtual] |
Definition at line 31 of file cachefactory.cpp.
Member Function Documentation
| virtual Cache* bt::CacheFactory::create | ( | Torrent & | tor, | |
| const QString & | tmpdir, | |||
| const QString & | datadir | |||
| ) | [pure virtual] |
Create a custom Cache.
- Parameters:
-
tor The Torrent tmpdir The temporary directory (should be used to store information about the torrent) datadir The data directory, where to store the data
- Returns:
Implemented in BTCacheFactory.
The documentation for this class was generated from the following files:
KDE 4.2 API Reference