blob: c32b31d0c1aa0775f3ffa230236ff755b6149d08 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
|
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
#include "nsMsgAttachmentData.h"
NS_IMPL_ISUPPORTS(nsMsgAttachmentData, nsIMsgAttachmentData)
nsMsgAttachmentData::nsMsgAttachmentData()
: m_size(0),
m_sizeExternalStr("-1"),
m_isExternalAttachment(false),
m_isExternalLinkAttachment(false),
m_isDownloaded(false),
m_hasFilename(false),
m_displayableInline(false) {}
nsMsgAttachmentData::~nsMsgAttachmentData() {}
NS_IMETHODIMP nsMsgAttachmentData::GetUrl(nsIURI** aUrl) {
NS_ENSURE_ARG_POINTER(aUrl);
NS_IF_ADDREF(*aUrl = m_url);
return NS_OK;
}
NS_IMETHODIMP nsMsgAttachmentData::SetUrl(nsIURI* aUrl) {
m_url = aUrl;
return NS_OK;
}
NS_IMETHODIMP nsMsgAttachmentData::GetDesiredType(nsACString& aDesiredType) {
aDesiredType = m_desiredType;
return NS_OK;
}
NS_IMETHODIMP nsMsgAttachmentData::SetDesiredType(
const nsACString& aDesiredType) {
m_desiredType = aDesiredType;
return NS_OK;
}
NS_IMETHODIMP nsMsgAttachmentData::GetRealType(nsACString& aRealType) {
aRealType = m_realType;
return NS_OK;
}
NS_IMETHODIMP nsMsgAttachmentData::SetRealType(const nsACString& aRealType) {
m_realType = aRealType;
return NS_OK;
}
NS_IMETHODIMP nsMsgAttachmentData::GetRealEncoding(nsACString& aRealEncoding) {
aRealEncoding = m_realEncoding;
return NS_OK;
}
NS_IMETHODIMP nsMsgAttachmentData::SetRealEncoding(
const nsACString& aRealEncoding) {
m_realEncoding = aRealEncoding;
return NS_OK;
}
NS_IMETHODIMP nsMsgAttachmentData::GetRealName(nsACString& aRealName) {
aRealName = m_realName;
return NS_OK;
}
NS_IMETHODIMP nsMsgAttachmentData::SetRealName(const nsACString& aRealName) {
m_realName = aRealName;
return NS_OK;
}
NS_IMETHODIMP nsMsgAttachmentData::GetDescription(nsACString& aDescription) {
aDescription = m_description;
return NS_OK;
}
NS_IMETHODIMP nsMsgAttachmentData::SetDescription(
const nsACString& aDescription) {
m_description = aDescription;
return NS_OK;
}
NS_IMETHODIMP nsMsgAttachmentData::GetXMacType(nsACString& aXMacType) {
aXMacType = m_xMacType;
return NS_OK;
}
NS_IMETHODIMP nsMsgAttachmentData::SetXMacType(const nsACString& aXMacType) {
m_xMacType = aXMacType;
return NS_OK;
}
NS_IMETHODIMP nsMsgAttachmentData::GetXMacCreator(nsACString& aXMacCreator) {
aXMacCreator = m_xMacCreator;
return NS_OK;
}
NS_IMETHODIMP nsMsgAttachmentData::SetXMacCreator(
const nsACString& aXMacCreator) {
m_xMacCreator = aXMacCreator;
return NS_OK;
}
|