photosgallery/viewframework/commandhandlers/commoncommandhandlers/src/glxcommandhandleraiwassign.cpp
equal
deleted
inserted
replaced
30 #include <glxuiutilities.rsg> |
30 #include <glxuiutilities.rsg> |
31 #include <glxnavigationalstate.h> |
31 #include <glxnavigationalstate.h> |
32 #include <mpxcollectionpath.h> |
32 #include <mpxcollectionpath.h> |
33 #include <glxcollectionpluginimageviewer.hrh> |
33 #include <glxcollectionpluginimageviewer.hrh> |
34 #include "glxaiwservicehandler.h" |
34 #include "glxaiwservicehandler.h" |
|
35 #include <featdiscovery.h> |
35 |
36 |
36 const TInt KGlxAiwAssignCommandSpace = 0x00000100; |
37 const TInt KGlxAiwAssignCommandSpace = 0x00000100; |
37 |
38 |
38 // ----------------------------------------------------------------------------- |
39 // ----------------------------------------------------------------------------- |
39 // NewL |
40 // NewL |
58 CGlxCommandHandlerAiwAssign::CGlxCommandHandlerAiwAssign( |
59 CGlxCommandHandlerAiwAssign::CGlxCommandHandlerAiwAssign( |
59 MGlxMediaListProvider* aMediaListProvider, TInt aMenuResource) |
60 MGlxMediaListProvider* aMediaListProvider, TInt aMenuResource) |
60 : CGlxCommandHandlerAiwBase(aMediaListProvider, aMenuResource) |
61 : CGlxCommandHandlerAiwBase(aMediaListProvider, aMenuResource) |
61 { |
62 { |
62 TRACER("CGlxCommandHandlerAiwAssign::CGlxCommandHandlerAiwAssign"); |
63 TRACER("CGlxCommandHandlerAiwAssign::CGlxCommandHandlerAiwAssign"); |
|
64 } |
|
65 |
|
66 CGlxCommandHandlerAiwAssign::~CGlxCommandHandlerAiwAssign() |
|
67 { |
|
68 delete iFeatManager; |
|
69 } |
|
70 |
|
71 void CGlxCommandHandlerAiwAssign::ConstructL() |
|
72 { |
|
73 //Calling base class implementation |
|
74 CGlxCommandHandlerAiwBase::ConstructL(); |
|
75 |
|
76 iFeatManager = CFeatureDiscovery::NewL(); |
63 } |
77 } |
64 |
78 |
65 // ----------------------------------------------------------------------------- |
79 // ----------------------------------------------------------------------------- |
66 // CGlxCommandHandlerAiwAssign::DoGetRequiredAttributesL |
80 // CGlxCommandHandlerAiwAssign::DoGetRequiredAttributesL |
67 // ----------------------------------------------------------------------------- |
81 // ----------------------------------------------------------------------------- |
103 // AiwInterestResource |
117 // AiwInterestResource |
104 // ----------------------------------------------------------------------------- |
118 // ----------------------------------------------------------------------------- |
105 // |
119 // |
106 TInt CGlxCommandHandlerAiwAssign::AiwInterestResource() const |
120 TInt CGlxCommandHandlerAiwAssign::AiwInterestResource() const |
107 { |
121 { |
108 return R_GLX_AIW_ASSIGN_TO_CONTACT_INTEREST; |
122 int resource = R_GLX_AIW_ASSIGN_TO_CONTACT_INTEREST; |
|
123 if(iFeatManager->IsFeatureSupportedL(KFeatureIdFfImageEditor) || iFeatManager->IsFeatureSupportedL(KFeatureIdFfVideoEditor)) |
|
124 { |
|
125 resource = R_GLX_AIW_ASSIGN_TO_CONTACT_INTEREST_MEDIAEDITOR; |
|
126 } |
|
127 |
|
128 return resource; |
109 } |
129 } |
110 |
130 |
111 // ----------------------------------------------------------------------------- |
131 // ----------------------------------------------------------------------------- |
112 // AppendAiwParameterL |
132 // AppendAiwParameterL |
113 // ----------------------------------------------------------------------------- |
133 // ----------------------------------------------------------------------------- |