]> git.lyx.org Git - lyx.git/blobdiff - src/graphics/LoaderQueue.h
Add more controls to the view-source dialog.
[lyx.git] / src / graphics / LoaderQueue.h
index 52db71313e2b9b95e14f582ece38bc4f1b85e547..8f886fac91df04092aee2e86182b8423e944badf 100644 (file)
@@ -1,16 +1,16 @@
 // -*- 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:
@@ -64,10 +63,6 @@ private:
        ///
        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.
         */
@@ -78,6 +73,7 @@ private:
        void stopLoader();
 };
 
-} // namespace grfx
+} // namespace graphics
+} // namespace lyx
 
 #endif // LOADERQUEUE_H