installationservices/swinstallationfw/test/tusif/source/tsifpkgrec.h
branchRCL_3
changeset 66 8b7f4e561641
parent 65 7333d7932ef7
child 70 e8965914fac7
equal deleted inserted replaced
65:7333d7932ef7 66:8b7f4e561641
     1 /*
       
     2 * Copyright (c) 2008-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 the License "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 * This file defines a package recognizer for the Reference Installer.
       
    16 *
       
    17 */
       
    18 
       
    19 
       
    20 /**
       
    21  @file
       
    22  @internalComponent
       
    23  exampleCode
       
    24 */
       
    25 
       
    26 #ifndef TSIFPKGREC_H
       
    27 #define TSIFPKGREC_H
       
    28 
       
    29 /**
       
    30 A test package recognizer. This class implements the CApaDataRecognizerType interface.
       
    31 Please see the description of @see CApaDataRecognizerType for details. 
       
    32 
       
    33 The SIF Server uses this class through the AppArc APIs to recognize reference packages.
       
    34 */
       
    35 class CTestSifPkgRecognizer : public CApaDataRecognizerType
       
    36 	{
       
    37 public:
       
    38 	/**
       
    39 	Gets the size of buffer preferred for the purpose of recognizing the data type.
       
    40 	*/
       
    41 	TUint PreferredBufSize();
       
    42 
       
    43 	/**
       
    44 	Gets one of the data (MIME) types that the recognizer can recognize.
       
    45 	
       
    46 	@param aIndex An index that identifies the data type.
       
    47 	@return The data (MIME) type.
       
    48 	*/
       
    49 	TDataType SupportedDataTypeL(TInt aIndex) const;
       
    50 
       
    51 	/**
       
    52 	Creates an instance of the recognizer.
       
    53 	*/
       
    54 	static CApaDataRecognizerType* CreateRecognizerL();
       
    55 
       
    56 private:
       
    57 	CTestSifPkgRecognizer();
       
    58 
       
    59 	/**
       
    60 	Implements the recognition algorithm for the Reference Installer.
       
    61 	*/
       
    62 	void DoRecognizeL(const TDesC& aName, const TDesC8& aBuffer);
       
    63 	};
       
    64 
       
    65 #endif // TSIFPKGREC_H