#include "GraphicsParams.h"
#include "LoaderQueue.h"
-#include "callback.h"
-
#include <boost/bind.hpp>
namespace graphics {
+typedef boost::shared_ptr<Image> ImagePtr;
+
class Loader::Impl : public boost::signals::trackable {
public:
///
*/
Cache::ItemPtr cached_item_;
/// We modify a local copy of the image once it is loaded.
- Image::ImagePtr image_;
+ ImagePtr image_;
/// This signal is emitted when the image loading status changes.
boost::signal<void()> signal_;
/// The connection of the signal StatusChanged
Loader::~Loader()
-{}
+{
+ delete pimpl_;
+}
Loader & Loader::operator=(Loader const & other)
Loader::Impl::~Impl()
{
- if (!quitting)
- resetFile(FileName());
+ resetFile(FileName());
}