messagingfw/senduiservices/inc/CMessageAddressImpl.inl
branchRCL_3
changeset 22 d2c4c66342f3
parent 21 e5b3a2155e1a
child 23 d51193d814ea
equal deleted inserted replaced
21:e5b3a2155e1a 22:d2c4c66342f3
     1 /*
       
     2 * Copyright (c) 2002-2004 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:   Implementation of CMessageAddress interface.
       
    15 *                Encapsulates message real address and alias.
       
    16 *
       
    17 */
       
    18 
       
    19 
       
    20 
       
    21 // ============================ MEMBER FUNCTIONS ===============================
       
    22 
       
    23 // -----------------------------------------------------------------------------
       
    24 // CMessageAddressImpl::Address
       
    25 // Returns  real address.
       
    26 // (other items were commented in a header).
       
    27 // -----------------------------------------------------------------------------
       
    28 //
       
    29 inline const TPtrC CMessageAddressImpl::Address() const
       
    30     {
       
    31     return iRealAddress ? TPtrC( *iRealAddress ) : TPtrC();
       
    32     }
       
    33 
       
    34 // -----------------------------------------------------------------------------
       
    35 // CMessageAddressImpl::Alias
       
    36 // Returns the alias for the real address.
       
    37 // (other items were commented in a header).
       
    38 // -----------------------------------------------------------------------------
       
    39 //
       
    40 inline const TPtrC CMessageAddressImpl::Alias() const
       
    41     {
       
    42     return iAlias ? TPtrC( *iAlias ) : TPtrC();
       
    43     }
       
    44 
       
    45 //  End of File