BEmailMessage: added missing const, Date() returns time_t.
* Added missing const to some getter methods.
* Date() now tries to parse the date of the mail, and return it as
a time_t; you can still retrieve the actual string via
HeaderField("Date") if you have to.
* Mail now shows the time in the local time zone, and with the
current locale.
This commit is contained in:
@@ -55,13 +55,13 @@ public:
|
||||
// addresses the message appropriately, but ForwardMessage()
|
||||
// leaves it unaddressed.
|
||||
|
||||
const char* To();
|
||||
const char* From();
|
||||
const char* ReplyTo();
|
||||
const char* CC();
|
||||
const char* Subject();
|
||||
const char* Date();
|
||||
int Priority();
|
||||
const char* To() const;
|
||||
const char* From() const;
|
||||
const char* ReplyTo() const;
|
||||
const char* CC() const;
|
||||
const char* Subject() const;
|
||||
time_t Date() const;
|
||||
int Priority() const;
|
||||
|
||||
void SetSubject(const char* to,
|
||||
uint32 charset = B_MAIL_NULL_CONVERSION,
|
||||
|
||||
Reference in New Issue
Block a user