/* */ #ifndef _D_SIGNATURE_H_ #define _D_SIGNATURE_H_ #include "common.h" #include #include "SharedHandle.h" namespace aria2 { class Signature { private: std::string _type; std::string _file; std::string _body; public: Signature(); ~Signature(); void setType(const std::string& type); const std::string& getType() const { return _type; } void setFile(const std::string& file); const std::string& getFile() const { return _file; } void setBody(const std::string& body); const std::string& getBody() const { return _body; } bool save(const std::string& filepath) const; }; } // namespace aria2 #endif // _D_SIGNATURE_H_