• Skip to content
  • Skip to link menu
KDE 4.2 API Reference
  • KDE API Reference
  • kdenetwork
  • Sitemap
  • Contact Us
 

kget

bt::CacheFactory

bt::CacheFactory Class Reference

#include <cachefactory.h>

Inheritance diagram for bt::CacheFactory:

Inheritance graph
[legend]

List of all members.


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 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:
  • cachefactory.h
  • cachefactory.cpp

kget

Skip menu "kget"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

kdenetwork

Skip menu "kdenetwork"
  • kget
  • kopete
  •   kopete
  •   libkopete
  •       libpapillon
  • krfb
Generated for kdenetwork by doxygen 1.5.4
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal