pkiutilities/PKCS12/PKCS12Recognizer/inc/PKCS12Recognizer.h
changeset 0 164170e6151a
equal deleted inserted replaced
-1:000000000000 0:164170e6151a
       
     1 /*
       
     2 * Copyright (c) 2004 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:   Header of recognizer capable of recognizing mime type
       
    15 *                application/x-pkcs12
       
    16 *
       
    17 */
       
    18 
       
    19 
       
    20 
       
    21 #ifndef PKCS12RECOGNIZER_H
       
    22 #define PKCS12RECOGNIZER_H
       
    23 
       
    24 //  INCLUDES
       
    25 #include <apmrec.h>
       
    26 
       
    27 // FORWARD DECLARATION
       
    28 class MPKCS12;
       
    29 
       
    30 // CLASS DECLARATION
       
    31 
       
    32 /**
       
    33 *  CPKCS12Recognizer class.
       
    34 *  Recognizes mime-types
       
    35 *  application/x-pkcs12
       
    36 */
       
    37 class CPKCS12Recognizer : public CApaDataRecognizerType
       
    38     {
       
    39     public: 
       
    40         CPKCS12Recognizer();
       
    41         ~CPKCS12Recognizer();
       
    42     public: // from CApaDataRecognizerType        
       
    43         TUint PreferredBufSize();
       
    44         TDataType SupportedDataTypeL(TInt aIndex) const;
       
    45         
       
    46         //for ECOM
       
    47         static CApaDataRecognizerType* CreateRecognizerL();
       
    48     
       
    49     private: // from CApaDataRecognizerType
       
    50         void DoRecognizeL(const TDesC& aName, const TDesC8& aBuffer);
       
    51         
       
    52     private:
       
    53         MPKCS12* iPKCS12;   
       
    54     };
       
    55 
       
    56 #endif // PKCS12RECOGNIZER_H
       
    57 
       
    58 // End of File