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". |
38 CFSMailMessagePart* aPart); |
38 CFSMailMessagePart* aPart); |
39 |
39 |
40 ~CEmailMessageContent(); |
40 ~CEmailMessageContent(); |
41 |
41 |
42 public: // from MEmailInterface |
42 public: // from MEmailInterface |
43 virtual TEmailTypeId InterfaceId() const; |
43 TEmailTypeId InterfaceId() const; |
44 |
44 |
45 virtual void Release(); |
45 void Release(); |
46 |
46 |
47 public: // from MEmailMessageContent |
47 public: // from MEmailMessageContent |
48 virtual TMessageContentId Id() const; |
48 TMessageContentId Id() const; |
49 |
49 |
50 virtual TPtrC ContentType() const; |
50 TPtrC ContentType() const; |
51 |
51 |
52 virtual void SetContentType( const TDesC& aContentType ); |
52 void SetContentType( const TDesC& aContentType ); |
53 |
53 |
54 virtual TPtrC ContentId() const; |
54 TPtrC ContentId() const; |
55 |
55 |
56 virtual void SetContentId( const TDesC& aContentId ); |
56 void SetContentId( const TDesC& aContentId ); |
57 |
57 |
58 virtual TPtrC ContentDescription() const; |
58 TPtrC ContentDescription() const; |
59 |
59 |
60 virtual void SetContentDescription( const TDesC& aContentDescription ); |
60 void SetContentDescription( const TDesC& aContentDescription ); |
61 |
61 |
62 virtual TPtrC ContentDisposition() const; |
62 TPtrC ContentDisposition() const; |
63 |
63 |
64 virtual void SetContentDisposition( const TDesC& aContentDisposition ); |
64 void SetContentDisposition( const TDesC& aContentDisposition ); |
65 |
65 |
66 virtual TPtrC ContentClass() const; |
66 TPtrC ContentClass() const; |
67 |
67 |
68 virtual void SetContentClass( const TDesC& aContentClass ); |
68 void SetContentClass( const TDesC& aContentClass ); |
69 |
69 |
70 virtual TInt AvailableSize() const; |
70 TInt AvailableSize() const; |
71 |
71 |
72 virtual TInt TotalSize() const; |
72 TInt TotalSize() const; |
73 |
73 |
74 virtual TPtrC ContentL() const; |
74 TPtrC ContentL() const; |
75 |
75 |
76 virtual void SetContentL( const TDesC& aContent ); |
76 void SetContentL( const TDesC& aContent ); |
77 |
77 |
78 virtual void FetchL( MEmailFetchObserver& aObserver ); |
78 void FetchL( MEmailFetchObserver& aObserver ); |
79 |
79 |
80 virtual void CancelFetch(); |
80 void CancelFetch(); |
81 |
81 |
82 virtual void SaveToFileL( const TDesC& aPath ); |
82 void SaveToFileL( const TDesC& aPath ); |
83 |
83 |
84 virtual MEmailMultipart* AsMultipartOrNull() const; |
84 MEmailMultipart* AsMultipartOrNull() const; |
85 |
85 |
86 virtual MEmailTextContent* AsTextContentOrNull() const; |
86 MEmailTextContent* AsTextContentOrNull() const; |
87 |
87 |
88 virtual MEmailAttachment* AsAttachmentOrNull() const; |
88 MEmailAttachment* AsAttachmentOrNull() const; |
89 |
89 |
90 public: |
90 public: |
91 CFSMailMessagePart& Part(); |
91 CFSMailMessagePart& Part(); |
92 void SetPart( CFSMailMessagePart *aPart ); |
92 void SetPart( CFSMailMessagePart *aPart ); |
93 |
93 |