qBittorrent
|
#include <asyncfilestorage.h>
Signals | |
void | failed (const QString &fileName, const QString &errorString) |
Public Member Functions | |
AsyncFileStorage (const QString &storageFolderPath, QObject *parent=nullptr) | |
~AsyncFileStorage () override | |
void | store (const QString &fileName, const QByteArray &data) |
QDir | storageDir () const |
Private Member Functions | |
Q_INVOKABLE void | store_impl (const QString &fileName, const QByteArray &data) |
Private Attributes | |
QDir | m_storageDir |
QFile | m_lockFile |
Definition at line 43 of file asyncfilestorage.h.
|
explicit |
Definition at line 36 of file asyncfilestorage.cpp.
References m_lockFile, and m_storageDir.
|
override |
Definition at line 51 of file asyncfilestorage.cpp.
References m_lockFile.
|
signal |
Referenced by RSS::AutoDownloader::AutoDownloader(), RSS::Session::Session(), and store_impl().
QDir AsyncFileStorage::storageDir | ( | ) | const |
Definition at line 63 of file asyncfilestorage.cpp.
References m_storageDir.
Referenced by RSS::Feed::cleanup(), RSS::Feed::Feed(), RSS::AutoDownloader::load(), RSS::Feed::load(), and RSS::Session::load().
void AsyncFileStorage::store | ( | const QString & | fileName, |
const QByteArray & | data | ||
) |
Definition at line 57 of file asyncfilestorage.cpp.
References Utils::Fs::fileName(), and store_impl().
Referenced by RSS::AutoDownloader::store(), RSS::Feed::store(), and RSS::Session::store().
|
private |
Definition at line 68 of file asyncfilestorage.cpp.
References failed(), Utils::Fs::fileName(), m_storageDir, and Utils::IO::saveToFile().
Referenced by store().
|
private |
Definition at line 63 of file asyncfilestorage.h.
Referenced by AsyncFileStorage(), and ~AsyncFileStorage().
|
private |
Definition at line 62 of file asyncfilestorage.h.
Referenced by AsyncFileStorage(), storageDir(), and store_impl().