|
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 "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: AIW print preview command handler |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 |
|
21 #ifndef C_GLXCOMMANDHANDLERAIWPRINTPREVIEW_H |
|
22 #define C_GLXCOMMANDHANDLERAIWPRINTPREVIEW_H |
|
23 |
|
24 #include "glxcommandhandleraiwbase.h" |
|
25 |
|
26 class CGlxAttributeContext; |
|
27 class CAiwGenericParamList; |
|
28 class CGlxMedia; |
|
29 class MGlxMediaListProvider; |
|
30 |
|
31 /** |
|
32 * CGlxCommandHandlerAiwPrintPreview |
|
33 * |
|
34 * Print preview AIW command handler |
|
35 * |
|
36 * @lib glxcommoncommandhandlers.lib |
|
37 */ |
|
38 NONSHARABLE_CLASS (CGlxCommandHandlerAiwPrintPreview) |
|
39 : public CGlxCommandHandlerAiwBase |
|
40 { |
|
41 public: |
|
42 /** |
|
43 * Two-phase constructor |
|
44 * @param aMediaListProvider object that provides the media list |
|
45 * @param aMenuResource The menu resource that the AIW command will be |
|
46 * implented in |
|
47 * @return Fully constructed command handler |
|
48 * @warning ConstructL of base class is called. If ConstructL is |
|
49 * implemented in this class, then care must be taken to call |
|
50 * CGlxCommandHandlerAiwBase::ConstructL |
|
51 */ |
|
52 IMPORT_C static CGlxCommandHandlerAiwPrintPreview* NewL( |
|
53 MGlxMediaListProvider* aMediaListProvider, TInt aMenuResource); |
|
54 void PreDynInitMenuPaneL(TInt aResourceId); |
|
55 |
|
56 protected: // From CGlxMediaListCommandHandler |
|
57 /** |
|
58 * See @ref CGlxMediaListCommandHandler::DoGetRequiredAttributesL |
|
59 */ |
|
60 virtual void DoGetRequiredAttributesL(RArray<TMPXAttribute>& aAttributes, TBool aFilterUsingSelection) const; |
|
61 /** |
|
62 * Overridden from CGlxCommandHandlerAiwBase. |
|
63 */ |
|
64 void AiwDoDynInitMenuPaneL(TInt aResourceId, |
|
65 CEikMenuPane* aMenuPane); |
|
66 protected: // From CGlxCommandHandlerAiwBase |
|
67 virtual TBool AppendAiwParameterL(const TGlxMedia& aItem, |
|
68 CGlxAiwServiceHandler& aAiwServiceHandler); |
|
69 virtual TInt CommandId() const ; |
|
70 virtual TInt AiwCommandId() const ; |
|
71 virtual TInt AiwInterestResource() const ; |
|
72 virtual TInt CommandSpace() const ; |
|
73 |
|
74 private: |
|
75 /** |
|
76 * Constructor |
|
77 */ |
|
78 CGlxCommandHandlerAiwPrintPreview(MGlxMediaListProvider* aMediaListProvider, |
|
79 TInt aMenuResource); |
|
80 |
|
81 }; |
|
82 |
|
83 #endif // C_GLXCOMMANDHANDLERAIWPRINTPREVIEW_H |