multimediacommscontroller/mmccsubcontroller/inc/mcccompletecallback.h
changeset 0 1bce908db942
equal deleted inserted replaced
-1:000000000000 0:1bce908db942
       
     1 /*
       
     2 * Copyright (c) 2004 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 
       
    19 
       
    20 
       
    21 #ifndef MCCCOMPLETECALLBACK_H
       
    22 #define MCCCOMPLETECALLBACK_H
       
    23 
       
    24 //  INCLUDES
       
    25 #include <e32base.h>
       
    26 #include <mmf/common/mmfcontrollerframework.h>
       
    27 
       
    28 // CONSTANTS
       
    29 
       
    30 // MACROS
       
    31 
       
    32 // DATA TYPES
       
    33 
       
    34 // FUNCTION PROTOTYPES
       
    35 
       
    36 // FORWARD DECLARATIONS
       
    37 
       
    38 // CLASS DECLARATION
       
    39 
       
    40 /**
       
    41 *  DESCRIPTION
       
    42 *
       
    43 *  @lib Mccsubhtreads.dll
       
    44 *  @since Series 60 3.0
       
    45 */
       
    46 #ifdef EKA2
       
    47 NONSHARABLE_CLASS( CCompleteCallback ) : public CActive
       
    48 #else
       
    49 class CCompleteCallback : public CActive
       
    50 #endif
       
    51     {
       
    52     public: // Constructors and destructor
       
    53         /**
       
    54         * Constructor
       
    55         */
       
    56         CCompleteCallback( MAsyncEventHandler& aEventhandler, 
       
    57                 TBool aWaitForSink );
       
    58 
       
    59         /**
       
    60         * Destructor
       
    61         */
       
    62         virtual ~CCompleteCallback();
       
    63 
       
    64     public: // New functions
       
    65 
       
    66         /**
       
    67         * Signals the datapath when datapath is completed
       
    68         * @since
       
    69         * @param [input] Completion error code
       
    70         * @return void
       
    71         */
       
    72         void SignalDataPathComplete( TInt aDataPathError );
       
    73 
       
    74     private:    // New functions
       
    75 
       
    76         /**
       
    77         * Activates and returns the current status of CCompleteCallback
       
    78         * @since
       
    79         * @param None
       
    80         * @return TRequestStatus Status of this request
       
    81         */
       
    82         TRequestStatus& ActiveStatus();
       
    83 
       
    84     public: // Functions from baseclasses
       
    85  
       
    86     protected:  // Functions from baseclasses
       
    87         
       
    88         /**
       
    89         * From CActive
       
    90         */
       
    91         void RunL();
       
    92 
       
    93         /**
       
    94         * From CActive
       
    95         */
       
    96         void DoCancel();
       
    97         
       
    98         /**
       
    99         * From CActive
       
   100         */        
       
   101         TInt RunError( TInt aError );
       
   102 
       
   103     private:
       
   104         
       
   105         // Eventhandler
       
   106         MAsyncEventHandler& iEventhandler;
       
   107 
       
   108         TBool iDataPathComplete;
       
   109         TBool iSinkComplete;
       
   110         TBool iWaitForSink;
       
   111 
       
   112         TInt iSinkError;
       
   113         TInt iDataPathError;
       
   114     };
       
   115 
       
   116 #endif      // MCCCOMPLETECALLBACK_H
       
   117             
       
   118 // End of File