multimediacommscontroller/mmccrtpsourcesink/inc/mmcccryptoadapter.h
changeset 0 1bce908db942
equal deleted inserted replaced
-1:000000000000 0:1bce908db942
       
     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:    Convert MCC Crypto context to the SRTP crypto context form 
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 
       
    21 #ifndef MMCCCRYPTOADAPTER_H
       
    22 #define MMCCCRYPTOADAPTER_H
       
    23 
       
    24 #include <e32base.h>
       
    25 
       
    26 class TMccCryptoContext;
       
    27 
       
    28 /**.
       
    29  * This class Converts MCC Crypto context to the SRTP Crypto context form
       
    30  *
       
    31  *
       
    32  * @lib Mccrtpsourcesink.dll
       
    33  * @since S60 3.1
       
    34  */
       
    35 
       
    36 class TMccCryptoAdapter
       
    37     { 
       
    38 public:
       
    39 
       
    40     /**
       
    41      * Creates Crypto context from serialized crypto policy data
       
    42      *
       
    43      * @since    S60 3.2
       
    44      * @param    aContextParams Context params.       
       
    45      * @return   Crypto context
       
    46      */
       
    47     static CSRTPCryptoContext* CreateCryptoContextL( 
       
    48                                 const TMccCryptoContext& aContextParams );
       
    49     
       
    50     /**
       
    51      * Update crypto context.
       
    52      *
       
    53      * @since    S60 3.2
       
    54      * @param    aContextParams Context params.
       
    55      * @param    aContext SRTP crypto context.      
       
    56      * @return   voi
       
    57      */
       
    58     static void UpdateCryptoContextL( const TMccCryptoContext& aContextParams,
       
    59                                       CSRTPCryptoContext& aContext );   
       
    60     };
       
    61 
       
    62 #endif // MMCCCRYPTOADAPTER_H