diff -r d3e8e7d462dd -r f92a4f87e424 usbmgmt/usbmgr/device/classdrivers/ncm/classcontroller/inc/ncmiapprogresswatcher.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/usbmgmt/usbmgr/device/classdrivers/ncm/classcontroller/inc/ncmiapprogresswatcher.h Tue Aug 31 17:01:47 2010 +0300 @@ -0,0 +1,71 @@ +/* +* 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 NCMIAPPROGRESSWATCHER_H +#define NCMIAPPROGRESSWATCHER_H + +#include + +#ifdef OVERDUMMY_NCMCC +#include +#include +#else +#include +#include +#endif // OVERDUMMY_NCMCC + +class MNcmIapProgressStateObserver; + +/** + * CNcmIapProgressWatcher will handle IAP state changes + */ +NONSHARABLE_CLASS(CNcmIapProgressWatcher) : public CActive + { +public: + /** + * Constructor + * @param[in] aObserver, the observer of IAP progress change. + * @param[in] aConnection, the NCM connection. + */ + CNcmIapProgressWatcher(MNcmIapProgressStateObserver& aObserver, + RConnection& aConnection); + + ~CNcmIapProgressWatcher(); + + /** + * Start IAP progress watcher + */ + void Start(); + +private: + // From CActive + void RunL(); + void DoCancel(); + +private: + + TNifProgressBuf iProgressInfoBuf; + MNcmIapProgressStateObserver& iObserver; + RConnection& iConnection; + }; + +#endif // NCMIAPPROGRESSWATCHER_H +