multimediacommsengine/mmceshared/inc/mcecommicsource.h
changeset 0 1bce908db942
equal deleted inserted replaced
-1:000000000000 0:1bce908db942
       
     1 /*
       
     2 * Copyright (c) 2005 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 CMCECOMMICSOURCE_H
       
    22 #define CMCECOMMICSOURCE_H
       
    23 
       
    24 #include <e32std.h>  
       
    25 #include "mcecommediasource.h"
       
    26 
       
    27 /**
       
    28  * 
       
    29  *
       
    30  * @lib 
       
    31  */
       
    32 class CMceComMicSource: public CMceComMediaSource
       
    33 	{
       
    34 
       
    35 public: // Constructors and destructor
       
    36 
       
    37     /**
       
    38     * Constructor
       
    39     */
       
    40     static CMceComMicSource* NewL();
       
    41 
       
    42     /**
       
    43     * Constructor
       
    44     */
       
    45     static CMceComMicSource* NewLC();
       
    46 
       
    47     /**
       
    48     * Destructor.
       
    49     */
       
    50 	~CMceComMicSource();
       
    51 
       
    52 
       
    53 public: // from CMceComMediaSource
       
    54 
       
    55     /**
       
    56     * Internalizes flat data
       
    57     * @param aReadStream read stream
       
    58     */
       
    59     void InternalizeFlatL( RReadStream& aReadStream );
       
    60 
       
    61     /**
       
    62     * Externalizes flat data
       
    63     * @param aWriteStream write stream
       
    64     */
       
    65     void ExternalizeFlatL( RWriteStream& aWriteStream );
       
    66     
       
    67     /**
       
    68     * Traversal event handler
       
    69     * @param aEvent the event
       
    70     * @return status, if event was consumed or not or object needs update
       
    71     */
       
    72     TInt EventReceivedL( TMceComEvent& aEvent );
       
    73     
       
    74     /**
       
    75     * Updates this object
       
    76     * @param aUpdate object updates this
       
    77     */
       
    78     void UpdateL( CMceComMediaSource& aUpdate );
       
    79 
       
    80     /**
       
    81     * Clones this object
       
    82     * @return the cloned object
       
    83     */
       
    84     CMceComMediaSource* CloneL();
       
    85 
       
    86     /**
       
    87     * Is this endpoint re-usable
       
    88     * @return ETrue, if this endpoint is re-usable
       
    89     */
       
    90     TBool Reusable( const CMceComMediaStream& aParent ) const;
       
    91     
       
    92     
       
    93 #ifdef MCE_COMMON_SERVER_SIDE
       
    94 
       
    95     /**
       
    96     * Returns mcc type for mcc endpoint
       
    97     * @return mcc type
       
    98     */
       
    99     const TUid MccType();
       
   100     
       
   101     /**
       
   102     * Prepares this endpoint
       
   103     */
       
   104     void PrepareL();
       
   105 
       
   106 #endif//MCE_COMMON_SERVER_SIDE
       
   107     
       
   108 
       
   109 protected:
       
   110 
       
   111     /**
       
   112     * C++ default constructor.
       
   113     */
       
   114 	CMceComMicSource();
       
   115 		
       
   116 public: // Data
       
   117 
       
   118     /**
       
   119     * Mic gain
       
   120     */
       
   121     TInt iGain;
       
   122     
       
   123 	};
       
   124 
       
   125 
       
   126 #endif