Public Types | |
enum | TRequestType { ECount, EStop } |
Public Member Functions | |
CCollector (TInt aPriority=EPriorityStandard) | |
virtual void | DoCancel () |
virtual void | RunL () |
void | RequestFunction () |
void | Stop () |
void | ConstructL () |
void | ProcessKeyPress (TChar aChar) |
void | StartRecieving () |
void | SendMsgInQ (TBuf< 100 >) |
Static Public Member Functions | |
static CCollector * | NewL (TInt aPriority=EPriorityStandard) |
Definition at line 28 of file CCollector.h.
CCollector::CCollector | ( | TInt | aPriority = EPriorityStandard |
) |
Constructor
Definition at line 35 of file CCollector.cpp.
void CCollector::RunL | ( | ) | [virtual] |
Store the characters input by the user in a buffer.
Definition at line 95 of file CCollector.cpp.
void CCollector::RequestFunction | ( | ) |
Request for user input.
Definition at line 86 of file CCollector.cpp.
void CCollector::Stop | ( | ) |
The following function sends the stop message to the inverter via the message queue.
Definition at line 131 of file CCollector.cpp.
void CCollector::ConstructL | ( | ) |
The constructor creates a console for requesting words from the user, creates two global message queues, starts the other process named Inverter.exe and create another active object to recieve words from the inverter.
Definition at line 54 of file CCollector.cpp.
void CCollector::ProcessKeyPress | ( | TChar | aChar | ) |
The following function processes the key pressed by the user, stores in a buffer and sends the data to the inverter via collector.
Definition at line 108 of file CCollector.cpp.
void CCollector::StartRecieving | ( | ) |
The following function calls the asynchronous request to recieve the words from the inverter.
Definition at line 150 of file CCollector.cpp.
void CCollector::SendMsgInQ | ( | TBuf< 100 > | buf | ) |
The following function sends the message to InverterInQ.
Definition at line 158 of file CCollector.cpp.
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.