libktorrent  2.2.0
Public Member Functions | List of all members
bt::StatsFile Class Reference

This class is used for loading/storing torrent stats in a file. More...

#include <statsfile.h>

Public Member Functions

 StatsFile (const QString &filename)
 A constructor. Constructs StatsFile object and calls readSync().
 
bool hasKey (const QString &key) const
 
bool readBoolean (const QString &key)
 
float readFloat (const QString &key)
 
int readInt (const QString &key)
 
QString readString (const QString &key)
 
Uint64 readUint64 (const QString &key)
 
unsigned long readULong (const QString &key)
 
void sync ()
 Sync with disk.
 
void write (const QString &key, const QString &value)
 

Detailed Description

Author
Ivan Vasic ivasi.nosp@m.c@gm.nosp@m.ail.c.nosp@m.om

Definition at line 54 of file statsfile.h.

Member Function Documentation

◆ hasKey()

bool bt::StatsFile::hasKey ( const QString &  key) const

See if there is a key in the stats file

Parameters
keyThe key
Returns
true if key is in the stats file

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