diff -r d3e8e7d462dd -r f92a4f87e424 usbmgmt/usbmgr/device/classdrivers/ncm/classcontroller/inc/ncmiapreader.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/usbmgmt/usbmgr/device/classdrivers/ncm/classcontroller/inc/ncmiapreader.h Tue Aug 31 17:01:47 2010 +0300 @@ -0,0 +1,69 @@ +/* +* Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies). +* All rights reserved. +* This component and the accompanying materials are made available +* under the terms of "Eclipse Public License v1.0" +* which accompanies this distribution, and is available +* at the URL "http://www.eclipse.org/legal/epl-v10.html". +* +* Initial Contributors: +* Nokia Corporation - initial contribution. +* +* Contributors: +* +* Description: +* +*/ + +/** @file +@internalComponent +*/ + +#ifndef NCMIAPREADER_H +#define NCMIAPREADER_H + +#include + +class MNcmIAPReaderObserver; +class TCommDbConnPref; + +/** + * IAP reader reads NCM IAP from CommDB and set it into NCM connection preference. + */ +NONSHARABLE_CLASS(CNcmIapReader) : public CActive + { +public: + + /** + * Constructor + * @param[in] aObserver, the observer of IAP reading progress. + * @param[in] aConnection, the NCM connection preference. + */ + CNcmIapReader(MNcmIAPReaderObserver& aObserver, TCommDbConnPref& aConnPref); + + /** + * Destructor + */ + ~CNcmIapReader(); + + /** + * Start NCM IAP reader + */ + void Start(); + +private: + + // From CActive + void RunL(); + void DoCancel(); + +private: + void SearchNcmIapL(); + +private: + MNcmIAPReaderObserver& iObserver; + TCommDbConnPref& iConnPref; + }; + +#endif // NCMIAPREADER_H +