epoc32/include/mw/cmessageaddress.h
author William Roberts <williamr@symbian.org>
Tue, 16 Mar 2010 16:12:26 +0000
branchSymbian2
changeset 2 2fe1408b6811
parent 1 666f914201fb
child 4 837f303aceeb
permissions -rw-r--r--
Final list of Symbian^2 public API header files
williamr@2
     1
/*
williamr@2
     2
* Copyright (c) 2002-2006 Nokia Corporation and/or its subsidiary(-ies).
williamr@2
     3
* All rights reserved.
williamr@2
     4
* This component and the accompanying materials are made available
williamr@2
     5
* under the terms of the License "Symbian Foundation License v1.0" to Symbian Foundation members and "Symbian Foundation End User License Agreement v1.0" to non-members
williamr@2
     6
* which accompanies this distribution, and is available
williamr@2
     7
* at the URL "http://www.symbianfoundation.org/legal/licencesv10.html".
williamr@2
     8
*
williamr@2
     9
* Initial Contributors:
williamr@2
    10
* Nokia Corporation - initial contribution.
williamr@2
    11
*
williamr@2
    12
* Contributors:
williamr@2
    13
*
williamr@2
    14
* Description:   Encapsulates message real addressa and alias
williamr@2
    15
*
williamr@2
    16
*/
williamr@2
    17
williamr@2
    18
williamr@2
    19
williamr@2
    20
#ifndef C_MESSAGEADDRESS_H
williamr@2
    21
#define C_MESSAGEADDRESS_H
williamr@2
    22
williamr@2
    23
#include <e32Base.h>
williamr@2
    24
williamr@2
    25
class CMessageAddressImpl;
williamr@2
    26
class RWriteStream;
williamr@2
    27
class RReadStream;
williamr@2
    28
williamr@2
    29
/**
williamr@2
    30
 *  Encapsulates message recipient real address and alias.
williamr@2
    31
 *
williamr@2
    32
 *  @lib sendui
williamr@2
    33
 *  @since S60 v3.0
williamr@2
    34
 */
williamr@2
    35
class CMessageAddress : public CBase
williamr@2
    36
{
williamr@2
    37
public:  // Constructors and destructor
williamr@2
    38
williamr@2
    39
    /**
williamr@2
    40
    * Two-phased constructor.
williamr@2
    41
    */
williamr@2
    42
    IMPORT_C static CMessageAddress* NewL();
williamr@2
    43
    
williamr@2
    44
    /**
williamr@2
    45
    * Two-phased constructor. Leaves object to cleanup stack.
williamr@2
    46
    */
williamr@2
    47
    IMPORT_C static CMessageAddress* NewLC();
williamr@2
    48
    
williamr@2
    49
    /**
williamr@2
    50
    * Destructor.
williamr@2
    51
    */
williamr@2
    52
    IMPORT_C virtual ~CMessageAddress();
williamr@2
    53
williamr@2
    54
public: // New functions
williamr@2
    55
williamr@2
    56
   /**
williamr@2
    57
    * Sets real address.
williamr@2
    58
    *
williamr@2
    59
    * @since Series 60 3.0
williamr@2
    60
    * @param aAddress Real address.
williamr@2
    61
    * @return None.
williamr@2
    62
    */
williamr@2
    63
    IMPORT_C void SetAddressL( const TDesC& aAddress );
williamr@2
    64
williamr@2
    65
   /**
williamr@2
    66
    * Returns real address.
williamr@2
    67
    *
williamr@2
    68
    * @since Series 60 3.0
williamr@2
    69
    * @return Real address.
williamr@2
    70
    */
williamr@2
    71
    IMPORT_C const TPtrC Address() const;
williamr@2
    72
williamr@2
    73
    /**
williamr@2
    74
    * Sets alias for the real address.
williamr@2
    75
    *
williamr@2
    76
    * @since Series 60 3.0
williamr@2
    77
    * @param aAlias Alias for the real address.
williamr@2
    78
    * @return None.
williamr@2
    79
    */
williamr@2
    80
    IMPORT_C void SetAliasL( const TDesC& aAlias );
williamr@2
    81
williamr@2
    82
   /**
williamr@2
    83
    * Returns alias for the address.
williamr@2
    84
    *
williamr@2
    85
    * @since Series 60 3.0
williamr@2
    86
    * @return Alias for the real address.
williamr@2
    87
    */
williamr@2
    88
    IMPORT_C const TPtrC Alias() const;
williamr@2
    89
williamr@2
    90
    /**
williamr@2
    91
    * Externalizes address data to a stream
williamr@2
    92
    *
williamr@2
    93
    * @since Series 60 3.2
williamr@2
    94
    * @param aStream Destination stream
williamr@2
    95
    * @return None.
williamr@2
    96
    */ 
williamr@2
    97
    IMPORT_C void ExternalizeL( RWriteStream& aStream );
williamr@2
    98
    
williamr@2
    99
    /**
williamr@2
   100
    * Internalizes message data from a stream
williamr@2
   101
    *
williamr@2
   102
    * @since Series 60 3.2
williamr@2
   103
    * @param Source stream
williamr@2
   104
    * @return None.
williamr@2
   105
    */ 
williamr@2
   106
    IMPORT_C void InternalizeL( RReadStream& aStream );
williamr@2
   107
williamr@2
   108
private:
williamr@2
   109
    
williamr@2
   110
    /**
williamr@2
   111
    * C++ default constructor.
williamr@2
   112
    */
williamr@2
   113
    CMessageAddress();
williamr@2
   114
    
williamr@2
   115
    /**
williamr@2
   116
    * Symbian 2nd phase constructor.
williamr@2
   117
    */
williamr@2
   118
    void ConstructL();
williamr@2
   119
williamr@2
   120
private:  // Data
williamr@2
   121
williamr@2
   122
    /**
williamr@2
   123
     * Message address implementation.
williamr@2
   124
     * Own.
williamr@2
   125
     */
williamr@2
   126
    CMessageAddressImpl* iMessageAddressImpl;
williamr@2
   127
    };
williamr@2
   128
williamr@2
   129
/**  Address array */
williamr@2
   130
   
williamr@2
   131
typedef CArrayPtrFlat<CMessageAddress> CMessageAddressArray;
williamr@2
   132
williamr@2
   133
#endif      // C_MESSAGEADDRESS_H
williamr@2
   134
williamr@2
   135
// End of File