os/mm/mmlibs/mmfw/tsrc/mmfunittest/Recogniser/definitions.h
changeset 0 bde4ae8d615e
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/os/mm/mmlibs/mmfw/tsrc/mmfunittest/Recogniser/definitions.h	Fri Jun 15 03:10:57 2012 +0200
     1.3 @@ -0,0 +1,60 @@
     1.4 +// Copyright (c) 2006-2009 Nokia Corporation and/or its subsidiary(-ies).
     1.5 +// All rights reserved.
     1.6 +// This component and the accompanying materials are made available
     1.7 +// under the terms of "Eclipse Public License v1.0"
     1.8 +// which accompanies this distribution, and is available
     1.9 +// at the URL "http://www.eclipse.org/legal/epl-v10.html".
    1.10 +//
    1.11 +// Initial Contributors:
    1.12 +// Nokia Corporation - initial contribution.
    1.13 +//
    1.14 +// Contributors:
    1.15 +//
    1.16 +// Description:
    1.17 +//
    1.18 +
    1.19 +#ifndef DEFINITIONS_H
    1.20 +#define DEFINITIONS_H
    1.21 +
    1.22 +#include <e32base.h>
    1.23 +#include <f32file.h>
    1.24 +#include <apgcli.h>
    1.25 +#include <ecom/ecom.h>
    1.26 +
    1.27 +#define KConfCertain		CApaDataRecognizerType::ECertain
    1.28 +#define KConfProbable		CApaDataRecognizerType::EProbable
    1.29 +#define KConfPossible		CApaDataRecognizerType::EPossible
    1.30 +#define KConfNotRecognised	CApaDataRecognizerType::ENotRecognized
    1.31 +
    1.32 +
    1.33 +/*
    1.34 +**
    1.35 +*/
    1.36 +typedef struct
    1.37 +	{
    1.38 +	TInt iTestNumber;					// The test case number as specified in testspec.
    1.39 +	const TText* iFileName;				// The file to recognise.
    1.40 +	const TText8* iExpectedMimeType;	// The expected MIME-type.
    1.41 +	}
    1.42 +TTestSpec;
    1.43 +
    1.44 +
    1.45 +/*
    1.46 +** This utility class allows connection to the AppArc framework.
    1.47 +*/
    1.48 +class RAppArc
    1.49 +	{
    1.50 +public:
    1.51 +	TInt Connect();
    1.52 +	void Close();
    1.53 +	TInt Recognise(RFile& aFile, TDataType& aDataType);
    1.54 +	TInt Recognise(RFile& aFile, TDataRecognitionResult& aResult);
    1.55 +	RFs& FileServer();
    1.56 +		
    1.57 +protected:
    1.58 +	RApaLsSession iAppArc;
    1.59 +	RFs iFs;
    1.60 +	};
    1.61 +
    1.62 +
    1.63 +#endif