multimediacommsengine/mmceshared/inc/mcecommsrpsink.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 
       
    21 #ifndef CMCECOMMSRPSINK_H
       
    22 #define CMCECOMMSRPSINK_H
       
    23 
       
    24 #include <e32std.h>
       
    25 #include "mcecommediasink.h"
       
    26 #include<e32cmn.h>
       
    27 #include<uri8.h>
       
    28 #include<badesca.h>
       
    29 
       
    30 //FORWARD DECLARATIONS
       
    31 
       
    32 /**
       
    33  * 
       
    34  *
       
    35  * @lib 
       
    36  */
       
    37 class CMceComMsrpSink: public CMceComMediaSink
       
    38     {
       
    39 
       
    40 public: // Constructors and destructor
       
    41 
       
    42 
       
    43     /**
       
    44     * Constructor
       
    45     */
       
    46     static CMceComMsrpSink* NewL();
       
    47 
       
    48     /**
       
    49     * Constructor
       
    50     */
       
    51     static CMceComMsrpSink* NewLC();
       
    52 
       
    53     /**
       
    54     * Destructor.
       
    55     */
       
    56     ~CMceComMsrpSink();
       
    57 
       
    58 public: // from CMceComMediaSource
       
    59 
       
    60     /**
       
    61     * Internalizes flat data
       
    62     * @param aReadStream read stream
       
    63     */
       
    64     void InternalizeFlatL( RReadStream& aReadStream );
       
    65 
       
    66     /**
       
    67     * Externalizes flat data
       
    68     * @param aWriteStream write stream
       
    69     */
       
    70     void ExternalizeFlatL( RWriteStream& aWriteStream );
       
    71 
       
    72     /**
       
    73     * Clones this object
       
    74     * @return the cloned object
       
    75     */
       
    76     CMceComMediaSink* CloneL();
       
    77     
       
    78     /**
       
    79      * Updates this object
       
    80      */
       
    81     
       
    82     void UpdateFileShareAttrL( CMceComMsrpSink& aUpdate );
       
    83     
       
    84     /**
       
    85     * Updates this object
       
    86     * @param aUpdate object updates this
       
    87     */
       
    88     void UpdateL( CMceComMediaSink& aUpdate );
       
    89     
       
    90     /**
       
    91      * Should not use RTCP for msrp sessions
       
    92      * return EFalse, if not required
       
    93      */
       
    94     TBool UseRTCP();
       
    95     
       
    96 #ifdef MCE_COMMON_SERVER_SIDE
       
    97 
       
    98     /**
       
    99     * Returns mcc type for mcc endpoint
       
   100     * @return mcc type
       
   101     */
       
   102     const TUid MccType();
       
   103         
       
   104     /**
       
   105     * Prepares this endpoint
       
   106     */
       
   107     void PrepareL();
       
   108     
       
   109 
       
   110 #endif//MCE_COMMON_SERVER_SIDE
       
   111  
       
   112 public:
       
   113     RPointerArray <TUriC8> iPath;    
       
   114     HBufC8* iSessInfo;
       
   115     CDesC8ArrayFlat iAcceptTypes; 
       
   116     TBuf8<50> iAcceptWrappedTypes;
       
   117     TBool iWrappedTypes;
       
   118     TBool iFileShare;
       
   119     HBufC* iFileName;
       
   120     TUint      iFileSize;
       
   121     HBufC8*  iFileType;
       
   122     TBuf8<32>      iFileTransferid;
       
   123     TBuf8<25>  iDispositionValue;
       
   124     TBool iSecureConnection;
       
   125     HBufC*    iFilePath;
       
   126     TBool iFTProgressNotification;
       
   127 
       
   128 protected:
       
   129 
       
   130     /**
       
   131     * C++ default constructor.
       
   132     * @param type of source
       
   133     */
       
   134     CMceComMsrpSink();
       
   135     
       
   136     void ConstructL(CMceComMsrpSink &aObj);
       
   137     
       
   138     void ConstructL();
       
   139     
       
   140     #ifdef EUNIT_TEST
       
   141     friend class UT_CMceComMsrpSink;
       
   142     #endif
       
   143 
       
   144 
       
   145     };
       
   146 
       
   147 
       
   148 #endif