commondrm/drmsettingsplugin/src/drmsettingsusagelist.cpp
changeset 31 908beac81e0a
parent 29 3bdc3b853094
child 34 7f8fbd0317cc
child 38 9dfde139acda
child 44 d642c9180c54
--- a/commondrm/drmsettingsplugin/src/drmsettingsusagelist.cpp	Mon May 03 12:46:34 2010 +0300
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,97 +0,0 @@
-/*
-* Copyright (c) 2007 Nokia Corporation and/or its subsidiary(-ies).
-* All rights reserved.
-* This component and the accompanying materials are made available
-* under the terms of "Eclipse Public License v1.0"
-* which accompanies this distribution, and is available
-* at the URL "http://www.eclipse.org/legal/epl-v10.html".
-*
-* Initial Contributors:
-* Nokia Corporation - initial contribution.
-*
-* Contributors:
-*
-* Description:  List class for Usage Reporting checkbox
-*
-*/
-
-
-// INCLUDE FILES
-#include "drmsettingsusagelist.h"
-#include "drmsettingsmodel.h"
-
-// CONSTANTS
-const TInt KDRMSettingsListGranularity( 5 );
-
-// ================= MEMBER FUNCTIONS =======================
-
-// ----------------------------------------------------------------------------
-// CDRMSettingUsageList::NewL
-// Two-phased constructor.
-// ----------------------------------------------------------------------------
-//
-CDRMSettingUsageList* CDRMSettingUsageList::NewL( 
-    CDRMSettingsModel* aModel )
-    {
-    CDRMSettingUsageList* self( 
-        new( ELeave ) CDRMSettingUsageList( aModel ) );
-    CleanupStack::PushL( self );
-    self->ConstructL();
-	CleanupStack::Pop( self );
-    return self;
-    }
-    
-// ----------------------------------------------------------------------------
-// CDRMSettingUsageList::CDRMSettingUsageList
-// Default constructor.
-// ----------------------------------------------------------------------------
-//
-CDRMSettingUsageList::CDRMSettingUsageList( CDRMSettingsModel* aModel ) 
-    : CSelectionItemList( KDRMSettingsListGranularity ), iModel( aModel )
-    {
-	}
-
-// ----------------------------------------------------------------------------
-// CDRMSettingUsageList::ConstructL
-// ----------------------------------------------------------------------------
-//
-void CDRMSettingUsageList::ConstructL()
-    {
-    for ( TInt i( 0 ); i < iModel->GetRiContextCount(); i++ )
-        {
-        HBufC* alias( iModel->GetSingleRIAliasL( i ) );
-        CleanupStack::PushL( alias );
-        TBool isAllowed( iModel->IsMeteringAllowed( i ) );
-        CSelectableItem* selItem( new (ELeave) CSelectableItem( *alias, 
-                                                                isAllowed ) );
-        selItem->ConstructL();
-        this->AppendL( selItem );
-        CleanupStack::PopAndDestroy( alias );
-        }
-    }
-
-// ----------------------------------------------------------------------------
-// CDRMSettingUsageList::~CDRMSettingUsageList
-//
-// Destructor
-// ----------------------------------------------------------------------------
-//
-CDRMSettingUsageList::~CDRMSettingUsageList()
-    {
-    this->ResetAndDestroy();
-    }
-
-// ----------------------------------------------------------------------------
-// CDRMSettingUsageList::UpdateContexts
-// ----------------------------------------------------------------------------
-//
-void CDRMSettingUsageList::UpdateContexts()
-    {
-    for ( TInt i( 0 ); i < iModel->GetRiContextCount(); i++ )
-        {
-        CSelectableItem* selItem( this->At( i ) );
-        iModel->SetMeteringStatus( i, selItem->SelectionStatus() );
-        }
-    }
-	
-//  End of File