hwpluginsimulation/mocksy/inc/cmocksysession.h
changeset 0 3553901f7fa8
child 24 6638e7f4bd8f
equal deleted inserted replaced
-1:000000000000 0:3553901f7fa8
       
     1 // Copyright (c) 2007-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 #ifndef CMOCKSYSESSION_H
       
    17 #define CMOCKSYSESSION_H
       
    18 
       
    19 #include <e32base.h>
       
    20 
       
    21 #include "cmocksyengine.h"
       
    22 
       
    23 enum TMockSYPanic
       
    24 	{
       
    25 	EPanicBadDescriptor,
       
    26 	EPanicIllegalFunction,
       
    27 	EPanicAlreadyReceiving
       
    28 	};
       
    29 
       
    30 void PanicClient(const RMessagePtr2& aMessage,TMockSYPanic aPanic);
       
    31 
       
    32 class CMockSYSession : public CSession2, public MMockSYEngineListener
       
    33 	{
       
    34 public:
       
    35 	static CSession2* NewL(CMockSYEngine& aEngine);
       
    36 	~CMockSYSession();
       
    37 
       
    38 public: // from MockSYEngineListener
       
    39 	virtual void Notify(TNotificationType aNotification);
       
    40 		
       
    41 protected:
       
    42 	CMockSYSession(CMockSYEngine& aEngine);
       
    43 	void ConstructL();
       
    44 
       
    45 public:
       
    46 	void ServiceL(const RMessage2& aMessage);
       
    47 	
       
    48 private:
       
    49 	RMessagePtr2 iNotifyDoneMsg;
       
    50 	CMockSYEngine& iEngine;
       
    51 	};
       
    52 	
       
    53 #endif