usbengines/usblocodplugin/inc/usblcdactive.h
changeset 0 1e05558e2206
child 23 bb32eca979b3
equal deleted inserted replaced
-1:000000000000 0:1e05558e2206
       
     1 /*
       
     2 * Copyright (c) 2006 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:  Control the asynchronouse request from serviceplugin to 
       
    15 *                client side. 
       
    16 *
       
    17 */
       
    18 
       
    19 
       
    20 #ifndef USBLCDACTIVE_H
       
    21 #define USBLCDACTIVE_H
       
    22 
       
    23 #include <locodbearerpluginobserver.h>
       
    24 #include <usb/usblogger.h>
       
    25 
       
    26 /**
       
    27  *  Base Active Object class 
       
    28  *
       
    29  *  Its instance will be used to control Asynchronous request
       
    30  *  from ECom plugin to FaxModem server
       
    31  *
       
    32  */
       
    33 NONSHARABLE_CLASS(CUsbLcdActive) : public CActive
       
    34     {
       
    35 
       
    36 public:
       
    37 
       
    38     static CUsbLcdActive* NewL(MLocodBearerPluginObserver& aObserver); 
       
    39 
       
    40     virtual ~CUsbLcdActive();
       
    41 
       
    42 protected:
       
    43 
       
    44     // from base class CActive
       
    45     /**
       
    46      * From CActive. 
       
    47      * Cancel current activity.
       
    48      */
       
    49     void DoCancel();
       
    50 
       
    51     /**
       
    52      * From CActive. 
       
    53      * RunL() function.
       
    54      */
       
    55     void RunL();
       
    56 
       
    57     /**
       
    58      * From CActive. 
       
    59      * Called if RunL() leaves. Retry listening after error.
       
    60      */
       
    61     TInt RunError( TInt aError );
       
    62 
       
    63 private:
       
    64 
       
    65     CUsbLcdActive(MLocodBearerPluginObserver& aObserver);
       
    66 
       
    67     void ConstructL();
       
    68     void Start();    
       
    69     void NotifyLcd(TBool aUsbStatus);
       
    70 
       
    71 private: // data
       
    72 
       
    73     MLocodBearerPluginObserver& iObserver;
       
    74     RProperty iProperty;
       
    75     };
       
    76 
       
    77 
       
    78 #endif // USBLCDACTIVE_H