51 |
51 |
52 // ----------------------------------------------------------------------------- |
52 // ----------------------------------------------------------------------------- |
53 // ConstructL |
53 // ConstructL |
54 // ----------------------------------------------------------------------------- |
54 // ----------------------------------------------------------------------------- |
55 // |
55 // |
56 void CGlxCommandHandlerAiwBase::ConstructL() |
56 void CGlxCommandHandlerAiwBase::ConstructL(const TDesC& aFileName) |
57 { |
57 { |
58 |
58 |
59 TParse parse; |
59 iResourceOffset = CCoeEnv::Static()->AddResourceFileL(aFileName); |
60 parse.Set(KGlxUiUtilitiesResource, &KDC_APP_RESOURCE_DIR, NULL); |
60 |
61 TFileName resourceFile; |
61 iAiwServiceHandler = CGlxAiwServiceHandler::InstanceL(); |
62 resourceFile.Append(parse.FullName()); |
62 |
63 CGlxResourceUtilities::GetResourceFilenameL(resourceFile); |
63 iAiwServiceHandler->AttachMenuL(iMenuResource, AiwInterestResource()); |
64 |
64 |
65 iResourceOffset = CCoeEnv::Static()->AddResourceFileL(resourceFile); |
65 // Add supported command |
66 |
66 TCommandInfo info(CommandId()); |
67 iAiwServiceHandler = CGlxAiwServiceHandler::InstanceL(); |
67 // Filter out static items |
68 |
68 info.iMinSelectionLength = 1; |
69 iAiwServiceHandler->AttachMenuL( iMenuResource, AiwInterestResource() ); |
69 info.iMaxSelectionLength = MaxSelectedItems(); |
70 |
70 info.iStopAnimationForExecution = ETrue; |
71 // Add supported command |
71 info.iCategoryFilter = EMPXCommand; |
72 TCommandInfo info(CommandId()); |
72 info.iCategoryRule = TCommandInfo::EForbidAll; |
73 // Filter out static items |
73 AddCommandL(info); |
74 info.iMinSelectionLength = 1; |
74 |
75 info.iMaxSelectionLength = MaxSelectedItems(); |
75 } |
76 info.iStopAnimationForExecution = ETrue; |
|
77 info.iCategoryFilter = EMPXCommand; |
|
78 info.iCategoryRule = TCommandInfo::EForbidAll; |
|
79 AddCommandL(info); |
|
80 |
|
81 |
|
82 } |
|
83 |
76 |
84 // ----------------------------------------------------------------------------- |
77 // ----------------------------------------------------------------------------- |
85 // Destructor |
78 // Destructor |
86 // ----------------------------------------------------------------------------- |
79 // ----------------------------------------------------------------------------- |
87 // |
80 // |