messagingfw/sendas/test/sendastestmtm/inc/csendastestaddress.h
changeset 0 8e480a14352b
equal deleted inserted replaced
-1:000000000000 0:8e480a14352b
       
     1 // Copyright (c) 2004-2009 Nokia Corporation and/or its subsidiary(-ies).
       
     2 // All rights reserved.
       
     3 // This component and the accompanying materials are made available
       
     4 // under the terms of "Eclipse Public License v1.0"
       
     5 // which accompanies this distribution, and is available
       
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     7 //
       
     8 // Initial Contributors:
       
     9 // Nokia Corporation - initial contribution.
       
    10 //
       
    11 // Contributors:
       
    12 //
       
    13 // Description:
       
    14 //
       
    15 
       
    16 #ifndef __CSENDASTESTADDRESS_H__
       
    17 #define __CSENDASTESTADDRESS_H__
       
    18 
       
    19 #include <e32base.h>
       
    20 
       
    21 #include "csendastestmessage.h"
       
    22 
       
    23 class CSendAsTestAddress : public CBase
       
    24 	{
       
    25 public:
       
    26 	IMPORT_C static CSendAsTestAddress* NewL();
       
    27 	IMPORT_C virtual ~CSendAsTestAddress();
       
    28 	
       
    29 	void InternalizeL(RReadStream& aStream);
       
    30 	void ExternalizeL(RWriteStream& aStream) const;
       
    31 
       
    32 	IMPORT_C const TDesC& Address() const;
       
    33 	IMPORT_C void SetAddressL(const TDesC& aAddress);
       
    34 
       
    35 	IMPORT_C const TDesC& Alias() const;
       
    36 	IMPORT_C void SetAliasL(const TDesC& aAlias);	
       
    37 	
       
    38 	IMPORT_C CSendAsTestMessage::TSendAsTestAddressType AddressType() const;
       
    39 	IMPORT_C void SetAddressType(CSendAsTestMessage::TSendAsTestAddressType aAddressType);
       
    40 private:
       
    41 	CSendAsTestAddress();
       
    42 private:
       
    43 	HBufC*		iAddress;
       
    44 	HBufC*		iAlias;
       
    45 	CSendAsTestMessage::TSendAsTestAddressType iAddressType;
       
    46 	};
       
    47 
       
    48 #endif	//  __CSENDASTESTADDRESS_H__