Lines Matching defs:file
35 TemporaryFile(BFile& file)
37 fFile(file),
332 /*! Stores the given \a stream into a temporary file using the provided
333 BFile object. A new file will be created, and the \a ref object will
334 point to it. The file will remain open when this method exits without
342 size_t& length, entry_ref& ref, BFile& file)
349 TemporaryFile temporaryFile(file);
354 status = _WriteStream(file, stream, length);
363 message has been fetched. This method also closes the \a file passed in.
366 IMAPFolder::MessageStored(entry_ref& ref, BFile& file, uint32 fetchFlags,
369 _WriteUniqueIDValidity(file);
370 _WriteUniqueID(file, uid);
372 _WriteFlags(file, flags);
377 fProtocol.MessageStored(*this, ref, file, fetchFlags, attributes);
378 file.Unset();
429 /*! Appends the given \a stream as body to the message file for the
430 specified unique ID. The file will remain open when this method exits
438 entry_ref& ref, BFile& file)
444 status = file.SetTo(&ref, B_OPEN_AT_END | B_WRITE_ONLY);
451 return _WriteStream(file, stream, length);
456 This method also closes the \a file passed in.
459 IMAPFolder::BodyStored(entry_ref& ref, BFile& file, uint32 uid)
462 fProtocol.MessageStored(*this, ref, file, IMAP::kFetchBody, attributes);
463 file.Unset();
535 // TODO: add file to mailbox
779 IMAPFolder::_WriteStream(BFile& file, BDataIO& stream, size_t& length) const
792 ssize_t bytesWritten = file.Write(buffer, bytesRead);