multimediacommsengine/mmceshared/inc/mcecomexternalsource.h
branchrcs
changeset 49 64c62431ac08
equal deleted inserted replaced
44:fb024d5e35fa 49:64c62431ac08
       
     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 #ifndef CMCECOMEXTERNALSOURCE_H
       
    21 #define CMCECOMEXTERNALSOURCE_H
       
    22 
       
    23 #include <e32std.h>  
       
    24 #include "mcecommediasource.h"
       
    25 #include "mcemediasource.h"
       
    26 
       
    27 /**
       
    28  * 
       
    29  *
       
    30  * @lib 
       
    31  */
       
    32 class CMceComExternalSource: public CMceComMediaSource
       
    33     {
       
    34 
       
    35 public: // Constructors and destructor
       
    36 
       
    37     /**
       
    38     * Constructor
       
    39     */
       
    40     static CMceComExternalSource* NewL();
       
    41 
       
    42     /**
       
    43     * Constructor
       
    44     */
       
    45     static CMceComExternalSource* NewLC();
       
    46 
       
    47     /**
       
    48     * Destructor.
       
    49     */
       
    50     ~CMceComExternalSource();
       
    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        * Clones this object
       
    69        * @return the cloned object
       
    70        */
       
    71     CMceComMediaSource* CloneL();
       
    72     
       
    73 #ifdef MCE_COMMON_SERVER_SIDE
       
    74 
       
    75     /**
       
    76     * Returns mcc type for mcc endpoint
       
    77     * @return mcc type
       
    78     */
       
    79     const TUid MccType();
       
    80     
       
    81     /**
       
    82     * Prepares this endpoint
       
    83     */
       
    84     void PrepareL();
       
    85 
       
    86 #endif//MCE_COMMON_SERVER_SIDE
       
    87     
       
    88 
       
    89 protected:
       
    90 
       
    91     /**
       
    92     * C++ default constructor.
       
    93     */
       
    94     CMceComExternalSource();
       
    95         
       
    96     };
       
    97 
       
    98 
       
    99 #endif