contentmgmt/referencedrmagent/RefTestAgent/localsdp/inc/sdporiginfieldptrs.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          : SdpOriginFieldPtrs.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 CSDPORIGINFIELDPTRS_H
       
    30 #define CSDPORIGINFIELDPTRS_H
       
    31 
       
    32 //  INCLUDES
       
    33 #include <e32base.h>
       
    34 
       
    35 // CONSTANTS
       
    36 const TUint KMaxTInt64Digits = 30;
       
    37 
       
    38 // FORWARD DECLARATIONS
       
    39 
       
    40 // CLASS DECLARATION
       
    41 /**
       
    42  *	This class encapsulates the data of CSdpAttributeField.
       
    43  *
       
    44  *  @lib localsdpcodec.lib
       
    45  */
       
    46 class CSdpOriginFieldPtrs : public CBase
       
    47     {
       
    48     public:
       
    49     
       
    50         static CSdpOriginFieldPtrs* NewL( TInt64 aSessionId,
       
    51         								  TInt64 aSessionVersion );
       
    52 	    ~CSdpOriginFieldPtrs();
       
    53 
       
    54         void SetUserNameL( const TDesC8& aUserName );        
       
    55         const TDesC8& UserName() const;
       
    56         
       
    57         void SetSessionIdL( const TDesC8& aSessionId );
       
    58         void SetSessionIdL( TInt64 aSessionId );
       
    59         const TDesC8& SessionId() const;
       
    60         
       
    61         void SetSessionVersionL( const TDesC8& aSessionVersion );
       
    62         void SetSessionVersionL( TInt64 aSessionVersion );
       
    63         const TDesC8& SessionVersion() const;
       
    64 
       
    65     private: // Second phase constructors
       
    66 
       
    67         CSdpOriginFieldPtrs();
       
    68         void ConstructL( TInt64 aSessionId, TInt64 aSessionVersion );
       
    69     
       
    70     private: // Data
       
    71 
       
    72 		// Owned
       
    73 		HBufC8* iUserName;
       
    74 		// Owned
       
    75 		HBufC8* iSessionId;
       
    76 		// Owned
       
    77 		HBufC8* iSessionVersion;
       
    78     };
       
    79 
       
    80 #endif // CSDPORIGINFIELDPTRS_H
       
    81 
       
    82 // End of File