Replace prio namespace with FilePriority enum class

This commit is contained in:
Thomas Piccirello
2018-10-21 18:58:11 -04:00
parent 6bb4eb825b
commit f27dc977e9
14 changed files with 159 additions and 69 deletions

View File

@@ -29,6 +29,7 @@
#ifndef TORRENTCONTENTMODELFOLDER_H
#define TORRENTCONTENTMODELFOLDER_H
#include "base/bittorrent/filepriority.h"
#include "torrentcontentmodelitem.h"
class TorrentContentModelFolder : public TorrentContentModelItem
@@ -49,7 +50,7 @@ public:
void recalculateAvailability();
void updatePriority();
void setPriority(int newPriority, bool updateParent = true) override;
void setPriority(BitTorrent::FilePriority newPriority, bool updateParent = true) override;
void deleteAllChildren();
const QList<TorrentContentModelItem*> &children() const;