multimediacommsengine/mmceshared/inc/mcecommsrpsource.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 CMCECOMMSRPSOURCE_H
       
    22 #define CMCECOMMSRPSOURCE_H
       
    23 
       
    24 #include <e32std.h>
       
    25 #include "mcecommediasource.h"
       
    26 #include<e32cmn.h>
       
    27 #include<uri8.h>
       
    28 #include<badesca.h>
       
    29 
       
    30 
       
    31 /**
       
    32  * 
       
    33  *
       
    34  * @lib 
       
    35  */
       
    36 class CMceComMsrpSource: public CMceComMediaSource
       
    37     {
       
    38 
       
    39 public: // Constructors and destructor
       
    40 
       
    41 
       
    42     /**
       
    43     * Constructor
       
    44     */
       
    45     static CMceComMsrpSource* NewL();
       
    46 
       
    47     /**
       
    48     * Constructor
       
    49     */
       
    50     static CMceComMsrpSource* NewLC();
       
    51 
       
    52     /**
       
    53     * Destructor.
       
    54     */
       
    55     ~CMceComMsrpSource();
       
    56 
       
    57 public: // from CMceComMediaSource
       
    58 
       
    59     /**
       
    60     * Internalizes flat data
       
    61     * @param aReadStream read stream
       
    62     */
       
    63     void InternalizeFlatL( RReadStream& aReadStream );
       
    64 
       
    65     /**
       
    66     * Externalizes flat data
       
    67     * @param aWriteStream write stream
       
    68     */
       
    69     void ExternalizeFlatL( RWriteStream& aWriteStream );
       
    70 
       
    71     /**
       
    72     * Clones this object
       
    73     * @return the cloned object
       
    74     */
       
    75     CMceComMediaSource* CloneL();
       
    76     
       
    77     /**
       
    78      * Updates this object
       
    79      */
       
    80     
       
    81     void UpdateFileShareAttrL( CMceComMsrpSource& aUpdate );
       
    82     
       
    83     /**
       
    84      * Updates this object
       
    85      * @param aUpdate object updates this
       
    86      */
       
    87     void UpdateL( CMceComMediaSource& aUpdate );
       
    88     
       
    89     /**
       
    90      * Should not use RTCP for msrp sessions
       
    91      * return EFalse, if not required
       
    92      */
       
    93     TBool UseRTCP();
       
    94     
       
    95 #ifdef MCE_COMMON_SERVER_SIDE
       
    96 
       
    97     /**
       
    98     * Returns mcc type for mcc endpoint
       
    99     * @return mcc type
       
   100     */
       
   101     const TUid MccType();   
       
   102 
       
   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 private:
       
   129 
       
   130     /**
       
   131     * C++ default constructor.
       
   132     * @param type of source
       
   133     */
       
   134     CMceComMsrpSource();
       
   135     
       
   136     void ConstructL(CMceComMsrpSource& aSource );
       
   137     
       
   138     void ConstructL();
       
   139         
       
   140     #ifdef EUNIT_TEST
       
   141     friend class UT_CMceComMsrpSource;
       
   142     #endif
       
   143 
       
   144     };
       
   145 
       
   146 
       
   147 #endif // CMCEMSRPSOURCE_H