usbmgmt/usbmgr/device/classdrivers/ncm/classcontroller/inc/ncmiapprogresswatcher.h
branchRCL_3
changeset 15 f92a4f87e424
equal deleted inserted replaced
14:d3e8e7d462dd 15:f92a4f87e424
       
     1 /*
       
     2 * Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies).
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description: 
       
    15 *
       
    16 */
       
    17 
       
    18 /** @file
       
    19 @internalComponent
       
    20 */
       
    21 
       
    22 #ifndef NCMIAPPROGRESSWATCHER_H
       
    23 #define NCMIAPPROGRESSWATCHER_H
       
    24 
       
    25 #include <e32base.h>
       
    26 
       
    27 #ifdef OVERDUMMY_NCMCC
       
    28 #include <usb/testncmcc/dummy_essock.h>
       
    29 #include <usb/testncmcc/dummy_insock.h>
       
    30 #else
       
    31 #include <es_sock.h>
       
    32 #include <in_sock.h> 
       
    33 #endif // OVERDUMMY_NCMCC
       
    34 
       
    35 class MNcmIapProgressStateObserver;
       
    36 
       
    37 /**
       
    38  * CNcmIapProgressWatcher will handle IAP state changes
       
    39  */
       
    40 NONSHARABLE_CLASS(CNcmIapProgressWatcher) : public CActive
       
    41 	{
       
    42 public:
       
    43     /**
       
    44      * Constructor
       
    45      * @param[in]  aObserver, the observer of IAP progress change. 
       
    46      * @param[in]  aConnection, the NCM connection.
       
    47      */
       
    48     CNcmIapProgressWatcher(MNcmIapProgressStateObserver& aObserver, 
       
    49                         RConnection& aConnection);
       
    50     
       
    51 	~CNcmIapProgressWatcher();
       
    52 	
       
    53 	/**
       
    54 	 * Start IAP progress watcher
       
    55 	 */
       
    56 	void Start();
       
    57 	
       
    58 private:
       
    59 	// From CActive
       
    60 	void RunL();
       
    61 	void DoCancel();
       
    62 
       
    63 private:
       
    64 	
       
    65 	TNifProgressBuf            iProgressInfoBuf;
       
    66 	MNcmIapProgressStateObserver& iObserver;
       
    67 	RConnection&               iConnection;
       
    68 	};
       
    69 
       
    70 #endif // NCMIAPPROGRESSWATCHER_H
       
    71