/* GPC (C) 2017-2018 Stephane Charette <stephanecharette@gmail.com>
 * $Id: SessionComponentLoader.hpp 2492 2018-03-21 06:22:15Z stephane $
 */

#pragma once


#include "GPC.hpp"


class SessionComponent;


/// Loads the @ref SessionComponent::print_job object, which can take a while if it has many images.
class SessionComponentLoader : public ThreadWithProgressWindow
{
public:

	/// Constructor.
	SessionComponentLoader(SessionComponent &sc);

	/// Destructor.
	virtual ~SessionComponentLoader(void);

	/// Inherited from ThreadWithProgressWindow.  Loads all of the images.
	virtual void run(void);

	SessionComponent &parent;
};
