HuginBase::ImageCache::Request Class Reference

Request for an image to load Connect to the ready signal so when the image loads you can respond. More...

#include <ImageCache.h>

List of all members.

Public Member Functions

 Request (std::string filename, bool request_small)
bool getIsSmall () const
const std::stringgetFilename () const

Public Attributes

boost::signal< void(EntryPtr,
std::string, bool) 
ready )
 Signal that fires when the image is loaded.

Protected Attributes

std::string m_filename
bool m_isSmall


Detailed Description

Request for an image to load Connect to the ready signal so when the image loads you can respond.

Definition at line 114 of file ImageCache.h.


Constructor & Destructor Documentation

HuginBase::ImageCache::Request::Request std::string  filename,
bool  request_small
[inline]
 

Definition at line 117 of file ImageCache.h.


Member Function Documentation

const std::string& HuginBase::ImageCache::Request::getFilename  )  const [inline]
 

Definition at line 135 of file ImageCache.h.

bool HuginBase::ImageCache::Request::getIsSmall  )  const [inline]
 

Definition at line 133 of file ImageCache.h.


Member Data Documentation

std::string HuginBase::ImageCache::Request::m_filename [protected]
 

Definition at line 138 of file ImageCache.h.

bool HuginBase::ImageCache::Request::m_isSmall [protected]
 

Definition at line 139 of file ImageCache.h.

boost::signal<void(EntryPtr, std::string, bool) HuginBase::ImageCache::Request::ready)
 

Signal that fires when the image is loaded.

Function must return void and have three arguments: EntryPtr for the requested image, std::string for the filename, and a bool that is true iff this is a small image.

The image could be freed after the signal fires, but keeping the EntryPtr prevents this.

Definition at line 131 of file ImageCache.h.


The documentation for this class was generated from the following file:
Generated on Wed Jul 16 01:25:50 2014 for Hugintrunk by  doxygen 1.3.9.1