|
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 SIFREFPKGREC_H |
|
27 #define SIFREFPKGREC_H |
|
28 |
|
29 /** |
|
30 A reference 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 CSifRefPkgRecognizer : 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 CSifRefPkgRecognizer(); |
|
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 // SIFREFPKGREC_H |