examples/Messaging/BIOMessageMgr/Src/BIOExampleParser.cpp

00001 // Copyright (c) 2005-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 
00017 #include <e32std.h>
00018 #include <eikenv.h>
00019 
00020 #include "BIOExampleParser.h"
00021 
00022 CBIOExampleParser::CBIOExampleParser(CRegisteredParserDll& aRegisteredParserDll, CMsvEntry& aEntry, RFs& aFs)
00023 :CBaseScriptParser2(aRegisteredParserDll, aEntry, aFs)
00024     {
00025     }
00026 
00027 CBIOExampleParser::~CBIOExampleParser()
00028         {
00029         Cancel();
00030         }
00031         
00032 EXPORT_C CBIOExampleParser* CBIOExampleParser::NewL(CRegisteredParserDll& aRegisteredParserDll, CMsvEntry& aEntry, RFs& aFs)
00033         {
00034     CBIOExampleParser* self = new(ELeave) CBIOExampleParser(aRegisteredParserDll, aEntry, aFs);
00035     CleanupStack::PushL(self);
00036     self->ConstructL();
00037     CleanupStack::Pop();
00038     return self;
00039         }
00040 
00041 void CBIOExampleParser::ConstructL()
00042         {
00043         CActiveScheduler::Add(this);
00044         }
00045 
00051 void CBIOExampleParser::ParseL(TRequestStatus& aStatus, const TDesC& /*aSms*/)
00052         {
00053         aStatus = iStatus;
00054         SetActive();
00055 
00056         TMsvEntry entry = iEntry.Entry();
00057         entry.iMtmData3 = 1;
00058         iEntry.ChangeL(entry);
00059 
00060         TRequestStatus* status = &aStatus ;
00061         User::RequestComplete(status, KErrNone);
00062         }
00063 
00068 void CBIOExampleParser::ProcessL(TRequestStatus& aStatus)
00069         {
00070         aStatus = iStatus;
00071         SetActive();
00072 
00073         TRequestStatus* status = &iStatus;
00074         User::RequestComplete(status, KErrNone);
00075         }
00076 
00077 void CBIOExampleParser::DoCancel()
00078         {
00079         TRequestStatus* status = &iStatus;
00080         User::RequestComplete(status, KErrCancel);
00081         }
00082 
00083 void CBIOExampleParser::RunL()
00084         {
00085         }
00086 
00087 

Generated by  doxygen 1.6.2