usbmgmt/usbmgrtest/t_ncm/inc/startwatchercommand.h
branchRCL_3
changeset 15 f92a4f87e424
equal deleted inserted replaced
14:d3e8e7d462dd 15:f92a4f87e424
       
     1 /*
       
     2 * Copyright (c) 2002-2009 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  @test
       
    21  */
       
    22 
       
    23 #ifndef STARTWATCHERCOMMAND_H
       
    24 #define STARTWATCHERCOMMAND_H
       
    25 
       
    26 #include "commandengine.h"
       
    27 
       
    28 class CDeviceWatcher;
       
    29 
       
    30 NONSHARABLE_CLASS(CStartWatcherCommand) : public CNcmCommandBase
       
    31 /**
       
    32 Set the test mode to run NCM automaticly when usb cable plugin.
       
    33 */
       
    34 	{
       
    35 public:
       
    36 	static CStartWatcherCommand* NewL(CUsbNcmConsole& aUsb, TUint aKey, CDeviceWatcher& aDeviceWatch);
       
    37 	~CStartWatcherCommand();
       
    38 
       
    39 public:
       
    40 	//From CNcmCommandBase
       
    41 	void DoCommandL();
       
    42 
       
    43 private:
       
    44 	CStartWatcherCommand(CUsbNcmConsole& aUsb, TUint aKey, CDeviceWatcher& aDeviceWatch);
       
    45 	void ConstructL();
       
    46 	
       
    47 private:
       
    48 	CDeviceWatcher& iDeviceWatcher;
       
    49 	};
       
    50 
       
    51 #endif // STARTWATCHERCOMMAND_H