- bool saveBuffer(Buffer & b, std::ostream* stream = 0);
- /// Gets a new filename and saves the buffer encrypted
- bool saveBufferEncrypted(Buffer & b);
+ bool saveBuffer(Buffer & b);
+ /// save and rename buffer to fn. If fn is empty, the buffer
+ /// is just saved as the filename it already has.
+ bool saveBuffer(Buffer & b, support::FileName const & fn);