00001 // Copyright (c) 2008-2009 Nokia Corporation and/or its subsidiary(-ies). 00002 // All rights reserved. 00003 // This component and the accompanying materials are made available 00004 // under the terms of "Eclipse Public License v1.0" 00005 // which accompanies this distribution, and is available 00006 // at the URL "http://www.eclipse.org/legal/epl-v10.html". 00007 // 00008 // Initial Contributors: 00009 // Nokia Corporation - initial contribution. 00010 // 00011 // Contributors: 00012 // 00013 // Description: 00014 // 00015 00016 #ifndef CMSGQACTIVE_H_ 00017 #define CMSGQACTIVE_H_ 00018 00019 #include <e32base.h> 00020 #include "e32msgqueue.h" //used for NotifyDataAvailable API 00021 00022 class CMsgQActive : public CActive 00023 { 00024 public: 00025 static CMsgQActive* NewL(TInt aPriority = EPriorityStandard); 00026 CMsgQActive(TInt aPriority = EPriorityStandard); 00027 virtual ~CMsgQActive(); 00028 virtual void DoCancel(); 00029 virtual void RunL(); 00030 void StartRecieving(); 00031 void ConstructL(); 00032 private: 00033 TBuf<100> imsgQData; //Buffer to store recieved data. 00034 RMsgQueue<TBuf<100> > iInverterOutQ; 00035 CConsoleBase* iConsole; //console to display words recieved from the inverter via the message queue. 00036 }; 00037 00038 #endif /*CMSGQACTIVE_H_*/
Copyright ©2010 Nokia Corporation and/or its subsidiary(-ies).
All rights
reserved. Unless otherwise stated, these materials are provided under the terms of the Eclipse Public License
v1.0.