commondrm/drmrightsmanagerui/src/DRMViewItems.cpp
changeset 0 95b198f216e5
child 18 8a03a285ab14
equal deleted inserted replaced
-1:000000000000 0:95b198f216e5
       
     1 /*
       
     2 * Copyright (c) 2003 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:  Implementation of TItemData class
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 // INCLUDE FILES
       
    20 #include <e32std.h>
       
    21 
       
    22 #include "DRMViewItems.h"
       
    23 
       
    24 
       
    25 // ================= MEMBER FUNCTIONS =======================
       
    26 //
       
    27 // -----------------------------------------------------------------------------
       
    28 // TItemData::TItemData
       
    29 // -----------------------------------------------------------------------------
       
    30 //
       
    31 TItemData::TItemData()
       
    32 : iIndexInArray( -1 ),
       
    33   iItemName( NULL ), 
       
    34   iItemFullName( NULL ), 
       
    35   iIndexIcon( -1 ), 
       
    36   iTypeOfObject( -1 ),
       
    37   iContentCanBeSent( EFalse ),
       
    38   iLocalID( 0 ),
       
    39   iContentURI( NULL ),
       
    40   iFutureActivationTime( 0 ),
       
    41   iUnlimitedRights( EFalse ),
       
    42   iIndividualConstraint( EFalse ),
       
    43   iUsageAllowed( ETrue )
       
    44     {
       
    45     }
       
    46 
       
    47 
       
    48 // -----------------------------------------------------------------------------
       
    49 // TItemData::TItemData
       
    50 // -----------------------------------------------------------------------------
       
    51 //
       
    52 TItemData::TItemData( const TInt aIndexInArray,
       
    53                       const TDesC& aItemName, 
       
    54                       const TDesC& aItemFullName, 
       
    55                       const TInt aIndexIcon, 
       
    56                       const TInt aTypeOfObject,
       
    57                       const TBool aContentCanBeSent, 
       
    58                       const TDesC8& aContentURI, 
       
    59                       const TTime& aFutureActivationTime, 
       
    60                       const TBool aUnlimitedRights,
       
    61                       const TBool aIndividualConstraint,
       
    62                       const TBool aUsageAllowed )
       
    63 : iIndexInArray( aIndexInArray ),
       
    64   iItemName( aItemName ), 
       
    65   iItemFullName( aItemFullName ), 
       
    66   iIndexIcon( aIndexIcon ), 
       
    67   iTypeOfObject( aTypeOfObject ),
       
    68   iContentCanBeSent( aContentCanBeSent ),
       
    69   iLocalID( 0 ),
       
    70   iContentURI( aContentURI ),
       
    71   iFutureActivationTime( aFutureActivationTime ),
       
    72   iUnlimitedRights( aUnlimitedRights ),
       
    73   iIndividualConstraint( aIndividualConstraint ),
       
    74   iUsageAllowed( aUsageAllowed )
       
    75     {
       
    76     }
       
    77 
       
    78 
       
    79 // -----------------------------------------------------------------------------
       
    80 // TItemData::TItemData
       
    81 // -----------------------------------------------------------------------------
       
    82 //
       
    83 TItemData::TItemData( const TInt aIndexInArray,
       
    84                       const TDesC& aItemName, 
       
    85                       const TDesC& aItemFullName, 
       
    86                       const TInt aIndexIcon, 
       
    87                       const TInt aTypeOfObject,
       
    88                       const TUint32 aLocalID,
       
    89                       const TDesC8& aContentURI, 
       
    90                       const TTime& aFutureActivationTime, 
       
    91                       const TBool aUnlimitedRights,
       
    92                       const TBool aIndividualConstraint,
       
    93                       const TBool aUsageAllowed )
       
    94 : iIndexInArray( aIndexInArray ),
       
    95   iItemName( aItemName ), 
       
    96   iItemFullName( aItemFullName ), 
       
    97   iIndexIcon( aIndexIcon ), 
       
    98   iTypeOfObject( aTypeOfObject ),
       
    99   iContentCanBeSent( EFalse ),
       
   100   iLocalID( aLocalID ),
       
   101   iContentURI( aContentURI ),
       
   102   iFutureActivationTime( aFutureActivationTime ),
       
   103   iUnlimitedRights( aUnlimitedRights ),
       
   104   iIndividualConstraint( aIndividualConstraint ),
       
   105   iUsageAllowed( aUsageAllowed )
       
   106     {
       
   107     }
       
   108 
       
   109 
       
   110 // End of File