emailservices/emailclientapi/inc/emailtextcontent.h
branchRCL_3
changeset 63 d189ee25cf9d
parent 16 4ce476e64c59
child 64 3533d4323edc
equal deleted inserted replaced
61:dcf0eedfc1a3 63:d189ee25cf9d
     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".
    18 
    18 
    19 #ifndef EMAILTEXTCONTENT_H_
    19 #ifndef EMAILTEXTCONTENT_H_
    20 #define EMAILTEXTCONTENT_H_
    20 #define EMAILTEXTCONTENT_H_
    21 
    21 
    22 // INCLUDES
    22 // INCLUDES
    23 #include "cfsmailclient.h"
    23 #include "CFSMailClient.h"
    24 #include <memailcontent.h>
    24 #include <memailcontent.h>
    25 #include "emailapiutils.h"
    25 #include "emailapiutils.h"
    26 
    26 
    27 using namespace EmailInterface;
    27 using namespace EmailInterface;
    28 
    28 
    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     
   113     TTextType               iTextType;
   113     TTextType               iTextType;
   114     CEmailMessageContent*   iEmailMsgContent;
   114     CEmailMessageContent*   iEmailMsgContent;
   115     TDataOwner              iOwner;
   115     TDataOwner              iOwner;
   116 };
   116 };
   117 
   117 
   118 #endif /* EMAILTEXTCONTENT_H_ */
   118 #endif // EMAILTEXTCONTENT_H_
       
   119 
       
   120 // End of file
       
   121