]> git.lyx.org Git - lyx.git/blobdiff - src/graphics/GraphicsConverter.h
Rename files in src/support, step one.
[lyx.git] / src / graphics / GraphicsConverter.h
index f1b69c90a0fa331dd05adb36cc95a59fa1715da0..d69c13fceff8cb861b7cee53a8438273eb6cd26a 100644 (file)
 #ifndef GRAPHICSCONVERTER_H
 #define GRAPHICSCONVERTER_H
 
-#include <boost/signals/signal1.hpp>
 #include <boost/scoped_ptr.hpp>
+#include <boost/signal.hpp>
 #include <boost/utility.hpp>
 
 namespace lyx {
+
+namespace support { class FileName; }
+
 namespace graphics {
 
 class Converter : boost::noncopyable {
@@ -33,7 +36,7 @@ public:
        /** One Converter per conversion ensures that the (hidden) signal
         *  is always connected to the expected slot.
         */
-       Converter(std::string const & from_file,   std::string const & to_file_base,
+       Converter(support::FileName const & from_file, std::string const & to_file_base,
                  std::string const & from_format, std::string const & to_format);
 
        /// Define an empty d-tor out-of-line to keep boost::scoped_ptr happy.
@@ -46,7 +49,8 @@ public:
         *  finished.
         *  If the conversion is succesful, then the listener is passed \c true.
         */
-       typedef boost::signal1<void, bool>::slot_type slot_type;
+       typedef boost::signal<void(bool)> sig_type;
+       typedef sig_type::slot_type slot_type;
        ///
        boost::signals::connection connect(slot_type const &) const;
 
@@ -55,7 +59,7 @@ public:
         *  If conversion fails or has not been completed, however, it
         *  returns an empty string.
         */
-       std::string const & convertedFile() const;
+       support::FileName const & convertedFile() const;
 
 private:
        /// Use the Pimpl idiom to hide the internals.