/* * Xournal++ * * A job which saves a Document * * @author Xournal++ Team * https://github.com/xournalpp/xournalpp * * @license GNU GPLv2 or later */ #pragma once #include #include #include "BlockingJob.h" #include "XournalType.h" class SaveJob: public BlockingJob { public: SaveJob(Control* control); protected: virtual ~SaveJob(); public: virtual void run(); bool save(); static void updatePreview(Control* control); protected: virtual void afterRun(); private: string lastError; };