0
|
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:
|
|
15 |
*
|
|
16 |
*/
|
|
17 |
// trkdummyrecognizer.cpp
|
|
18 |
//
|
|
19 |
|
|
20 |
// system includes
|
|
21 |
#include <apmrec.h>
|
|
22 |
#include <apmstd.h>
|
|
23 |
#include <eikenv.h>
|
|
24 |
// local includes
|
|
25 |
#include "trkdummyrecognizer.h"
|
|
26 |
|
|
27 |
// constants
|
|
28 |
const TInt KNumDataTypesSupported = 1;
|
|
29 |
const TInt KMaxBufferLength = 4;
|
|
30 |
const TInt KDummyRecognizerValue = 0x200159DC;
|
|
31 |
const TUid KUidDummyRecognizer = {KDummyRecognizerValue};
|
|
32 |
_LIT8(KDataTypeDummy, "text/vnd.nokia.trklauncherrec");
|
|
33 |
|
|
34 |
//
|
|
35 |
// CTrkDummyRecognizer
|
|
36 |
//
|
|
37 |
CTrkDummyRecognizer::CTrkDummyRecognizer()
|
|
38 |
:CApaDataRecognizerType(KUidDummyRecognizer, CApaDataRecognizerType::ENormal)
|
|
39 |
{
|
|
40 |
iCountDataTypes = KNumDataTypesSupported;
|
|
41 |
}
|
|
42 |
|
|
43 |
TUint CTrkDummyRecognizer::PerferredBufSize()
|
|
44 |
{
|
|
45 |
return KMaxBufferLength;
|
|
46 |
}
|
|
47 |
|
|
48 |
TDataType CTrkDummyRecognizer::SupportedDataTypeL(TInt /*aIndex*/) const
|
|
49 |
{
|
|
50 |
return TDataType(KDataTypeDummy);
|
|
51 |
}
|