00001 /* 00002 * ============================================================================ 00003 * Name : CApaSampleRecognizer from RecognizerEx.h 00004 * Part of : RecognizerEx 00005 * Created : 27/06/2006 by Forum Nokia 00006 * Version : 2.0 00007 * Copyright: Nokia Corporation 00008 * ============================================================================ 00009 */ 00010 00011 #ifndef SAMPLERECOG_H 00012 #define SAMPLERECOG_H 00013 00014 // INCLUDES 00015 #include <apmrec.h> 00016 00017 // CONSTANTS 00018 const TInt KRecognizerExImplementationUid = 0x101FF1ed; 00019 00024 class CApaRecognizerEx: public CApaDataRecognizerType 00025 { 00026 public: 00027 // constructor and destructor 00028 CApaRecognizerEx(); 00029 virtual ~CApaRecognizerEx(); 00030 00031 // creates and returns recognizer 00032 static CApaDataRecognizerType* CreateRecognizerL(); 00033 00034 // returns preferred buffer size 00035 TUint PreferredBufSize(); 00036 00037 // returns supported mime type 00038 TDataType SupportedDataTypeL(TInt aIndex) const; 00039 00040 private: 00041 // recognises the file by name and/or buffer 00042 void DoRecognizeL(const TDesC& aName, const TDesC8& aBuffer); 00043 }; 00044 00045 #endif //SAMPLERECOG_H
Copyright ©2010 Nokia Corporation and/or its subsidiary(-ies).
All rights
reserved. Unless otherwise stated, these materials are provided under the terms of the Eclipse Public License
v1.0.