codhandler/codeng/inc/CodSaver.inl
changeset 0 dd21522fd290
equal deleted inserted replaced
-1:000000000000 0:dd21522fd290
       
     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 the License "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 *      Inline method definitions of class CCodSaver.   
       
    16 *      
       
    17 *
       
    18 */
       
    19 
       
    20 
       
    21 #ifndef COD_SAVER_INL
       
    22 #define COD_SAVER_INL
       
    23 
       
    24 // ================= MEMBER FUNCTIONS =======================
       
    25 
       
    26 // ---------------------------------------------------------
       
    27 // CCodSaver::CCodSaver()
       
    28 // ---------------------------------------------------------
       
    29 //
       
    30 CCodSaver::CCodSaver( const TDesC8& aType )
       
    31 : iType( aType ),
       
    32   iSize( 0 ),
       
    33   iMaxSize( 0 ),
       
    34   iHandler( KNullUid ),
       
    35   iState( EInit )
       
    36     {
       
    37     }
       
    38 
       
    39 // ---------------------------------------------------------
       
    40 // CCodSaver::DataType()
       
    41 // ---------------------------------------------------------
       
    42 //
       
    43 const TDataType& CCodSaver::DataType() const
       
    44     {
       
    45     return iType;
       
    46     }
       
    47 
       
    48 // ---------------------------------------------------------
       
    49 // CCodSaver::DataSize()
       
    50 // ---------------------------------------------------------
       
    51 //
       
    52 TInt CCodSaver::DataSize() const
       
    53     {
       
    54     return iSize;
       
    55     }
       
    56 
       
    57 // ---------------------------------------------------------
       
    58 // CCodSaver::SetSourceUriL()
       
    59 // ---------------------------------------------------------
       
    60 //
       
    61 void CCodSaver::SetSourceUriL( const TDesC8& aSourceUri )
       
    62     {
       
    63     HBufC8* buf = aSourceUri.AllocL();
       
    64     delete iSourceUri;
       
    65     iSourceUri = buf;
       
    66     }
       
    67 
       
    68 // ---------------------------------------------------------
       
    69 // CCodSaver::SetParams()
       
    70 // ---------------------------------------------------------
       
    71 //
       
    72 void CCodSaver::SetParams( const CAiwGenericParamList* aParams )
       
    73     {
       
    74     iParams = aParams;
       
    75     }
       
    76 
       
    77 #endif /* def COD_SAVER_INL */