Lines Matching defs:file

144 	// Find and read settings file.
267 BNode file(&ref);
270 if (file.InitCheck() == B_OK)
271 file.ReadAttrString(B_MAIL_ATTR_TO, &string);
602 BFile file;
618 file.SetTo(&ref, O_RDONLY);
619 if (file.InitCheck() == B_NO_ERROR) {
620 BNodeInfo node(&file);
627 /* Got a People contact info file, see if it has an Email address. */
633 if (file.GetAttrInfo("META:email", &info) == B_NO_ERROR) {
635 file.ReadAttr("META:email", B_STRING_TYPE, 0, attrib, info.size);
643 if (file.GetAttrInfo("META:name", &info) == B_NO_ERROR) {
645 file.ReadAttr("META:name", B_STRING_TYPE, 0, attrib, info.size);
671 } /* end of else(file.InitCheck() == B_NO_ERROR */
834 BFile file;
835 status = file.SetTo(path.Path(), B_READ_ONLY);
839 file.Read(&fMailWindowFrame, sizeof(BRect));
840 // file.Read(&level, sizeof(level));
845 file.Read(&fontFamily, sizeof(font_family));
846 file.Read(&fontStyle, sizeof(font_style));
847 file.Read(&size, sizeof(float));
854 file.Read(&fSignatureWindowFrame, sizeof(BRect));
855 file.Seek(1, SEEK_CUR); // ignore (bool) show header
856 file.Read(&fWrapMode, sizeof(bool));
857 file.Read(&fPrefsWindowPos, sizeof(BPoint));
860 if (file.Read(&length, sizeof(int32)) < (ssize_t)sizeof(int32))
871 file.Read(fSignature, length);
874 file.Read(&fMailCharacterSet, sizeof(int32));
880 if (file.Read(&length, sizeof(int32)) == (ssize_t)sizeof(int32)) {
885 file.Read(findString, length);
890 if (file.Read(&fShowToolBar, sizeof(uint8)) < (ssize_t)sizeof(uint8))
892 if (file.Read(&fUseAccountFrom, sizeof(int32)) < (ssize_t)sizeof(int32)
896 if (file.Read(&fColoredQuotes, sizeof(bool)) < (ssize_t)sizeof(bool))
899 if (file.Read(&length, sizeof(int32)) == (ssize_t)sizeof(int32)) {
905 file.Read(fReplyPreamble, length);
909 file.Read(&fAttachAttributes, sizeof(bool));
910 file.Read(&fWarnAboutUnencodableCharacters, sizeof(bool));
933 BFile file;
934 status = file.SetTo(path.Path(), B_READ_WRITE | B_CREATE_FILE | B_ERASE_FILE);
970 status = settings.Flatten(&file);
972 // replace original settings file
994 BFile file;
995 status = file.SetTo(path.Path(), B_READ_ONLY);
1000 status = settings.Unflatten(&file);
1132 BFile file;
1133 if (!resend && ref && file.SetTo(ref, O_RDONLY) == B_OK) {
1135 if (file.ReadAttrString(B_MAIL_ATTR_NAME, &name) == B_OK) {
1138 if (file.ReadAttrString(B_MAIL_ATTR_SUBJECT, &subject) == B_OK)