messagingfw/deprecate/senduiservices/src/CMessageData.cpp
branchRCL_3
changeset 23 d51193d814ea
parent 22 d2c4c66342f3
child 24 002ade1da91c
equal deleted inserted replaced
22:d2c4c66342f3 23:d51193d814ea
     1 /*
       
     2 * Copyright (c) 2002-2006 Nokia Corporation and/or its subsidiary(-ies).
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description:   Encapsulates the message data for sending services.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 // INCLUDE FILES
       
    21 #include <e32std.h>
       
    22 #include <SendUiConsts.h>
       
    23 #include <CMessageData.h>
       
    24 #include "CMessageDataImpl.h"
       
    25 //#include "CSendUiAttachment.h"
       
    26 
       
    27 // CONSTANTS
       
    28 
       
    29 // ============================ MEMBER FUNCTIONS ===============================
       
    30 
       
    31 // -----------------------------------------------------------------------------
       
    32 // CMessageData::CMessageData
       
    33 // C++ default constructor can NOT contain any code, that
       
    34 // might leave.
       
    35 // -----------------------------------------------------------------------------
       
    36 //
       
    37 EXPORT_C CMessageData::CMessageData()
       
    38     : iDataType(KSenduiMsgDataBase)
       
    39     {
       
    40     }
       
    41 
       
    42 // -----------------------------------------------------------------------------
       
    43 // CMessageData::ConstructL
       
    44 // Symbian 2nd phase constructor can leave.
       
    45 // -----------------------------------------------------------------------------
       
    46 //
       
    47 EXPORT_C void CMessageData::ConstructL()
       
    48     {
       
    49     iMessageDataImpl = CMessageDataImpl::NewL();
       
    50     }
       
    51 
       
    52 // -----------------------------------------------------------------------------
       
    53 // CMessageData::NewL
       
    54 // Two-phased constructor.
       
    55 // -----------------------------------------------------------------------------
       
    56 //
       
    57 EXPORT_C CMessageData* CMessageData::NewL()
       
    58     {
       
    59     }
       
    60 
       
    61 // ---------------------------------------------------------
       
    62 // CMessageData::NewLC
       
    63 // Two-phased constructor.
       
    64 // ---------------------------------------------------------
       
    65 //
       
    66 EXPORT_C CMessageData* CMessageData::NewLC()
       
    67     {
       
    68     }
       
    69 
       
    70 
       
    71 // Destructor
       
    72 EXPORT_C CMessageData::~CMessageData()
       
    73     {
       
    74     }
       
    75 
       
    76 // -----------------------------------------------------------------------------
       
    77 // CMessageData::SetSubjectL
       
    78 // Set message subject.
       
    79 // (other items were commented in a header).
       
    80 // -----------------------------------------------------------------------------
       
    81 //
       
    82 EXPORT_C void CMessageData::SetSubjectL( const TDesC* aSubject )
       
    83     {
       
    84     }
       
    85 
       
    86 // -----------------------------------------------------------------------------
       
    87 // CMessageData::Subject
       
    88 // Returns message subject.
       
    89 // (other items were commented in a header).
       
    90 // -----------------------------------------------------------------------------
       
    91 //
       
    92 EXPORT_C const TPtrC CMessageData::Subject() const
       
    93     {
       
    94     }    
       
    95 
       
    96 // -----------------------------------------------------------------------------
       
    97 // CMessageData::AppendAttachmentL
       
    98 // Appends attachment file path to the array of attachment file paths.
       
    99 // (other items were commented in a header).
       
   100 // -----------------------------------------------------------------------------
       
   101 //
       
   102 EXPORT_C void CMessageData::AppendAttachmentL( const TDesC& aFileName )
       
   103     {
       
   104     }
       
   105     
       
   106 // -----------------------------------------------------------------------------
       
   107 // CMessageData::AttachmentArray
       
   108 // Returns array of attachment file paths.
       
   109 // (other items were commented in a header).
       
   110 // -----------------------------------------------------------------------------
       
   111 //
       
   112 EXPORT_C const CDesCArray& CMessageData::AttachmentArray() const
       
   113     {
       
   114     }
       
   115 
       
   116 // -----------------------------------------------------------------------------
       
   117 // CMessageData::ClearAttachmentArray
       
   118 // Clears the array of attachment file paths.
       
   119 // (other items were commented in a header).
       
   120 // -----------------------------------------------------------------------------
       
   121 //
       
   122 EXPORT_C void CMessageData::ClearAttachmentArray()
       
   123     {
       
   124     }    
       
   125 
       
   126 // -----------------------------------------------------------------------------
       
   127 // CMessageData::AppendToAddressL
       
   128 // Encapsulates address and alias to CMessageAddress and adds to array.
       
   129 // (other items were commented in a header).
       
   130 // -----------------------------------------------------------------------------
       
   131 //
       
   132 EXPORT_C void CMessageData::AppendToAddressL(
       
   133     const TDesC& aAddress,
       
   134     const TDesC& aAlias)
       
   135     {
       
   136     }
       
   137 
       
   138 // -----------------------------------------------------------------------------
       
   139 // CMessageData::ToAddressArray
       
   140 // Returns array of addresses and aliases.
       
   141 // (other items were commented in a header).
       
   142 // -----------------------------------------------------------------------------
       
   143 //
       
   144 EXPORT_C const CMessageAddressArray& CMessageData::ToAddressArray() const
       
   145     {
       
   146     }
       
   147 
       
   148 // -----------------------------------------------------------------------------
       
   149 // CMessageData::AppendCcAddressL
       
   150 // Encapsulates CC address and alias to CMessageAddress and adds to array.
       
   151 // (other items were commented in a header).
       
   152 // -----------------------------------------------------------------------------
       
   153 //
       
   154 EXPORT_C void CMessageData::AppendCcAddressL(
       
   155     const TDesC& aCcAddress,
       
   156     const TDesC& aCcAlias)
       
   157     {
       
   158     }
       
   159 
       
   160 // -----------------------------------------------------------------------------
       
   161 // CMessageData::CcAddressArray
       
   162 // Returns array of CC addresses and aliases.
       
   163 // (other items were commented in a header).
       
   164 // -----------------------------------------------------------------------------
       
   165 //
       
   166 EXPORT_C const CMessageAddressArray& CMessageData::CcAddressArray() const
       
   167     {
       
   168     }
       
   169 
       
   170 // -----------------------------------------------------------------------------
       
   171 // CMessageData::AppendBccAddressL
       
   172 // Encapsulates Bcc address and alias to CMessageAddress and adds to array.
       
   173 // (other items were commented in a header).
       
   174 // -----------------------------------------------------------------------------
       
   175 //
       
   176 EXPORT_C void CMessageData::AppendBccAddressL(
       
   177     const TDesC& aBccAddress,
       
   178     const TDesC& aBccAlias)
       
   179     {
       
   180     }
       
   181 
       
   182 // -----------------------------------------------------------------------------
       
   183 // CMessageData::BccAddressArray
       
   184 // Returns array of Bcc addresses and aliases.
       
   185 // (other items were commented in a header).
       
   186 // -----------------------------------------------------------------------------
       
   187 //
       
   188 EXPORT_C const CMessageAddressArray& CMessageData::BccAddressArray() const
       
   189     {
       
   190     }
       
   191 
       
   192 // -----------------------------------------------------------------------------
       
   193 // CMessageData::SetBodyTextL
       
   194 // Set message body text.
       
   195 // (other items were commented in a header).
       
   196 // -----------------------------------------------------------------------------
       
   197 //
       
   198 EXPORT_C void CMessageData::SetBodyTextL( const CRichText* aBodyText )
       
   199     {
       
   200     }
       
   201 
       
   202 // -----------------------------------------------------------------------------
       
   203 // CMessageData::BodyText
       
   204 // Returns message body text.
       
   205 // (other items were commented in a header).
       
   206 // -----------------------------------------------------------------------------
       
   207 //
       
   208 EXPORT_C const CRichText* CMessageData::BodyText() const
       
   209     {
       
   210     }
       
   211     
       
   212 // -----------------------------------------------------------------------------
       
   213 // CMessageData::AppendAttachmentHandleL
       
   214 // Appends attachment handle to the array of attachment handles.
       
   215 // (other items were commented in a header).
       
   216 // -----------------------------------------------------------------------------
       
   217 //
       
   218 EXPORT_C void CMessageData::AppendAttachmentHandleL( const RFile& aFileHandle )
       
   219     {
       
   220     }
       
   221 
       
   222 // -----------------------------------------------------------------------------
       
   223 // CMessageData::AttachmentHandleArray
       
   224 // Returns array of attachment handles.
       
   225 // (other items were commented in a header).
       
   226 // -----------------------------------------------------------------------------
       
   227 //
       
   228 EXPORT_C const RArray<RFile>& CMessageData::AttachmentHandleArray() const
       
   229     {
       
   230     }
       
   231 
       
   232 // -----------------------------------------------------------------------------
       
   233 // CMessageData::DataType
       
   234 // Returns data type id.
       
   235 // (other items were commented in a header).
       
   236 // -----------------------------------------------------------------------------
       
   237 //
       
   238 EXPORT_C TUid CMessageData::DataType() const
       
   239     {
       
   240     }
       
   241 
       
   242 // -----------------------------------------------------------------------------
       
   243 // CMessageData::ClearAddresses
       
   244 // Clears all addressee arrays.
       
   245 // (other items were commented in a header).
       
   246 // -----------------------------------------------------------------------------
       
   247 //
       
   248 EXPORT_C void CMessageData::ClearAddresses()
       
   249     {
       
   250     }
       
   251 
       
   252 // ---------------------------------------------------------
       
   253 // CMessageData::ExternalizeL
       
   254 //
       
   255 // ---------------------------------------------------------
       
   256 //  
       
   257 EXPORT_C void CMessageData::ExternalizeL( RWriteStream& aStream ) const
       
   258     {
       
   259     }
       
   260 
       
   261 // ---------------------------------------------------------
       
   262 // CMessageData::InternalizeL
       
   263 //
       
   264 // ---------------------------------------------------------
       
   265 //    
       
   266 EXPORT_C void CMessageData::InternalizeL( RReadStream& aStream )
       
   267     {
       
   268     }
       
   269 
       
   270 // ---------------------------------------------------------
       
   271 // CMessageData::SetOpaqueDataL
       
   272 //
       
   273 // ---------------------------------------------------------
       
   274 //  
       
   275 EXPORT_C void CMessageData::SetOpaqueDataL( const TDesC8* aData, TUid aDataType )
       
   276     {
       
   277     }
       
   278     
       
   279 // ---------------------------------------------------------
       
   280 // CMessageData::OpaqueData
       
   281 //
       
   282 // ---------------------------------------------------------
       
   283 //  
       
   284 EXPORT_C const TPtrC8 CMessageData::OpaqueData() const
       
   285     {
       
   286     }
       
   287 
       
   288 
       
   289 //  End of File