libktorrent  2.2.0
Public Member Functions | List of all members
bt::CacheFactory Class Referenceabstract

#include <cachefactory.h>

Public Member Functions

virtual Cachecreate (Torrent &tor, const QString &tmpdir, const QString &datadir)=0
 

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.

Author
Joris Guisson

Definition at line 56 of file cachefactory.h.

Member Function Documentation

◆ create()

virtual Cache* bt::CacheFactory::create ( Torrent tor,
const QString &  tmpdir,
const QString &  datadir 
)
pure virtual

Create a custom Cache

Parameters
torThe Torrent
tmpdirThe temporary directory (should be used to store information about the torrent)
datadirThe data directory, where to store the data
Returns

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