|
1 /* |
|
2 * Copyright (c) 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: Recognizer for Helix Audio files |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef CHXAUDIOPLAYCONTROLLERRECOGNIZER_H |
|
20 #define CHXAUDIOPLAYCONTROLLERRECOGNIZER_H |
|
21 |
|
22 #include <apmrec.h> // base class defined here |
|
23 |
|
24 //*** user include files go here: |
|
25 |
|
26 //#include "?include_file" |
|
27 |
|
28 //*** forward declarations go here: |
|
29 |
|
30 //class ?forward_classname; |
|
31 |
|
32 //*** external data types go here: |
|
33 |
|
34 /** ?description */ |
|
35 //extern ?data_type; |
|
36 |
|
37 //*** global function prototypes (which should be very rare) go here: |
|
38 /** |
|
39 * ?description |
|
40 * |
|
41 * @since S60 ?S60_version |
|
42 * @param ?arg1 ?description |
|
43 * @return ?description |
|
44 */ |
|
45 //?type ?function_name( ?arg_list ); |
|
46 |
|
47 //*** constants go here: |
|
48 |
|
49 /** ?description */ |
|
50 //const ?type ?constant_var = ?constant; |
|
51 |
|
52 /** |
|
53 * Concrete implementation of the recognizer API used to recognize Real Audio files. |
|
54 * |
|
55 * @lib HXAudioPlayControllerRecognizer.lib |
|
56 * @since S60 v3.2 |
|
57 */ |
|
58 class CHXAudioPlayControllerRecognizer : public CApaDataRecognizerType |
|
59 { |
|
60 public: |
|
61 |
|
62 static CHXAudioPlayControllerRecognizer* NewL(); |
|
63 |
|
64 |
|
65 /** |
|
66 * Destructor. |
|
67 */ |
|
68 virtual ~CHXAudioPlayControllerRecognizer(); |
|
69 |
|
70 |
|
71 /** |
|
72 * Creates recognizer |
|
73 * @since 3.2 |
|
74 * @param none |
|
75 * @returns recognizer instance |
|
76 */ |
|
77 static CApaDataRecognizerType* CreateRecognizerL(); |
|
78 |
|
79 private: |
|
80 |
|
81 /** |
|
82 * From CApaDataRecognizerType |
|
83 * Returns one of the SupportedDataType |
|
84 * @since 3.2 |
|
85 * @param aIndex - depending on the file extension |
|
86 * @return Supported DataType |
|
87 */ |
|
88 TDataType SupportedDataTypeL( TInt aIndex ) const; |
|
89 |
|
90 /** |
|
91 * From CApaDataRecognizerType |
|
92 * Returns the buffersize needed to scan |
|
93 * @since 3.2 |
|
94 * @param none |
|
95 * @return BufferSize if needed |
|
96 */ |
|
97 TUint PreferredBufSize(); |
|
98 |
|
99 /** |
|
100 * From CApaDataRecognizerType |
|
101 * Do the recognition of the file using the name of the |
|
102 * the file or the buffer to scan |
|
103 * @since 3.2 |
|
104 * @param aName Name of the file |
|
105 * @param aBuffer Buffer that shall be scanned for recognition |
|
106 * @return void |
|
107 */ |
|
108 void DoRecognizeL( const TDesC& aName, const TDesC8& aBuffer ); |
|
109 |
|
110 /** |
|
111 * C++ default constructor. |
|
112 */ |
|
113 CHXAudioPlayControllerRecognizer(); |
|
114 |
|
115 void ConstructL(); |
|
116 |
|
117 TBool IsRealMimeTypeSupported(const TDesC& aMimeType); |
|
118 TBool IsASFTypeSupported(const TDesC& aMimeType); |
|
119 private: // data |
|
120 |
|
121 }; |
|
122 |
|
123 //#include "?include_file.inl" |
|
124 |
|
125 |
|
126 #endif // CHXAUDIOPLAYCONTROLLERRECOGNIZER_H |