cmessageaddress.h

Go to the documentation of this file.
00001 /*
00002 * ============================================================================
00003 *  Name        : CMessageAddress.h
00004 *  Part of     : SendUi
00005 *  Description : Encapsulates message real addressa and alias
00006 *  Version     : %version: % << Don't touch! Updated by Synergy at check-out.
00007 *
00008 *  Copyright © 2002-2006 Nokia.  All rights reserved.
00009 *  This material, including documentation and any related computer
00010 *  programs, is protected by copyright controlled by Nokia.  All
00011 *  rights are reserved.  Copying, including reproducing, storing,
00012 *  adapting or translating, any or all of this material requires the
00013 *  prior written consent of Nokia.  This material also contains
00014 *  confidential information which may not be disclosed to others
00015 *  without the prior written consent of Nokia.
00016 * ============================================================================
00017 * Template version: 4.1
00018 */
00019 
00020 #ifndef C_MESSAGEADDRESS_H
00021 #define C_MESSAGEADDRESS_H
00022 
00023 #include <e32Base.h>
00024 
00025 class CMessageAddressImpl;
00026 class RWriteStream;
00027 class RReadStream;
00028 
00035 class CMessageAddress : public CBase
00036 {
00037 public:  // Constructors and destructor
00038 
00042     IMPORT_C static CMessageAddress* NewL();
00043     
00047     IMPORT_C static CMessageAddress* NewLC();
00048     
00052     IMPORT_C virtual ~CMessageAddress();
00053 
00054 public: // New functions
00055 
00063     IMPORT_C void SetAddressL( const TDesC& aAddress );
00064 
00071     IMPORT_C const TPtrC Address() const;
00072 
00080     IMPORT_C void SetAliasL( const TDesC& aAlias );
00081 
00088     IMPORT_C const TPtrC Alias() const;
00089 
00097     IMPORT_C void ExternalizeL( RWriteStream& aStream );
00098     
00106     IMPORT_C void InternalizeL( RReadStream& aStream );
00107 
00108 private:
00109     
00113     CMessageAddress();
00114     
00118     void ConstructL();
00119 
00120 private:  // Data
00121 
00126     CMessageAddressImpl* iMessageAddressImpl;
00127     };
00128 
00131 typedef CArrayPtrFlat<CMessageAddress> CMessageAddressArray;
00132 
00133 // C_MESSAGEADDRESS_H
00134 #endif
00135 
00136 // End of File

Copyright © Nokia Corporation 2001-2008
Back to top