javamanager/javarecognizer/inc/recjar.h
changeset 21 2a9601315dfc
equal deleted inserted replaced
18:e8e63152f320 21:2a9601315dfc
       
     1 /*
       
     2 * Copyright (c) 2008 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 file contains an implementation of Symbian MIME type recognizer
       
    15  *                for MIME types application/java-archive (.jar) and
       
    16  *                text/vnd.sun.j2me.app-descriptor (.jad)
       
    17  *
       
    18 */
       
    19 
       
    20 
       
    21 #ifndef RECJAR_H
       
    22 #define RECJAR_H
       
    23 
       
    24 #if !defined(__APAFLREC_H__)
       
    25 #include <apaflrec.h>
       
    26 #endif
       
    27 
       
    28 class CApaJarRecognizer : public CApaDataRecognizerType
       
    29 {
       
    30 public:
       
    31     // from CApaDataRecognizerType
       
    32     CApaJarRecognizer();
       
    33     TUint PreferredBufSize();
       
    34     TDataType SupportedDataTypeL(TInt aIndex) const;
       
    35 
       
    36     static CApaDataRecognizerType* CreateRecognizerL();
       
    37 
       
    38 private:
       
    39     // from CApaDataRecognizerType
       
    40     void DoRecognizeL(const TDesC& aName, const TDesC8& aBuffer);
       
    41 };
       
    42 
       
    43 #endif // RECJAR_H