mtpdataproviders/mtppictbridgedp/pictbridgeengine/inc/dpsptpnotifier.h
branchRCL_3
changeset 19 0aa8cc770c8a
equal deleted inserted replaced
18:453dfc402455 19:0aa8cc770c8a
       
     1 /*
       
     2 * Copyright (c) 2006, 2007 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:  This class defines functions of setting personality to 
       
    15 *                PTP. 
       
    16 *
       
    17 */
       
    18 
       
    19 
       
    20 #ifndef DPSPTPNOTIFIER_H
       
    21 #define DPSPTPNOTIFIER_H
       
    22 
       
    23 #include <e32base.h>
       
    24 
       
    25 class CDpsUsbNotifier;
       
    26 
       
    27 /**
       
    28 *   Class for monitoring Ptp personality setting
       
    29 */
       
    30 NONSHARABLE_CLASS(CDpsPtpNotifier) : public CActive
       
    31     {
       
    32     public:
       
    33         /**
       
    34         *   Two phase constructor
       
    35         *   @param aParent the pointer to UsbNotifier object
       
    36         *   @return a new created PtpNotifier object
       
    37         */
       
    38         static CDpsPtpNotifier* NewL(CDpsUsbNotifier* aParent);
       
    39         
       
    40         /**
       
    41         *   Destructor
       
    42         */
       
    43         ~CDpsPtpNotifier();
       
    44         
       
    45         /**
       
    46         *   Called by UsbNotifier to subscribe set personality notification
       
    47         */
       
    48         void ChangePtpPersonality();
       
    49                             
       
    50     private: // Functions derived from CActive.
       
    51 	    /**
       
    52 	    *   @see CActive
       
    53 	    */
       
    54     	void RunL();
       
    55     	
       
    56     	/**
       
    57     	*   @see CActive
       
    58     	*/
       
    59 	    void DoCancel();
       
    60 	    
       
    61 	    /**
       
    62 	    *   @see CActive
       
    63 	    */
       
    64 	    TInt RunError(TInt aError);
       
    65 	    
       
    66 	private:
       
    67 	    /**
       
    68 	    * Default constructor
       
    69 	    */
       
    70 	    CDpsPtpNotifier(CDpsUsbNotifier* aParent);
       
    71 	    
       
    72 	private:
       
    73 	    // not owned by this class
       
    74 	    CDpsUsbNotifier* iNotifier;  
       
    75 	    
       
    76     };
       
    77 
       
    78 #endif