BMailComponent: made a few methods const.
This commit is contained in:
@@ -56,9 +56,9 @@ class BMailComponent {
|
|||||||
const char *key, BMessage *structured_header,
|
const char *key, BMessage *structured_header,
|
||||||
bool replace_existing = true);
|
bool replace_existing = true);
|
||||||
|
|
||||||
const char *HeaderAt(int32 index);
|
const char *HeaderAt(int32 index) const;
|
||||||
const char *HeaderField(const char *key, int32 index = 0);
|
const char *HeaderField(const char *key, int32 index = 0) const;
|
||||||
status_t HeaderField(const char *key, BMessage *structured_header, int32 index = 0);
|
status_t HeaderField(const char *key, BMessage *structured_header, int32 index = 0) const;
|
||||||
|
|
||||||
status_t RemoveHeader(const char *key);
|
status_t RemoveHeader(const char *key);
|
||||||
|
|
||||||
|
|||||||
@@ -186,7 +186,7 @@ BMailComponent::SetHeaderField(const char* key, BMessage* structure,
|
|||||||
|
|
||||||
|
|
||||||
const char*
|
const char*
|
||||||
BMailComponent::HeaderField(const char* key, int32 index)
|
BMailComponent::HeaderField(const char* key, int32 index) const
|
||||||
{
|
{
|
||||||
const char* string = NULL;
|
const char* string = NULL;
|
||||||
|
|
||||||
@@ -196,7 +196,8 @@ BMailComponent::HeaderField(const char* key, int32 index)
|
|||||||
|
|
||||||
|
|
||||||
status_t
|
status_t
|
||||||
BMailComponent::HeaderField(const char* key, BMessage* structure, int32 index)
|
BMailComponent::HeaderField(const char* key, BMessage* structure,
|
||||||
|
int32 index) const
|
||||||
{
|
{
|
||||||
BString string = HeaderField(key, index);
|
BString string = HeaderField(key, index);
|
||||||
if (string == "")
|
if (string == "")
|
||||||
@@ -265,7 +266,7 @@ BMailComponent::RemoveHeader(const char* key)
|
|||||||
|
|
||||||
|
|
||||||
const char*
|
const char*
|
||||||
BMailComponent::HeaderAt(int32 index)
|
BMailComponent::HeaderAt(int32 index) const
|
||||||
{
|
{
|
||||||
#if defined(HAIKU_TARGET_PLATFORM_DANO)
|
#if defined(HAIKU_TARGET_PLATFORM_DANO)
|
||||||
const
|
const
|
||||||
@@ -503,7 +504,7 @@ status_t
|
|||||||
BTextMailComponent::GetDecodedData(BPositionIO* data)
|
BTextMailComponent::GetDecodedData(BPositionIO* data)
|
||||||
{
|
{
|
||||||
ParseRaw();
|
ParseRaw();
|
||||||
|
|
||||||
if (data == NULL)
|
if (data == NULL)
|
||||||
return B_IO_ERROR;
|
return B_IO_ERROR;
|
||||||
|
|
||||||
@@ -657,7 +658,7 @@ BTextMailComponent::RenderToRFC822(BPositionIO* render_to)
|
|||||||
status_t status = ParseRaw();
|
status_t status = ParseRaw();
|
||||||
if (status < B_OK)
|
if (status < B_OK)
|
||||||
return status;
|
return status;
|
||||||
|
|
||||||
BMimeType type;
|
BMimeType type;
|
||||||
MIMEType(&type);
|
MIMEType(&type);
|
||||||
BString content_type;
|
BString content_type;
|
||||||
|
|||||||
Reference in New Issue
Block a user