ipappsrv_plat/multimedia_comms_api/inc/mceexternalsource.h
branchrcs
changeset 49 64c62431ac08
child 50 1d8943dd8be6
equal deleted inserted replaced
44:fb024d5e35fa 49:64c62431ac08
       
     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:    
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 #ifndef CMCEEXTERNALSOURCE_H
       
    21 #define CMCEEXTERNALSOURCE_H
       
    22 
       
    23 // INCLUDES
       
    24 #include <e32std.h>
       
    25 #include <mcemediasource.h>
       
    26 
       
    27 // CONSTANTS
       
    28 const TMceSourceType KMceExternalSource = 6;
       
    29 
       
    30 // CLASS DECLARATION
       
    31 /**
       
    32 * Class representing a source for a media stream that is implemented outside MCE.
       
    33 * 
       
    34 *  @lib mceclient.lib
       
    35 */
       
    36 class CMceExternalSource: public CMceMediaSource
       
    37     {
       
    38 
       
    39     public: // Constructors and destructor
       
    40 
       
    41         /**
       
    42         * Two-phased constructor.
       
    43         */
       
    44         IMPORT_C static CMceExternalSource* NewL();
       
    45 
       
    46         /**
       
    47         * Two-phased constructor.
       
    48         */
       
    49         IMPORT_C static CMceExternalSource* NewLC();
       
    50 
       
    51         /**
       
    52         * Destructor.
       
    53         */
       
    54         IMPORT_C ~CMceExternalSource();
       
    55 
       
    56     public: // From CMceMediaSource
       
    57 
       
    58         /**
       
    59         * Sets the source enabled.
       
    60         */
       
    61         IMPORT_C void EnableL(); 
       
    62 
       
    63         /**
       
    64         * Sets the source disabled.
       
    65         */
       
    66         IMPORT_C void DisableL(); 
       
    67 	
       
    68 	private: //methods
       
    69 
       
    70 	    /**
       
    71 	     * C++ default constructor.
       
    72 	     */
       
    73 		CMceExternalSource();
       
    74 
       
    75 	    /**
       
    76 	    * Second-phase constructor.
       
    77 	    */
       
    78 		void ConstructL();
       
    79 		
       
    80         //for testing
       
    81 
       
    82         MCE_UNIT_TEST_DEFS 
       
    83     };
       
    84 
       
    85 
       
    86 #endif // CMCEEXTERNALSOURCE_H