46
|
1 |
/*
|
|
2 |
* Copyright (c) 2004 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: This class implements an 3GPExt metadata parser
|
|
15 |
*
|
|
16 |
*/
|
|
17 |
|
|
18 |
// INCLUDE FILES
|
|
19 |
#include "3GPExtParser.h"
|
|
20 |
|
|
21 |
|
|
22 |
|
|
23 |
// ============================ MEMBER FUNCTIONS ===============================
|
|
24 |
|
|
25 |
// -----------------------------------------------------------------------------
|
|
26 |
// C3GPExtParser::C3GPExtParser
|
|
27 |
// C++ default constructor can NOT contain any code, that
|
|
28 |
// might leave.
|
|
29 |
// -----------------------------------------------------------------------------
|
|
30 |
//
|
|
31 |
C3GPExtParser::C3GPExtParser(MP4Handle& aMP4Handle): iMP4Handle(aMP4Handle), ilst(NULL, 0)
|
|
32 |
{
|
|
33 |
}
|
|
34 |
|
|
35 |
// -----------------------------------------------------------------------------
|
|
36 |
// C3GPExtParser::ConstructL
|
|
37 |
// Symbian 2nd phase constructor can leave.
|
|
38 |
// -----------------------------------------------------------------------------
|
|
39 |
//
|
|
40 |
void C3GPExtParser::ConstructL()
|
|
41 |
{
|
|
42 |
}
|
|
43 |
|
|
44 |
// -----------------------------------------------------------------------------
|
|
45 |
// C3GPExtParser::NewL
|
|
46 |
// Two-phased constructor.
|
|
47 |
// -----------------------------------------------------------------------------
|
|
48 |
//
|
|
49 |
EXPORT_C C3GPExtParser* C3GPExtParser::NewL(MP4Handle& aMP4Handle)
|
|
50 |
{
|
|
51 |
C3GPExtParser* self = new( ELeave ) C3GPExtParser (aMP4Handle);
|
|
52 |
return self;
|
|
53 |
}
|
|
54 |
|
|
55 |
// Destructor
|
|
56 |
C3GPExtParser::~C3GPExtParser()
|
|
57 |
{
|
|
58 |
}
|
|
59 |
|
|
60 |
// -----------------------------------------------------------------------------
|
|
61 |
// 3GPExtParser::GetilstBoxesL
|
|
62 |
// -----------------------------------------------------------------------------
|
|
63 |
//
|
|
64 |
EXPORT_C void C3GPExtParser::GetilstBoxesL(TMetaDataFieldId /*aFieldId*/, HBufC** /*aBuf*/)
|
|
65 |
{
|
|
66 |
User::Leave(KErrNotSupported);
|
|
67 |
}
|
|
68 |
// -----------------------------------------------------------------------------
|
|
69 |
// 3GPExtParser::GetilstBoxesL for 8-bit descriptor fields
|
|
70 |
// -----------------------------------------------------------------------------
|
|
71 |
//
|
|
72 |
EXPORT_C void C3GPExtParser::GetilstBoxesL(TMetaDataFieldId /*aFieldId*/, HBufC8** /*aBuf*/)
|
|
73 |
{
|
|
74 |
User::Leave(KErrNotSupported);
|
|
75 |
}
|
|
76 |
|
|
77 |
// -----------------------------------------------------------------------------
|
|
78 |
// C3GPExtParser::Is3GPExtMetadataL
|
|
79 |
// -----------------------------------------------------------------------------
|
|
80 |
//
|
|
81 |
EXPORT_C TBool C3GPExtParser::Is3GPExtMetadataL()
|
|
82 |
{
|
|
83 |
User::Leave(KErrNotSupported);
|
|
84 |
return EFalse;
|
|
85 |
}
|
|
86 |
|
|
87 |
// -----------------------------------------------------------------------------
|
|
88 |
// 3GPExtParser::MapID3v1GenreToString()
|
|
89 |
// -----------------------------------------------------------------------------
|
|
90 |
//
|
|
91 |
void C3GPExtParser::ParseIlstBoxesL()
|
|
92 |
{
|
|
93 |
}
|
|
94 |
|
|
95 |
// -----------------------------------------------------------------------------
|
|
96 |
// 3GPExtParser::MapID3v1GenreToString()
|
|
97 |
// -----------------------------------------------------------------------------
|
|
98 |
//
|
|
99 |
void C3GPExtParser::MapID3GenreToString(TInt /*aNum*/, TDes& /*aGenrePtr*/)
|
|
100 |
{
|
|
101 |
}
|
|
102 |
|
|
103 |
|
|
104 |
// -----------------------------------------------------------------------------
|
|
105 |
// 3GPExtParser::TranslateMP4Err
|
|
106 |
// -----------------------------------------------------------------------------
|
|
107 |
//
|
|
108 |
TInt C3GPExtParser::TranslateMP4Err(MP4Err /*aError*/)
|
|
109 |
{
|
|
110 |
return KErrNotSupported;
|
|
111 |
}
|
|
112 |
|
|
113 |
|
|
114 |
|
|
115 |
// End of File
|