messagingfw/sendas/test/sendastextnotifier/inc/DummyServer.h
changeset 0 8e480a14352b
equal deleted inserted replaced
-1:000000000000 0:8e480a14352b
       
     1 // Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies).
       
     2 // All rights reserved.
       
     3 // This component and the accompanying materials are made available
       
     4 // under the terms of "Eclipse Public License v1.0"
       
     5 // which accompanies this distribution, and is available
       
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     7 //
       
     8 // Initial Contributors:
       
     9 // Nokia Corporation - initial contribution.
       
    10 //
       
    11 // Contributors:
       
    12 //
       
    13 // Description:
       
    14 //
       
    15 
       
    16 #include <e32base.h>
       
    17 #include <msvapi.h>
       
    18 
       
    19 const TUint KCountServMajorVersionNumber=0;
       
    20 const TUint KCountServMinorVersionNumber=1;
       
    21 const TUint KCountServBuildVersionNumber=1;
       
    22 
       
    23 _LIT(KDummyServerName, "DummyServer");
       
    24 
       
    25 class CDummyObserver : public CBase, public MMsvSessionObserver
       
    26 	{
       
    27 public:
       
    28 	void HandleSessionEventL(TMsvSessionEvent, TAny*, TAny*, TAny*) {};
       
    29 	};
       
    30 enum TServReqst
       
    31     {
       
    32     EServGetTMsvEntry = 1	
       
    33 	};
       
    34 //**********************************
       
    35 //CDummyServer
       
    36 //**********************************
       
    37 
       
    38 class CDummyServer : public CServer2
       
    39     {
       
    40 public:
       
    41      static CDummyServer* NewLC();
       
    42 	CDummyServer();
       
    43 	virtual ~CDummyServer();
       
    44 	void ConstructL();
       
    45     CSession2* NewSessionL(const TVersion& aVersion,const RMessage2& aMessage) const;
       
    46     void StopServer() ;//const;
       
    47     };
       
    48 
       
    49 
       
    50 //**********************************
       
    51 //CDummyServerSession
       
    52 //**********************************
       
    53 /**
       
    54 This class represents a session with the server.
       
    55 Functions are provided to respond appropriately to client messages.
       
    56 */
       
    57 class CDummyServerSession : public CSession2
       
    58     {
       
    59 public:
       
    60     CDummyServerSession();
       
    61     //service request
       
    62     void ServiceL(const RMessage2& aMessage);
       
    63     void DispatchMessageL(const RMessage2& aMessage);
       
    64 	void GetTMsvEntryL(const RMessage2& aMessage);
       
    65     virtual ~CDummyServerSession();
       
    66 
       
    67     };