|
1 /* |
|
2 * Copyright (c) 2009 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: Media dp specific property description construction utility. |
|
15 * Used by all request processors which related to property description |
|
16 * |
|
17 */ |
|
18 |
|
19 #include <mtp/cmtptypeobjectpropdesc.h> |
|
20 #include <mtp/cmtptypestring.h> |
|
21 |
|
22 #include "cabstractmediamtpdataproviderdescriptionutility.h" |
|
23 #include "mmmtpdpconfig.h" |
|
24 #include "mmmtpdplogger.h" |
|
25 |
|
26 // ----------------------------------------------------------------------------- |
|
27 // CAbstractMediaMtpDataProviderDescriptionUtility::NewL |
|
28 // |
|
29 // ----------------------------------------------------------------------------- |
|
30 // |
|
31 CAbstractMediaMtpDataProviderDescriptionUtility* CAbstractMediaMtpDataProviderDescriptionUtility::NewL() |
|
32 { |
|
33 CAbstractMediaMtpDataProviderDescriptionUtility* self = |
|
34 new( ELeave ) CAbstractMediaMtpDataProviderDescriptionUtility(); |
|
35 |
|
36 return self; |
|
37 } |
|
38 |
|
39 CAbstractMediaMtpDataProviderDescriptionUtility::CAbstractMediaMtpDataProviderDescriptionUtility() |
|
40 { |
|
41 // Do nothing |
|
42 } |
|
43 |
|
44 CAbstractMediaMtpDataProviderDescriptionUtility::~CAbstractMediaMtpDataProviderDescriptionUtility() |
|
45 { |
|
46 // Do nothing |
|
47 } |
|
48 |
|
49 // ----------------------------------------------------------------------------- |
|
50 // CAbstractMediaMtpDataProviderDescriptionUtility::NewInterdepentPropDescL |
|
51 // Construct media dp specific interdependent property description. |
|
52 // ----------------------------------------------------------------------------- |
|
53 // |
|
54 CMTPTypeInterdependentPropDesc* CAbstractMediaMtpDataProviderDescriptionUtility::NewInterdepentPropDescL( MMmMtpDpConfig& /*aDpConfig*/, |
|
55 TUint /*aFormatCode*/ ) |
|
56 { |
|
57 PRINT( _L( "MM MTP => CAbstractMediaMtpDataProviderDescriptionUtility::NewInterdepentPropDescL" ) ); |
|
58 |
|
59 CMTPTypeInterdependentPropDesc* interdependentPropDesc = CMTPTypeInterdependentPropDesc::NewL(); |
|
60 |
|
61 PRINT( _L( "MM MTP <= CAbstractMediaMtpDataProviderDescriptionUtility::NewInterdepentPropDescL" ) ); |
|
62 return interdependentPropDesc; |
|
63 } |
|
64 |
|
65 // ----------------------------------------------------------------------------- |
|
66 // CAbstractMediaMtpDataProviderDescriptionUtility::NewSpecificPropDescL |
|
67 // Construct media dp specific property description. |
|
68 // ----------------------------------------------------------------------------- |
|
69 // |
|
70 CMTPTypeObjectPropDesc* CAbstractMediaMtpDataProviderDescriptionUtility::NewSpecificPropDescL( TUint /*aFormatCode*/, |
|
71 TUint16 aPropCode ) |
|
72 { |
|
73 CMTPTypeObjectPropDesc* propertyDesc = NULL; |
|
74 |
|
75 switch ( aPropCode ) |
|
76 { |
|
77 // format specific |
|
78 // May need add implementation here for further extension. |
|
79 default: |
|
80 // Do nothing now. |
|
81 break; |
|
82 } |
|
83 return propertyDesc; |
|
84 } |
|
85 |
|
86 // end of file |