Lines Matching refs:file
28 /*! No attributes or awareness of the file system at large
67 BSimpleMailAttachment::BSimpleMailAttachment(BFile *file, bool deleteWhenDone)
74 SetTo(file, deleteWhenDone);
105 BSimpleMailAttachment::SetTo(BFile *file, bool deleteFileWhenDone)
109 BNodeInfo nodeInfo(file);
114 // TODO: No way to get file name (see SetTo(entry_ref *))
118 SetDecodedDataAndDeleteWhenDone(file);
120 SetDecodedData(file);
129 BFile *file = new BFile(ref, B_READ_ONLY);
130 if ((fStatus = file->InitCheck()) < B_OK) {
131 delete file;
135 if (SetTo(file, true) != B_OK)
188 // Request that the file name header be encoded in UTF-8 if it has weird
447 BAttributedMailAttachment::BAttributedMailAttachment(BFile *file,
454 SetTo(file, deleteWhenDone);
504 BAttributedMailAttachment::SetTo(BFile *file, bool deleteFileWhenDone)
506 if (file == NULL)
512 _attributes << *file;
514 if ((fStatus = _data->SetTo(file, deleteFileWhenDone)) < B_OK)
522 boundary << "BFile--" << ((long)file ^ time(NULL)) << "-"
523 << ~((long)file ^ (long)&fStatus ^ (long)&_attributes) << "--";
585 BFile file(path.String(), B_READ_WRITE | B_CREATE_FILE);
586 (BNode&)file << _attributes;
587 _data->GetDecodedData(&file);
588 file.Sync();