diff -r a493a607b5bf -r eabc8c503852 mmserv/voipaudioservices/inc/VoIPQueueHandler.h --- a/mmserv/voipaudioservices/inc/VoIPQueueHandler.h Fri Sep 03 19:34:12 2010 -0500 +++ b/mmserv/voipaudioservices/inc/VoIPQueueHandler.h Tue Sep 21 11:38:43 2010 -0500 @@ -1,39 +1,35 @@ /* -* Copyright (c) 2007-2008 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: Declares CQueueHandler class which handles VoIP client/server -* messaging. -* -*/ + * Copyright (c) 2007-2008 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: Declares CQueueHandler class which handles VoIP client/server + * messaging. + * + */ - -#ifndef __VOIPQUEUEHANDLER_H -#define __VOIPQUEUEHANDLER_H - +#ifndef VOIPQUEUEHANDLER_H +#define VOIPQUEUEHANDLER_H // INCLUDES #include #include #include "VoIPAudioClientServer.h" // for TVoIPMsgBuf - // FORWARD DECLARATIONS class CVoIPDataBuffer; - /** -* MQueueHandlerObserver -* Responsible for sending callbacks to the VoIP client app -*/ + * MQueueHandlerObserver + * Responsible for sending callbacks to the VoIP client app + */ class MQueueHandlerObserver { public: @@ -42,46 +38,44 @@ virtual void Event(TInt aEventType, TInt aError) = 0; }; - /** -* CQueueHandler -* -*/ + * CQueueHandler + * + */ NONSHARABLE_CLASS(CQueueHandler) : public CActive { public: /** - * NewL() - * Contructor - * - */ + * NewL() + * Contructor + * + */ static CQueueHandler* NewL(MQueueHandlerObserver* aObserver, - RMsgQueue* aMsgQueue, - TInt aBufferLen = 0); + RMsgQueue* aMsgQueue, TInt aBufferLen = 0); /** - * destructor - */ + * destructor + */ virtual ~CQueueHandler(); /** - * Start - * Starts listening for events. - * - */ + * Start + * Starts listening for events. + * + */ void Start(); /** - * Returns request status. - */ + * Returns request status. + */ TRequestStatus* Status(); private: /** - * constructor - */ + * constructor + */ CQueueHandler(RMsgQueue* aMsgQueue); void ConstructL(MQueueHandlerObserver* aObserver, TInt aBufferLen); @@ -93,19 +87,17 @@ void DoFillBuffer(TInt aBufLen, TInt aStatus); void DoEmptyBuffer(TInt aBufLen, TInt aStatus); -private: // data - - MQueueHandlerObserver* iObserver; // (not owned) - RMsgQueue* iMsgQueue; +private: + // data - RChunk iChunk; - TPtr8 iChunkDataPtr; - CVoIPDataBuffer* iBuffer; + MQueueHandlerObserver* iObserver; // (not owned) + RMsgQueue* iMsgQueue; + RChunk iChunk; + TPtr8 iChunkDataPtr; + CVoIPDataBuffer* iBuffer; }; - -#endif // __VOIPQUEUEHANDLER_H +#endif //VOIPQUEUEHANDLER_H - -// End of File \ No newline at end of file +// End of File