GH-721 Redo internal NetJob implementation.
NetJob is now using its own task queue and does not start more than 6 actions at the same time
This commit is contained in:
@ -29,7 +29,7 @@ enum JobStatus
|
||||
};
|
||||
|
||||
typedef std::shared_ptr<class NetAction> NetActionPtr;
|
||||
class NetAction : public QObject
|
||||
class NetAction : public QObject, public std::enable_shared_from_this<NetAction>
|
||||
{
|
||||
Q_OBJECT
|
||||
protected:
|
||||
@ -51,6 +51,11 @@ public:
|
||||
{
|
||||
return m_failures;
|
||||
}
|
||||
NetActionPtr getSharedPtr()
|
||||
{
|
||||
return shared_from_this();
|
||||
}
|
||||
|
||||
public:
|
||||
/// the network reply
|
||||
std::shared_ptr<QNetworkReply> m_reply;
|
||||
|
Reference in New Issue
Block a user