diff -r 000000000000 -r 8e480a14352b messagingfw/sendas/test/sendastextnotifier/inc/DummyServer.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/messagingfw/sendas/test/sendastextnotifier/inc/DummyServer.h Mon Jan 18 20:36:02 2010 +0200 @@ -0,0 +1,67 @@ +// 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: +// + +#include +#include + +const TUint KCountServMajorVersionNumber=0; +const TUint KCountServMinorVersionNumber=1; +const TUint KCountServBuildVersionNumber=1; + +_LIT(KDummyServerName, "DummyServer"); + +class CDummyObserver : public CBase, public MMsvSessionObserver + { +public: + void HandleSessionEventL(TMsvSessionEvent, TAny*, TAny*, TAny*) {}; + }; +enum TServReqst + { + EServGetTMsvEntry = 1 + }; +//********************************** +//CDummyServer +//********************************** + +class CDummyServer : public CServer2 + { +public: + static CDummyServer* NewLC(); + CDummyServer(); + virtual ~CDummyServer(); + void ConstructL(); + CSession2* NewSessionL(const TVersion& aVersion,const RMessage2& aMessage) const; + void StopServer() ;//const; + }; + + +//********************************** +//CDummyServerSession +//********************************** +/** +This class represents a session with the server. +Functions are provided to respond appropriately to client messages. +*/ +class CDummyServerSession : public CSession2 + { +public: + CDummyServerSession(); + //service request + void ServiceL(const RMessage2& aMessage); + void DispatchMessageL(const RMessage2& aMessage); + void GetTMsvEntryL(const RMessage2& aMessage); + virtual ~CDummyServerSession(); + + }; \ No newline at end of file