/* */ #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_