BIOexampleParser.cpp
上传用户:sempras
上传日期:2007-03-04
资源大小:821k
文件大小:4k
- /*
- BIOexampleParser.CPP - source file for BIOexampleParser
- C++ implementation
- */
- // Include Files
- #include <e32std.h> // for GLDEF_C
- #include <eikenv.h> // for eikenv
- #include "Bioexampleparser.h" // own header
- // Constants
- //
- // CBIOexampleParser
- //
- /*
- -------------------------------------------------------------------------------
- CBIOexampleParser
- Description: Constructor
- Return value: N/A
- -------------------------------------------------------------------------------
- */
- CBIOexampleParser::CBIOexampleParser(CRegisteredParserDll& aRegisteredParserDll, CMsvServerEntry& aEntry, RFs& aFs):
- CBaseScriptParser(aRegisteredParserDll, aEntry, aFs)
- {
- }
- /*
- -------------------------------------------------------------------------------
- ~CBIOexampleParser
- Description: Destructor
- Return value: N/A
- -------------------------------------------------------------------------------
- */
- CBIOexampleParser::~CBIOexampleParser()
- {
- Cancel();
- }
- /*
- -------------------------------------------------------------------------------
- NewL();
- Description: Creates a new instance of this class
- Return value: CBIOexampleAppUi*
- -------------------------------------------------------------------------------
- */
- EXPORT_C CBIOexampleParser* CBIOexampleParser::NewL(CRegisteredParserDll& aRegisteredParserDll, CMsvServerEntry& aEntry, RFs& aFs)
- {
- CBIOexampleParser* self = new(ELeave) CBIOexampleParser(aRegisteredParserDll, aEntry, aFs);
- CleanupStack::PushL(self);
- self->ConstructL();
- CleanupStack::Pop();
- return self;
- }
- /*
- -------------------------------------------------------------------------------
- ConstructL();
- Description: 2nd phase Constructor
- Return value: N/A
- -------------------------------------------------------------------------------
- */
- void CBIOexampleParser::ConstructL()
- {
- CActiveScheduler::Add(this);
- }
- /*
- -------------------------------------------------------------------------------
- ParseL();
- Description: Parsing the message. After parsing set the flag iMtmData3 to 1
- ( means that message has been parsed ).
- Return value: N/A
- -------------------------------------------------------------------------------
- */
- void CBIOexampleParser::ParseL(TRequestStatus& aStatus, const TDesC& /*aSms*/)
- {
- aStatus = iStatus;
- SetActive();
- TMsvEntry entry = iEntry.Entry();
- entry.iMtmData3 = 1;
- iEntry.ChangeEntry(entry);
- TRequestStatus* status = &aStatus ;
- User::RequestComplete(status, KErrNone);
- // could read and delete the message from server.
- }
- /*
- -------------------------------------------------------------------------------
- ProcessL();
- Description: Processing the message.
- Return value: N/A
- -------------------------------------------------------------------------------
- */
- void CBIOexampleParser::ProcessL(TRequestStatus& aStatus)
- {
- aStatus = iStatus;
- SetActive();
- TRequestStatus* status = &iStatus;
- User::RequestComplete(status, KErrNone);
- }
- /*
- -------------------------------------------------------------------------------
- DoCancel();
- Description: Cancel request.
- Return value: N/A
- -------------------------------------------------------------------------------
- */
- void CBIOexampleParser::DoCancel()
- {
- TRequestStatus* status = &iStatus;
- User::RequestComplete(status, KErrCancel);
- }
- /*
- -------------------------------------------------------------------------------
- RunL();
- Description:
- Return value: N/A
- -------------------------------------------------------------------------------
- */
- void CBIOexampleParser::RunL()
- {
- }
- /*
- -----------------------------------------------------------------------------
- E32Dll
- Called when the DLL is loaded and unloaded.
- Return Values: KErrNone
- -----------------------------------------------------------------------------
- */
- GLDEF_C TInt E32Dll(TDllReason/* aReason*/)
- {
- return (KErrNone);
- }
- //End of File