usbengines/usblocodplugin/inc/usblcdactive.h
changeset 35 9d8b04ca6939
child 57 62e6d990246c
equal deleted inserted replaced
34:7858bc6ead78 35:9d8b04ca6939
       
     1 /*
       
     2 * Copyright (c) 2006 - 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:  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     /**
       
    70      * Handle the change of selected USB personality.
       
    71      * @param aNewPersonalityId current selected USB personality ID.
       
    72      */
       
    73     void HandleUsbPersonalityChange( TInt aNewPersonalityId );
       
    74 
       
    75 private: // data
       
    76 
       
    77     MLocodBearerPluginObserver& iObserver;
       
    78     RProperty iProperty;
       
    79     };
       
    80 
       
    81 
       
    82 #endif // USBLCDACTIVE_H