1 /* |
1 /* |
2 * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). |
2 * Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies). |
3 * All rights reserved. |
3 * All rights reserved. |
4 * This component and the accompanying materials are made available |
4 * This component and the accompanying materials are made available |
5 * under the terms of "Eclipse Public License v1.0" |
5 * under the terms of "Eclipse Public License v1.0" |
6 * which accompanies this distribution, and is available |
6 * which accompanies this distribution, and is available |
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
43 const TDataOwner aOwner ); |
43 const TDataOwner aOwner ); |
44 |
44 |
45 ~CEmailTextContent(); |
45 ~CEmailTextContent(); |
46 |
46 |
47 public: // from MEmailInterface |
47 public: // from MEmailInterface |
48 virtual TEmailTypeId InterfaceId() const; |
48 TEmailTypeId InterfaceId() const; |
49 |
49 |
50 virtual void Release(); |
50 void Release(); |
51 |
51 |
52 public: // from MEmailTextContent |
52 public: // from MEmailTextContent |
53 virtual TTextType TextType() const; |
53 TTextType TextType() const; |
54 |
54 |
55 virtual void SetTextL( |
55 void SetTextL( |
56 const TTextType aPlainOrHtml, |
56 const TTextType aPlainOrHtml, |
57 const TDesC& aText ); |
57 const TDesC& aText ); |
58 |
58 |
59 public: // from MEmailMessageContent |
59 public: // from MEmailMessageContent |
60 |
60 |
61 virtual TMessageContentId Id() const; |
61 TMessageContentId Id() const; |
62 |
62 |
63 virtual TPtrC ContentType() const; |
63 TPtrC ContentType() const; |
64 |
64 |
65 virtual void SetContentType( const TDesC& aContentType ); |
65 void SetContentType( const TDesC& aContentType ); |
66 |
66 |
67 virtual TPtrC ContentId() const; |
67 TPtrC ContentId() const; |
68 |
68 |
69 virtual void SetContentId( const TDesC& aContentId ); |
69 void SetContentId( const TDesC& aContentId ); |
70 |
70 |
71 virtual TPtrC ContentDescription() const; |
71 TPtrC ContentDescription() const; |
72 |
72 |
73 virtual void SetContentDescription( const TDesC& aContentDescription ); |
73 void SetContentDescription( const TDesC& aContentDescription ); |
74 |
74 |
75 virtual TPtrC ContentDisposition() const; |
75 TPtrC ContentDisposition() const; |
76 |
76 |
77 virtual void SetContentDisposition( const TDesC& aContentDisposition ); |
77 void SetContentDisposition( const TDesC& aContentDisposition ); |
78 |
78 |
79 virtual TPtrC ContentClass() const; |
79 TPtrC ContentClass() const; |
80 |
80 |
81 virtual void SetContentClass( const TDesC& aContentClass ); |
81 void SetContentClass( const TDesC& aContentClass ); |
82 |
82 |
83 virtual TInt AvailableSize() const; |
83 TInt AvailableSize() const; |
84 |
84 |
85 virtual TInt TotalSize() const; |
85 TInt TotalSize() const; |
86 |
86 |
87 virtual TPtrC ContentL() const; |
87 TPtrC ContentL() const; |
88 |
88 |
89 virtual void SetContentL( const TDesC& aContent ); |
89 void SetContentL( const TDesC& aContent ); |
90 |
90 |
91 virtual void FetchL( MEmailFetchObserver& aObserver ); |
91 void FetchL( MEmailFetchObserver& aObserver ); |
92 |
92 |
93 virtual void CancelFetch(); |
93 void CancelFetch(); |
94 |
94 |
95 virtual void SaveToFileL( const TDesC& aPath ); |
95 void SaveToFileL( const TDesC& aPath ); |
96 |
96 |
97 virtual MEmailMultipart* AsMultipartOrNull() const; |
97 MEmailMultipart* AsMultipartOrNull() const; |
98 |
98 |
99 virtual MEmailTextContent* AsTextContentOrNull() const; |
99 MEmailTextContent* AsTextContentOrNull() const; |
100 |
100 |
101 virtual MEmailAttachment* AsAttachmentOrNull() const; |
101 MEmailAttachment* AsAttachmentOrNull() const; |
102 |
102 |
103 public: // for internal usage |
103 public: // for internal usage |
104 void SetOwner( const TDataOwner aOwner ); |
104 void SetOwner( const TDataOwner aOwner ); |
105 |
105 |
106 |
106 |