connectivitymodules/SeCon/cntparser/inc/cntparserserversession.h
author Sebastian Brannstrom <sebastianb@symbian.org>
Tue, 15 Jun 2010 13:54:53 +0100
branchGCC_SURGE
changeset 29 4c8d5d006ed1
parent 19 2691f6aa1921
permissions -rw-r--r--
Bug 2937 - GCC compilation issue fixes

/*
* Copyright (c) 2002 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:  CCntParserServerSession header
*
*/


#ifndef __CNTPARSERSERVERSESSION_H__
#define __CNTPARSERSERVERSESSION_H__

#include "clientserver.h"
#include "cntparserclient.h"
#include "cntparserserver.h"
#include "cntparsercollector.h"

class CCntParserServer;

//**********************************
//CCntParserServerSession
//**********************************
class CCntParserServerSession : public CSession2
{
	public:
	static CCntParserServerSession* NewL(CCntParserServer* aServer);
	virtual ~CCntParserServerSession();
	void ConstructL(CCntParserServer* aServer);

	private:
	CCntParserServerSession();

	public:
	virtual void ServiceL(const RMessage2& aMessage);
	TInt DispatchMessageL(const RMessage2& aMessage);
	void CompletePhoneBookRequest(TInt aErr);

	protected:
	// panic the client
	void PanicClient(TInt aPanic) const;

	private:
	CCntParserServer* iContactsParserSrv;
	TBool iPhoneBookRequest;
	RMessage2 iPhoneBookRequestMessage;
};

#endif