contentmgmt/referencedrmagent/RefTestAgent/localsdp/inc/sdpattributefieldptrs.h
changeset 72 de46a57f75fb
equal deleted inserted replaced
65:970c0057d9bc 72:de46a57f75fb
       
     1 /*
       
     2 * Copyright (c) 2010 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 * Name          : SdpAttributeFieldPtrs.h
       
    16 * Part of       : Local SDP Codec
       
    17 * Interface     : -
       
    18 * Version       : 1.0
       
    19 *
       
    20 */
       
    21 
       
    22 
       
    23 
       
    24 
       
    25 /**
       
    26  @internalComponent
       
    27 */
       
    28 
       
    29 #ifndef CSDPATTRIBUTEFIELDPTRS_H
       
    30 #define CSDPATTRIBUTEFIELDPTRS_H
       
    31 
       
    32 //  INCLUDES
       
    33 #include <e32base.h>
       
    34 
       
    35 // FORWARD DECLARATIONS
       
    36 class CSdpFmtAttributeField;
       
    37 
       
    38 // CLASS DECLARATION
       
    39 /**
       
    40  *	This class encapsulates the data of CSdpAttributeField.
       
    41  *
       
    42  *  @lib localsdpcodec.lib
       
    43  */
       
    44 class CSdpAttributeFieldPtrs : public CBase
       
    45     {
       
    46     public:
       
    47     
       
    48         static CSdpAttributeFieldPtrs* NewL();
       
    49 	    ~CSdpAttributeFieldPtrs();
       
    50 
       
    51         void SetValueL( const TDesC8& aValue );
       
    52         const TDesC8& Value() const;
       
    53         
       
    54         void SetFmtAttribute( const CSdpFmtAttributeField* aFmtAttribute );
       
    55         const CSdpFmtAttributeField* FmtAttribute() const;
       
    56 
       
    57     private: // Second phase constructors
       
    58     
       
    59         CSdpAttributeFieldPtrs();
       
    60         void ConstructL();
       
    61     
       
    62     private: // Data
       
    63 
       
    64         HBufC8* iValue; // Owned
       
    65         const CSdpFmtAttributeField* iFmtAttributeField; // Not owned	    
       
    66     };
       
    67 
       
    68 #endif // CSDPATTRIBUTEFIELDPTRS_H
       
    69 
       
    70 // End of File