|
1 /* |
|
2 * Copyright (c) 2006 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: Header of DRMConfigIntfcImpl object. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #include "DRMConfigIntfcImpl.h" |
|
20 #include "DataBufferDataSource.h" |
|
21 |
|
22 CDRMConfigIntcfImpl::CDRMConfigIntcfImpl( CDataBufferMultimediaSource& aDRMHandler ) |
|
23 :iDRMHandler(&aDRMHandler) |
|
24 { |
|
25 // No Impl |
|
26 } |
|
27 |
|
28 CDRMConfigIntcfImpl::~CDRMConfigIntcfImpl() |
|
29 { |
|
30 // No Impl |
|
31 } |
|
32 |
|
33 CDRMConfigIntcfImpl* CDRMConfigIntcfImpl::NewL( CDataBufferMultimediaSource& aDRMHandler ) |
|
34 { |
|
35 CDRMConfigIntcfImpl* self = new (ELeave)CDRMConfigIntcfImpl(aDRMHandler); |
|
36 CleanupStack::PushL(self); |
|
37 self->ConstructL(); |
|
38 CleanupStack::Pop(self); |
|
39 return self; |
|
40 } |
|
41 void CDRMConfigIntcfImpl::ConstructL() |
|
42 { |
|
43 // No Impl |
|
44 } |
|
45 |
|
46 TInt CDRMConfigIntcfImpl::GetDRMType( TDRMType& aDRMType ) |
|
47 { |
|
48 return iDRMHandler->GetDRMType(aDRMType); |
|
49 } |
|
50 |
|
51 TInt CDRMConfigIntcfImpl::GetAllowedOutputDeviceCount( TInt& aCount ) |
|
52 { |
|
53 return iDRMHandler->GetAllowedOutputDeviceCount(aCount); |
|
54 } |
|
55 |
|
56 TInt CDRMConfigIntcfImpl::GetAllowedOutputDevice( |
|
57 TInt aIndex, |
|
58 TDRMAllowedOutputDevice& aOutputDevice ) |
|
59 { |
|
60 return iDRMHandler->GetAllowedOutputDevice( aIndex, aOutputDevice ); |
|
61 } |
|
62 |
|
63 // End of file |