#ifndef GRAPHICSIMAGE_H
#define GRAPHICSIMAGE_H
+#include <boost/function.hpp>
#include <boost/shared_ptr.hpp>
-#include <boost/function/function0.hpp>
-#include <boost/signals/signal1.hpp>
+#include <boost/signal.hpp>
#include <vector>
#include <utility>
*/
typedef boost::shared_ptr<Image> ImagePtr;
///
- static boost::function0<ImagePtr> newImage;
+ static boost::function<ImagePtr()> newImage;
- /// Return the list of loadable formats.
- typedef std::vector<std::string> FormatList;
///
- static boost::function0<FormatList> loadableFormats;
+ typedef std::vector<std::string> FormatList;
+ /// Return the list of loadable formats.
+ static boost::function<FormatList()> loadableFormats;
///
virtual ~Image() {}
bool isDrawable() const;
/** At the end of the loading process inform the outside world
- * by emitting a signal.
+ * by emitting a signal
*/
- typedef boost::signal1<void, bool> SignalType;
+ typedef boost::signal<void(bool)> SignalType;
///
SignalType finishedLoading;