usbmgmt/usbmgr/device/classdrivers/ncm/classcontroller/inc/ncmiapreader.h
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Tue, 31 Aug 2010 17:01:47 +0300
branchRCL_3
changeset 15 f92a4f87e424
permissions -rw-r--r--
Revision: 201033 Kit: 201035

/*
* 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 <e32base.h>

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