3 * Copyright 2003 Michael Pfeiffer. All Rights Reserved.
6 #include "SpoolMetaData.h"
9 const char *kSDDescription
= "_spool/Description";
10 const char* kSDMimeType
= "_spool/MimeType";
13 SpoolMetaData::SpoolMetaData(BFile
* spool_file
)
17 if (spool_file
->ReadAttrString(kSDDescription
, &string
) == B_OK
)
18 fDescription
= string
.String();
20 if (spool_file
->ReadAttrString(kSDMimeType
, &string
) == B_OK
)
21 fMimeType
= string
.String();
23 if (spool_file
->GetCreationTime(&time
) == B_OK
)
24 fCreationTime
= ctime(&time
);
28 SpoolMetaData::~SpoolMetaData()
34 SpoolMetaData::GetDescription() const
41 SpoolMetaData::GetMimeType() const
48 SpoolMetaData::GetCreationTime() const