realtimenetprots/sipfw/ProfileAgent/IMS_Agent/Inc/sipcontactelement.h
author hgs
Mon, 23 Aug 2010 17:50:26 +0300
changeset 42 69df6ed78a6a
parent 0 307788aac0a8
permissions -rw-r--r--
201033

/*
* Copyright (c) 2005-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:
* Name          : CSIPContactElement.h
* Part of       : ProfileAgent
* Version       : SIP/4.0
*
*/




/**
 @internalComponent
*/

#ifndef CSIPCONTACTELEMENT_H
#define CSIPCONTACTELEMENT_H

// INCLUDES
#include <e32base.h>
#include <uri8.h>
#include <stringpool.h>

// FORWARD DECLARATIONS


// CLASS DEFINITION
/**
 * CSIPContactElement implements a data container for a contact
 * in registration state event information. 
 */
class CSIPContactElement
	: public CBase
	{
	public: // Constructors and destructor

		static CSIPContactElement* NewL();
		~CSIPContactElement();

  	public: // New methods
  	
		void SetUri8L( CUri8* aUri );
		const CUri8& Uri8() const;
		void SetState( RString aState );
		RString State() const;
		void SetEvent( RString aEvent );
		RString Event() const;
		void SetExpires( TUint aValue );
		TUint Expires() const;
		TBool HasExpires() const;

	private: // Constructors

		CSIPContactElement();
		void ConstructL();

	private: // Data

		CUri8* iUri8;
		RString iState;
		RString iEvent;
		HBufC8* iId;
		TUint iExpires;
		TBool iHasExpires;		
	};

#endif // CSIPCONTACTELEMENT_H