1 /* |
|
2 * Copyright (c) 2006 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 "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: Header file for caiwprintingif |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 #ifndef __CAIWIMAGEPRINTIF_H__ |
|
21 #define __CAIWIMAGEPRINTIF_H__ |
|
22 |
|
23 #include <AiwServiceIfMenu.h> |
|
24 #include <badesca.h> |
|
25 #include <eikenv.h> |
|
26 |
|
27 _LIT( KResourceFile, "resource\\imageprintuiprovider.rsc" ); |
|
28 |
|
29 _LIT( KParamFile, "system\\data\\T_AIW_PRINT.DAT"); |
|
30 _LIT( KUnSuppFile, "system\\data\\T_AIW_UNSUPP.DAT"); |
|
31 _LIT(KImagePrintUiSearchPatternBySID, "*1020e470*"); |
|
32 const TInt KImagePrintUID = 0x1020E470; |
|
33 const TInt KRetryInterval = 5000000; // 500 ms |
|
34 const TInt KResource = 40; |
|
35 const TInt KDriver = 3; |
|
36 |
|
37 class DRMCommon; |
|
38 class CNoteTimer; |
|
39 |
|
40 |
|
41 class CAiwImagePrintIf : public CAiwServiceIfMenu |
|
42 { |
|
43 public: |
|
44 |
|
45 ~CAiwImagePrintIf(); |
|
46 |
|
47 public: |
|
48 |
|
49 TInt iNumberOfUnSuppFiles; |
|
50 TBool iUnsupportedFiles; |
|
51 CNoteTimer* iNoteTimer; |
|
52 HBufC* iPrintFileName; |
|
53 HBufC* iUnsuppFileName; |
|
54 |
|
55 |
|
56 protected: |
|
57 |
|
58 CAiwImagePrintIf(); |
|
59 |
|
60 protected: // From CAiwServiceIfMenu |
|
61 |
|
62 TBool IsPrintingSupported( const CAiwGenericParamList& aInParamList ); |
|
63 |
|
64 TBool IsPrintingSupportedL( const TDesC& aFileName ); |
|
65 |
|
66 TBool IsProtected( const TDesC& aFileName ); |
|
67 |
|
68 TBool CheckMIMETypeL( const TDesC8& aMimeType, const TDesC& aFileName ); |
|
69 |
|
70 protected: // Implementation |
|
71 void ConstructL(); |
|
72 |
|
73 protected: // data |
|
74 |
|
75 CEikonEnv& iEikEnv; //Allow CAiwPrintingProvider and CAiwPreviewProvider |
|
76 //to use Eikon Environment without CEikonEnv::Static() |
|
77 |
|
78 private: //data |
|
79 |
|
80 TInt iResourceOffset; |
|
81 |
|
82 // Provides common DRM functions |
|
83 DRMCommon* iDRM; |
|
84 |
|
85 |
|
86 }; |
|
87 |
|
88 #endif |
|