// -*- C++ -*-
/**
- * \file LoaderQueue.h
+ * \file LoaderQueue.h
* This file is part of LyX, the document processor.
* Licence details can be found in the file COPYING.
*
- * \author Alfredo Braunstein
+ * \author Alfredo Braunstein
*
- * Full author contact details are available in file CREDITS.
+ * Full author contact details are available in file CREDITS.
*
* This implements a threaded service queue which loads images on background.
* In order to request an image loading you call touch() with the pointer to
- * the cached image. Then it will try to satisfy the request as soon as
+ * the cached image. Then it will try to satisfy the request as soon as
* posible (that's it: after finishing an eventual loading on progress)
* touch() returns inmediately, in order not tu disrupt the flow of the main
* thread.
#define LOADERQUEUE_H
#include "GraphicsCache.h"
-#include "GraphicsCacheItem.h"
-
#include "frontends/Timeout.h"
#include <set>
#include <queue>
-namespace grfx {
+namespace lyx {
+namespace graphics {
class LoaderQueue {
public:
///
static int s_millisecs_ ;
- /// Moves bucket_ to cache_queue_
- void emptyBucket();
- /// Adds or reprioritizes one element in cache_queue_
- void addToQueue(Cache::ItemPtr const & item);
/** This is the 'threaded' method, that does the loading in the
* background.
*/
void stopLoader();
};
-} // namespace grfx
+} // namespace graphics
+} // namespace lyx
#endif // LOADERQUEUE_H