|
1 /* |
|
2 * Copyright (c) 2002-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: RingToneRecognizer |
|
15 * |
|
16 */ |
|
17 |
|
18 #ifndef RECRT_H |
|
19 #define RECRT_H |
|
20 |
|
21 // INCLUDES |
|
22 #include <apmrec.h> |
|
23 |
|
24 // CONSTANTS |
|
25 const TInt KRingingToneRecognizerImplementationUid = 0x101F8828; |
|
26 |
|
27 |
|
28 /** |
|
29 * CApaRingingToneRecognizer. |
|
30 * Recognizer plug-in for ringing tones. |
|
31 */ |
|
32 class CApaRingingToneRecognizer : public CApaDataRecognizerType |
|
33 { |
|
34 public: // Constructor and destructor |
|
35 /** |
|
36 * C++ default constructor. |
|
37 */ |
|
38 CApaRingingToneRecognizer(); |
|
39 |
|
40 /** |
|
41 * Destructor. |
|
42 */ |
|
43 virtual ~CApaRingingToneRecognizer(); |
|
44 |
|
45 public: // New functions |
|
46 |
|
47 static CApaDataRecognizerType* CreateRecognizerL(); |
|
48 |
|
49 public: // Functions from base classes |
|
50 /** |
|
51 * From CApaDataRecognizerType |
|
52 */ |
|
53 TUint PreferredBufSize(); |
|
54 |
|
55 /** |
|
56 * From CApaDataRecognizerType |
|
57 */ |
|
58 TDataType SupportedDataTypeL(TInt aIndex) const; |
|
59 |
|
60 private: // Functions from base classes |
|
61 /** |
|
62 * From CApaDataRecognizerType |
|
63 */ |
|
64 void DoRecognizeL(const TDesC& aName, const TDesC8& aBuffer); |
|
65 }; |
|
66 |
|
67 #endif // RECRT_H |