]> git.lyx.org Git - lyx.git/blobdiff - src/graphics/GraphicsCacheItem.h
Do not redefine \jobname for previews
[lyx.git] / src / graphics / GraphicsCacheItem.h
index 289b827a4fff15f5049d232e6b278a2d2bbbaa32..a018b3931d7f871c0778eaa830a821d1326a4d53 100644 (file)
@@ -30,7 +30,7 @@
 
 #include "GraphicsTypes.h"
 
-#include <boost/signals2.hpp>
+#include "support/signals.h"
 
 
 namespace lyx {
@@ -40,13 +40,12 @@ namespace support { class FileName; }
 namespace graphics {
 
 class Image;
-class Converter;
 
 /// A graphics::Cache item holder.
 class CacheItem {
 public:
        ///
-       CacheItem(support::FileName const & file);
+       CacheItem(support::FileName const & file, support::FileName const & doc_file);
        /// Needed for the pimpl
        ~CacheItem();
 
@@ -66,11 +65,8 @@ public:
        void startMonitoring() const;
        ///
        bool monitoring() const;
-       /** Returns the check checksum of filename() so that, for example, you can
-        *  ascertain whether to output a new PostScript version of the file
-        *  for a LaTeX run.
-        */
-       unsigned long checksum() const;
+       /// perform a modification check asynchronously
+       void checkModifiedAsync() const;
 
        /** Get the image associated with filename().
         *  If the image is not yet loaded, returns 0.
@@ -85,10 +81,9 @@ public:
        /** Connect and you'll be informed when the loading status of the image
         *  changes.
         */
-       typedef boost::signals2::signal<void()> sig_type;
-       typedef sig_type::slot_type slot_type;
+       typedef signal<void()>::slot_type slot_type;
        ///
-       boost::signals2::connection connect(slot_type const &) const;
+       connection connect(slot_type const &) const;
 
 private:
        /// noncopyable