mtpdataproviders/mtppictbridgedp/inc/cmtppictbridgeusbconnection.h
changeset 0 d0791faffa3f
equal deleted inserted replaced
-1:000000000000 0:d0791faffa3f
       
     1 // Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
       
     2 // All rights reserved.
       
     3 // This component and the accompanying materials are made available
       
     4 // under the terms of "Eclipse Public License v1.0"
       
     5 // which accompanies this distribution, and is available
       
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     7 //
       
     8 // Initial Contributors:
       
     9 // Nokia Corporation - initial contribution.
       
    10 //
       
    11 // Contributors:
       
    12 //
       
    13 // Description:
       
    14 //
       
    15 
       
    16 /**
       
    17  @file
       
    18  @internalComponent
       
    19  */
       
    20 
       
    21 
       
    22 #ifndef CMTPPICTBRIDGEUSBCONNECTION_H
       
    23 #define CMTPPICTBRIDGEUSBCONNECTION_H
       
    24 
       
    25 #include <e32base.h>
       
    26 #include <e32property.h>
       
    27 #include "mtpdebug.h"
       
    28 
       
    29 
       
    30 // FORWARD DECLARATION
       
    31 class CMTPPictBridgePrinter;
       
    32 
       
    33 /**
       
    34  * @since 
       
    35 */
       
    36 class CMTPPictBridgeUsbConnection : public CActive
       
    37     {
       
    38     public:
       
    39         
       
    40         /**
       
    41         * @since 
       
    42         */
       
    43         static CMTPPictBridgeUsbConnection* NewL(CMTPPictBridgePrinter& aPrinter);
       
    44         
       
    45         /**
       
    46         * @since 
       
    47         */
       
    48         ~CMTPPictBridgeUsbConnection();    
       
    49         
       
    50         /**
       
    51         * @since 
       
    52         */        
       
    53         void Listen();
       
    54 
       
    55         /**
       
    56         * @return ETrue if the connection was closed, EFalse otherwise
       
    57         */        
       
    58         TBool ConnectionClosed();
       
    59     private:
       
    60         /**
       
    61         * @since 
       
    62         */
       
    63         CMTPPictBridgeUsbConnection(CMTPPictBridgePrinter& aPrinter);
       
    64         
       
    65         /**
       
    66         * @since 
       
    67         */
       
    68         void ConstructL();
       
    69         
       
    70         /**
       
    71         * @since 
       
    72         */
       
    73         void RunL();
       
    74         
       
    75         void DoCancel();
       
    76         
       
    77         TInt RunError(TInt aErr);
       
    78         
       
    79     private:
       
    80         CMTPPictBridgePrinter& iPrinter;
       
    81         RProperty              iProperty;
       
    82         TInt                   iPreviousPersonality;
       
    83         /**
       
    84         FLOGGER debug trace member variable.
       
    85         */
       
    86         __FLOG_DECLARATION_MEMBER_MUTABLE;
       
    87     };
       
    88     
       
    89 #endif
       
    90