/** @file * @author Edouard DUPIN * @copyright 2010, Edouard DUPIN, all right reserved * @license GPL v3 (see license file) */ #pragma once #include #include #include namespace appl { class WorkerSaveFile : public ewol::object::Worker { public: esignal::Signal<> signalSaveDone; esignal::Signal<> signalAbort; eproperty::Value propertyBufferName; eproperty::Value propertyForceSave; protected: WorkerSaveFile(); void init(); public: DECLARE_FACTORY(WorkerSaveFile); virtual ~WorkerSaveFile(); private: ememory::SharedPtr m_chooser; //! pop-up element that is open... ememory::SharedPtr m_bufferManager; //!< handle on the buffer manager public: // callback function void onCallbackSaveAsValidate(const etk::String& _value); void onCallbackCancel(); }; }