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 // CDummyAnswer.cpp 00015 // 00016 00017 #ifndef __CDUMMYANSWER_H__ 00018 #define __CDUMMYANSWER_H__ 00019 00020 #include <e32base.h> 00021 #include <e32cons.h> 00022 #include <e32def.h> 00023 00024 #include "CISVAPIAsync.h" 00025 00030 class CDummyAnswer : public CActive 00031 { 00032 public: 00033 static CDummyAnswer* NewL(MExecAsync* aController); 00034 ~CDummyAnswer(); 00035 00036 void StartCount(TTimeIntervalMicroSeconds32 aDelay); 00037 00038 private: 00039 CDummyAnswer(MExecAsync* aController); 00040 void ConstructL(); 00041 void ResetFirstTime(); 00042 00043 void ExampleComplete(); 00044 00045 void RunL(); 00046 void DoCancel(); 00047 00048 private: 00053 TBool iFirstTime; 00057 CConsoleBase* iConsole; 00061 RTimer iTimer; 00065 MExecAsync* iController; 00069 TInt iCount; 00070 }; 00071 00072 #endif // __CDUMMYANSWER_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.