equal
deleted
inserted
replaced
|
1 /* |
|
2 * Copyright (c) 2004-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 * |
|
16 */ |
|
17 |
|
18 |
|
19 /** |
|
20 @file |
|
21 @internalComponent |
|
22 */ |
|
23 |
|
24 #if !defined(__RECSISX_H__) |
|
25 #define __RECSISX_H__ |
|
26 |
|
27 #include <apmrec.h> |
|
28 |
|
29 namespace Swi |
|
30 { |
|
31 |
|
32 /** |
|
33 * A recognizer of SISX files |
|
34 * |
|
35 */ |
|
36 class CApaSisxRecognizer : public CApaDataRecognizerType |
|
37 { |
|
38 public: |
|
39 CApaSisxRecognizer(); |
|
40 |
|
41 public: // from CApaDataRecognizerType |
|
42 TUint PreferredBufSize(); |
|
43 TDataType SupportedDataTypeL (TInt aIndex) const; |
|
44 |
|
45 static CApaDataRecognizerType* CreateRecognizerL(); |
|
46 |
|
47 private: // from CApaDataRecognizerType |
|
48 void DoRecognizeL (const TDesC& aName, const TDesC8& aBuffer); |
|
49 }; |
|
50 |
|
51 // Recognizer housekeeping |
|
52 const TInt KSupportedDataTypesTotal = 1; |
|
53 |
|
54 const TInt KUidApaSisx = 0x101FD0EF; |
|
55 const TUid KApaSisx = { KUidApaSisx }; |
|
56 |
|
57 |
|
58 // MIME type |
|
59 _LIT8(KDataTypeSisx, "x-epoc/x-sisx-app"); |
|
60 _LIT(KFileExtensionSisx, ".sis"); |
|
61 _LIT(KFileExtensionLegacySis, ".sisx"); |
|
62 |
|
63 } //namespace Swi |
|
64 |
|
65 |
|
66 #endif /* __RECSISX_H__ */ |