connectivitymodules/SeCon/cntparser/inc/cntparserserversession.h
changeset 0 d0791faffa3f
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/connectivitymodules/SeCon/cntparser/inc/cntparserserversession.h	Tue Feb 02 01:11:40 2010 +0200
@@ -0,0 +1,57 @@
+/*
+* 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
\ No newline at end of file