]> git.lyx.org Git - lyx.git/blobdiff - src/graphics/GraphicsCacheItem.h
Fix for crash/segfault introduced with [244de5d2/lyxgit], thanks Guillame.
[lyx.git] / src / graphics / GraphicsCacheItem.h
index 34dad4b26559c602cd4d0b3ad9a8da43a41cdd31..9cee2b872e61524d67baf57f2d7c146628cff78c 100644 (file)
@@ -30,7 +30,7 @@
 
 #include "GraphicsTypes.h"
 
-#include <boost/signal.hpp>
+#include <boost/signals2.hpp>
 
 
 namespace lyx {
@@ -46,13 +46,16 @@ class Converter;
 class CacheItem {
 public:
        ///
-       CacheItem(support::FileName const & file);
+       CacheItem(support::FileName const & file, support::FileName const & doc_file);
        /// Needed for the pimpl
        ~CacheItem();
 
        ///
        support::FileName const & filename() const;
 
+       /// Try to load a display format.
+       bool tryDisplayFormat() const;
+
        /// It's in the cache. Now start the loading process.
        void startLoading() const;
 
@@ -63,11 +66,8 @@ public:
        void startMonitoring() const;
        ///
        bool monitoring() const;
-       /** Returns the check sum 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.
@@ -82,10 +82,9 @@ public:
        /** Connect and you'll be informed when the loading status of the image
         *  changes.
         */
-       typedef boost::signal<void()> sig_type;
-       typedef sig_type::slot_type slot_type;
+       typedef boost::signals2::signal<void()>::slot_type slot_type;
        ///
-       boost::signals::connection connect(slot_type const &) const;
+       boost::signals2::connection connect(slot_type const &) const;
 
 private:
        /// noncopyable