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