usbmgmt/usbmgrtest/t_ncm/inc/ncmwatcher.h
branchRCL_3
changeset 16 012cc2ee6408
parent 15 f92a4f87e424
equal deleted inserted replaced
15:f92a4f87e424 16:012cc2ee6408
     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 
       
    24 #ifndef NCMWATCHER_H
       
    25 #define NCMWATCHER_H
       
    26 
       
    27 #include <e32property.h>
       
    28 #include <usb/usbncm.h>
       
    29 #include <e32base.h> 
       
    30 
       
    31 class CUsbNcmConsole;
       
    32 
       
    33 NONSHARABLE_CLASS(CSharedStateWatcher) : public CActive
       
    34     {
       
    35 public:
       
    36     static CSharedStateWatcher* NewL(CUsbNcmConsole& aConsole);
       
    37     ~CSharedStateWatcher();
       
    38 
       
    39 private:
       
    40     CSharedStateWatcher(CUsbNcmConsole& aConsole);
       
    41     void ConstructL();
       
    42     void reportState();
       
    43 
       
    44     //From CActive
       
    45     void RunL();
       
    46     void DoCancel();
       
    47 
       
    48 private:
       
    49     RProperty iProperty;
       
    50     TInt iIapId;
       
    51     TInt iErrCode;
       
    52     TPtr8 iNcmStateDes;
       
    53     UsbNcm::TNcmConnectionEvent iSharedState;
       
    54     CUsbNcmConsole& iConsole;
       
    55     };
       
    56 
       
    57 #endif  // NCMWATCHER_H