|
1 /* |
|
2 * Copyright (c) 2004-2007 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: |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef CAIWPRINTPREVIEWPROVIDER_H |
|
20 #define CAIWPRINTPREVIEWPROVIDER_H |
|
21 |
|
22 #include <AknLaunchAppService.h> |
|
23 #include <AiwServiceIfMenu.h> |
|
24 #include <badesca.h> |
|
25 |
|
26 #include "caiwimageprintif.h" |
|
27 |
|
28 const TUid KPrintPropertyCat = {0x10012345}; |
|
29 enum TPrintPropertyKeys |
|
30 { |
|
31 EPrintProperty, |
|
32 }; |
|
33 |
|
34 enum |
|
35 { |
|
36 ENotAiwCall, |
|
37 EAiwPrintCall, |
|
38 EAiwQuickPrintCall |
|
39 }; |
|
40 |
|
41 class CAiwPrintPreviewProvider : |
|
42 public CAiwImagePrintIf, |
|
43 public MAknServerAppExitObserver |
|
44 |
|
45 { |
|
46 public: //Constructors and destructors |
|
47 static CAiwPrintPreviewProvider* NewL(); |
|
48 |
|
49 ~CAiwPrintPreviewProvider(); |
|
50 |
|
51 public: // from MAknServerAppExitObserver |
|
52 void HandleServerAppExit( TInt aReason ); |
|
53 |
|
54 private: // Implementation |
|
55 void LaunchImagePrintApplicationL(); |
|
56 |
|
57 private: // From CAiwImagePrintIf |
|
58 void InitialiseL(MAiwNotifyCallback& aFrameworkCallback, |
|
59 const RCriteriaArray& aInterest); |
|
60 |
|
61 |
|
62 void HandleServiceCmdL( const TInt& aCmdId, |
|
63 const CAiwGenericParamList& aInParamList, |
|
64 CAiwGenericParamList& aOutParamList, |
|
65 TUint aCmdOptions = 0, |
|
66 const MAiwNotifyCallback* aCallback = NULL); |
|
67 |
|
68 void InitializeMenuPaneL( CAiwMenuPane& aMenuPane, |
|
69 TInt aIndex, |
|
70 TInt aCascadeId, |
|
71 const CAiwGenericParamList& aInParamList); |
|
72 |
|
73 void HandleMenuCmdL( TInt aMenuCmdId, |
|
74 const CAiwGenericParamList& aInParamList, |
|
75 CAiwGenericParamList& aOutParamList, |
|
76 TUint aCmdOptions = 0, |
|
77 const MAiwNotifyCallback* aCallback = NULL); |
|
78 |
|
79 void HandleLaunchRequestL( const CAiwGenericParamList& aInParamList, |
|
80 CAiwGenericParamList& aOutParamList, |
|
81 const MAiwNotifyCallback* aCallback = NULL); |
|
82 |
|
83 private: // Data |
|
84 CAknLaunchAppService* iService; |
|
85 |
|
86 const CAiwGenericParamList *iConsumerInParamList; |
|
87 CAiwGenericParamList *iConsumerOutParamList; |
|
88 const MAiwNotifyCallback *iConsumerCallback; |
|
89 }; |
|
90 |
|
91 #endif // CAIWPRINTPREVIEWPROVIDER_H |
|
92 |
|
93 // End of File |