Update contrib.
     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".
 
     8 // Initial Contributors:
 
     9 // Nokia Corporation - initial contribution.
 
    16 #include "mmrcclientmsgqueuehandler.h"
 
    17 #include "mmrcmsgqueuehandlerobserver.h"
 
    21 CMMRCClientMsgQueueHandler* CMMRCClientMsgQueueHandler::NewL(
 
    22    RMsgQueue<TMMRCQueueItem>& aMsgQueue,
 
    23    MMMRCMsgQueueHandlerObserver& aObserver)
 
    25 	CMMRCClientMsgQueueHandler* self = new(ELeave) CMMRCClientMsgQueueHandler(aMsgQueue,aObserver);
 
    26 	CleanupStack::PushL(self);
 
    34 CMMRCClientMsgQueueHandler::CMMRCClientMsgQueueHandler(
 
    35 			RMsgQueue<TMMRCQueueItem>& aMsgQueue,
 
    36 			MMMRCMsgQueueHandlerObserver& aObserver) 
 
    37 	:CActive(EPriorityStandard), 
 
    41 	CActiveScheduler::Add(this);
 
    46 void CMMRCClientMsgQueueHandler::ConstructL()
 
    53 CMMRCClientMsgQueueHandler::~CMMRCClientMsgQueueHandler()
 
    61 void CMMRCClientMsgQueueHandler::ReceiveEvents()
 
    65 		iMsgQueue.NotifyDataAvailable(iStatus);
 
    72 void CMMRCClientMsgQueueHandler::RunL()
 
    74 	TMMRCQueueItem message;
 
    75 	TInt error = iMsgQueue.Receive(message);	
 
    76 	iObserver.HandleMessage(message);
 
    82 TInt CMMRCClientMsgQueueHandler::RunError(TInt /*aError*/)
 
    89 void CMMRCClientMsgQueueHandler::DoCancel()
 
    91 	iMsgQueue.CancelDataAvailable();