equal
deleted
inserted
replaced
|
1 // Copyright (c) 2006-2009 Nokia Corporation and/or its subsidiary(-ies). |
|
2 // All rights reserved. |
|
3 // This component and the accompanying materials are made available |
|
4 // under the terms of "Eclipse Public License v1.0" |
|
5 // which accompanies this distribution, and is available |
|
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
7 // |
|
8 // Initial Contributors: |
|
9 // Nokia Corporation - initial contribution. |
|
10 // |
|
11 // Contributors: |
|
12 // |
|
13 // Description: |
|
14 // |
|
15 |
|
16 #ifndef DEFINITIONS_H |
|
17 #define DEFINITIONS_H |
|
18 |
|
19 #include <e32base.h> |
|
20 #include <f32file.h> |
|
21 #include <apgcli.h> |
|
22 #include <ecom/ecom.h> |
|
23 |
|
24 #define KConfCertain CApaDataRecognizerType::ECertain |
|
25 #define KConfProbable CApaDataRecognizerType::EProbable |
|
26 #define KConfPossible CApaDataRecognizerType::EPossible |
|
27 #define KConfNotRecognised CApaDataRecognizerType::ENotRecognized |
|
28 |
|
29 |
|
30 /* |
|
31 ** |
|
32 */ |
|
33 typedef struct |
|
34 { |
|
35 TInt iTestNumber; // The test case number as specified in testspec. |
|
36 const TText* iFileName; // The file to recognise. |
|
37 const TText8* iExpectedMimeType; // The expected MIME-type. |
|
38 } |
|
39 TTestSpec; |
|
40 |
|
41 |
|
42 /* |
|
43 ** This utility class allows connection to the AppArc framework. |
|
44 */ |
|
45 class RAppArc |
|
46 { |
|
47 public: |
|
48 TInt Connect(); |
|
49 void Close(); |
|
50 TInt Recognise(RFile& aFile, TDataType& aDataType); |
|
51 TInt Recognise(RFile& aFile, TDataRecognitionResult& aResult); |
|
52 RFs& FileServer(); |
|
53 |
|
54 protected: |
|
55 RApaLsSession iAppArc; |
|
56 RFs iFs; |
|
57 }; |
|
58 |
|
59 |
|
60 #endif |