00001 /* 00002 * Copyright (c) 2008-2009 Nokia Corporation and/or its subsidiary(-ies). 00003 * All rights reserved. 00004 * This component and the accompanying materials are made available 00005 * under the terms of "Eclipse Public License v1.0" 00006 * which accompanies this distribution, and is available 00007 * at the URL "http://www.eclipse.org/legal/epl-v10.html". 00008 * 00009 * Initial Contributors: 00010 * Nokia Corporation - initial contribution. 00011 * 00012 * Contributors: 00013 * 00014 * Description: ActiveWait 00015 * 00016 */ 00017 00018 00019 #ifndef C_ACTIVEWAIT_H 00020 #define C_ACTIVEWAIT_H 00021 00022 #include "nfctagsdiscovery_symbian.h" 00023 #include <e32base.h> 00024 00025 00031 class CActiveWait : public CActive 00032 { 00033 public: 00034 00038 static CActiveWait* NewL(NfcTagsDiscoveryPrivate* privateAPI); 00039 00043 static CActiveWait* NewLC(NfcTagsDiscoveryPrivate* privateAPI); 00044 00045 00049 ~CActiveWait(); 00050 00051 00055 IMPORT_C void SetActive(); 00056 00057 protected: // From CActive 00058 00062 void RunL(); 00063 00067 void DoCancel(); 00068 00069 private: 00070 00071 CActiveWait(NfcTagsDiscoveryPrivate* aPrivateAPI); 00072 00076 void ConstructL(); 00077 00078 00079 private: 00080 NfcTagsDiscoveryPrivate* iPrivateAPI; 00081 00082 }; 00083 00084 00085 #endif // ACTIVEWAIT_H