usbmgmt/usbmgr/device/classdrivers/ncm/classcontroller/inc/ncmiapreader.h
branchRCL_3
changeset 16 012cc2ee6408
parent 15 f92a4f87e424
equal deleted inserted replaced
15:f92a4f87e424 16:012cc2ee6408
     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 NCMIAPREADER_H
       
    23 #define NCMIAPREADER_H
       
    24 
       
    25 #include <e32base.h>
       
    26 
       
    27 class MNcmIAPReaderObserver;
       
    28 class TCommDbConnPref;
       
    29 
       
    30 /**
       
    31  * IAP reader reads NCM IAP from CommDB and set it into NCM connection preference.
       
    32  */
       
    33 NONSHARABLE_CLASS(CNcmIapReader) : public CActive
       
    34 	{
       
    35 public:
       
    36 
       
    37     /**
       
    38      * Constructor
       
    39      * @param[in]  aObserver, the observer of IAP reading progress. 
       
    40      * @param[in]  aConnection, the NCM connection preference.
       
    41      */    
       
    42     CNcmIapReader(MNcmIAPReaderObserver& aObserver, TCommDbConnPref& aConnPref);
       
    43     
       
    44     /**
       
    45      * Destructor
       
    46      */
       
    47 	~CNcmIapReader();
       
    48 	
       
    49 	/**
       
    50 	 * Start NCM IAP reader
       
    51 	 */
       
    52 	void Start();
       
    53 	
       
    54 private:
       
    55 	
       
    56 	// From CActive
       
    57 	void RunL();
       
    58 	void DoCancel();
       
    59 
       
    60 private:
       
    61 	void SearchNcmIapL();
       
    62 	
       
    63 private:
       
    64 	MNcmIAPReaderObserver&    iObserver;
       
    65 	TCommDbConnPref&       iConnPref;
       
    66 	};
       
    67 
       
    68 #endif // NCMIAPREADER_H
       
    69