mmserv/voipaudioservices/VoIPIntfc/inc/VoIPDataBufferImpl.h
changeset 0 71ca22bcf22a
child 53 eabc8c503852
equal deleted inserted replaced
-1:000000000000 0:71ca22bcf22a
       
     1 /*
       
     2 * Copyright (c) 2008 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:  VOIP Audio Services  Defines buffer type for VoIP data streaming.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef __VOIPDATABUFFERIMPL_H
       
    20 #define __VOIPDATABUFFERIMPL_H
       
    21 
       
    22 #include <e32base.h>
       
    23 #include <voipdatabuffer.h>
       
    24 
       
    25 
       
    26 /**
       
    27  *  CVoIPDataBuferImpl
       
    28  *  ?description
       
    29  *  @since S60 v5.0
       
    30  */
       
    31 NONSHARABLE_CLASS(CVoIPDataBufferImpl) : public CBase,
       
    32                                          public CVoIPJBDataBuffer
       
    33     {
       
    34 public:
       
    35     /**
       
    36      * 2-phased constructor
       
    37      *
       
    38      * @since S60 v5.0
       
    39      * @param TInt
       
    40      * @return none
       
    41      */
       
    42     static CVoIPDataBufferImpl* NewL(TInt aBufferLen);
       
    43 
       
    44     /**
       
    45      * Destructor
       
    46      *
       
    47      * @since S60 v5.0
       
    48      * @param none
       
    49      * @return none
       
    50      */
       
    51     virtual ~CVoIPDataBufferImpl();
       
    52 
       
    53     /**
       
    54      * GetPayloadPtr
       
    55      *
       
    56      * @since S60 v5.0
       
    57      * @param TPtr8&
       
    58      * @return none
       
    59      */
       
    60     void GetPayloadPtr(TPtr8& aPayloadPtr);
       
    61 
       
    62     /**
       
    63      * SetPayloadPtr
       
    64      *
       
    65      * @since S60 v5.0
       
    66      * @param TPtr8
       
    67      * @return none
       
    68      */
       
    69     void SetPayloadPtr(TPtr8 aPayloadPtr);
       
    70 
       
    71     /**
       
    72      * GetPayloadPtr
       
    73      *
       
    74      * @since S60 v5.0
       
    75      * @param CVoIPDataBuffer::TVoIPBufferType&
       
    76      * @return none
       
    77      */
       
    78     void GetBufferType(CVoIPDataBuffer::TVoIPBufferType& aType);
       
    79 
       
    80 protected:
       
    81     /**
       
    82      * Constructor
       
    83      *
       
    84      * @since S60 v5.0
       
    85      * @param none
       
    86      * @return none
       
    87      */
       
    88     CVoIPDataBufferImpl();
       
    89 
       
    90     /**
       
    91      * Symbian constructor
       
    92      *
       
    93      * @since S60 v5.0
       
    94      * @param TInt
       
    95      * @return void
       
    96      */
       
    97     void ConstructL(TInt aBufferLen);
       
    98 
       
    99 protected:
       
   100     CVoIPDataBuffer::TVoIPBufferType iType;
       
   101     TPtr8   iPayloadPtr;
       
   102     HBufC8* iBuf;
       
   103     TInt    iBufferLen;
       
   104     };
       
   105 
       
   106 #endif //__VOIPDATABUFFERIMPL_H
       
   107 
       
   108 
       
   109 //End of file