diff -r 000000000000 -r 8466d47a6819 emailservices/emailclientapi/inc/emailaddress.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/emailservices/emailclientapi/inc/emailaddress.h Thu Dec 17 08:39:21 2009 +0200 @@ -0,0 +1,61 @@ +/* +* Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). +* All rights reserved. +* This component and the accompanying materials are made available +* under the terms of "Eclipse Public License v1.0" +* which accompanies this distribution, and is available +* at the URL "http://www.eclipse.org/legal/epl-v10.html". +* +* Initial Contributors: +* Nokia Corporation - initial contribution. +* +* Contributors: +* +* Description: mail address implementation definition +* +*/ + +#ifndef EMAILADDRESS_H +#define EMAILADDRESS_H + +#include +#include "emailapiutils.h" + +using namespace EmailInterface; + +NONSHARABLE_CLASS( CEmailAddress ) : public CBase, public MEmailAddress + { +public: + static CEmailAddress* NewL( const TRole aRole, const TDataOwner aOwner ); + static CEmailAddress* NewLC( const TRole aRole, const TDataOwner aOwner ); + + ~CEmailAddress(); + +public: // from MEmailInterface + virtual TEmailTypeId InterfaceId() const; + + virtual void Release(); + +public: // from MEmailAddress + virtual void SetAddressL( const TDesC& aAddress ); + virtual TPtrC Address() const; + + virtual void SetDisplayNameL( const TDesC& aDisplayName ); + virtual TPtrC DisplayName() const; + + virtual TRole Role() const; + virtual void SetRole( const TRole aRole ); + +private: + CEmailAddress( const TRole aRole, const TDataOwner aOwner ); + +private: + RBuf iAddress; + RBuf iDisplayName; + TRole iRole; + TDataOwner iOwner; + }; + +#endif // EMAILADDRESS_H + +// End of file