forked from blue/squawk
first thoughts about downloads path changing
This commit is contained in:
parent
da19eb86bb
commit
243edff8bd
11 changed files with 122 additions and 10 deletions
|
@ -26,6 +26,7 @@
|
|||
#include <QFileInfo>
|
||||
#include <QFile>
|
||||
#include <QStandardPaths>
|
||||
#include <QSettings>
|
||||
|
||||
#include <set>
|
||||
|
||||
|
@ -65,6 +66,7 @@ public slots:
|
|||
void downladFile(const QString& url);
|
||||
void registerFile(const QString& url, const QString& account, const QString& jid, const QString& id);
|
||||
void registerFile(const QString& url, const QString& path, const QString& account, const QString& jid, const QString& id);
|
||||
void moveFilesDirectory(const QString& newPath);
|
||||
|
||||
private:
|
||||
void startDownload(const std::list<Shared::MessageInfo>& msgs, const QString& url);
|
||||
|
@ -87,6 +89,7 @@ private:
|
|||
UrlStorage storage;
|
||||
std::map<QString, Transfer*> downloads;
|
||||
std::map<QString, Transfer*> uploads;
|
||||
QString currentPath;
|
||||
|
||||
struct Transfer {
|
||||
std::list<Shared::MessageInfo> messages;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue