mmresourcemgmt/mmresctrl/inc/mmrcclientmsgqueuehandler.h
changeset 0 40261b775718
equal deleted inserted replaced
-1:000000000000 0:40261b775718
       
     1 // Copyright (c) 2006-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 
       
    17 #ifndef MMRCCLIENTMSGQUEUEHANDLER_H
       
    18 #define MMRCCLIENTMSGQUEUEHANDLER_H
       
    19 
       
    20 #include <e32std.h>
       
    21 #include <e32base.h>
       
    22 #include <a3f/a3fbase.h>
       
    23 #include <e32msgqueue.h>
       
    24 #include "mmrcclientserver.h"
       
    25 
       
    26 class MMMRCMsgQueueHandlerObserver;
       
    27 
       
    28 NONSHARABLE_CLASS(CMMRCClientMsgQueueHandler) : public CActive
       
    29 	{
       
    30 public:
       
    31 	static CMMRCClientMsgQueueHandler* NewL(
       
    32 		RMsgQueue<TMMRCQueueItem>& aMsgQueue,
       
    33 		MMMRCMsgQueueHandlerObserver& aObserver);
       
    34 
       
    35 	~CMMRCClientMsgQueueHandler();
       
    36 	void ReceiveEvents();
       
    37 	void RunL();
       
    38 	TInt RunError(TInt aError);
       
    39 	void DoCancel();
       
    40 
       
    41 private:
       
    42 	CMMRCClientMsgQueueHandler(
       
    43 		RMsgQueue<TMMRCQueueItem>& aMsgQueue,
       
    44 		MMMRCMsgQueueHandlerObserver& aObserver);
       
    45 	void ConstructL();
       
    46 
       
    47 private:
       
    48 	RMsgQueue<TMMRCQueueItem>& iMsgQueue;
       
    49 	MMMRCMsgQueueHandlerObserver& iObserver;
       
    50 	};
       
    51 
       
    52 #endif //__MMRCCLIENTMSGQUEUEHANDLER_H