#ifndef RECORDINGFORMATS_HPP #define RECORDINGFORMATS_HPP #include #include #include #include #include class RecordingFormats { public: enum Format { GIF, None }; RecordingFormats(Format f); std::function getConsumer(); std::function getFinalizer(); std::function getValidator(); QImage::Format getFormat(); static QString getExt(Format f); private: std::function consumer; std::function validator; std::function finalizer; QImage::Format iFormat; QDir tmpDir; int frame = 0; }; #endif // RECORDINGFORMATS_HPP