Convert BatchQueue::cancelItems() to functional IdleRegister::add()

This commit is contained in:
Flössie
2019-01-01 17:55:36 +01:00
parent b08fb04dae
commit 732bbf1a55
3 changed files with 51 additions and 16 deletions

View File

@@ -18,12 +18,16 @@
#ifndef _BATCHQUEUE_
#define _BATCHQUEUE_
#include <set>
#include <gtkmm.h>
#include "threadutils.h"
#include "batchqueueentry.h"
#include "../rtengine/rtengine.h"
#include "options.h"
#include "batchqueueentry.h"
#include "lwbuttonset.h"
#include "options.h"
#include "threadutils.h"
#include "thumbbrowserbase.h"
class BatchQueueListener
@@ -85,7 +89,7 @@ public:
static Glib::ustring calcAutoFileNameBase (const Glib::ustring& origFileName, int sequence = 0);
static int calcMaxThumbnailHeight();
protected:
private:
int getMaxThumbnailHeight() const override;
void saveThumbnailHeight (int height) override;
int getThumbnailHeight () override;
@@ -111,6 +115,9 @@ protected:
BatchQueueListener* listener;
std::set<BatchQueueEntry*> removable_batch_queue_entries;
MyMutex mutex_removable_batch_queue_entries;
IdleRegister idle_register;
};