86 |
86 |
87 #include <touchfeedbackadaptation.h> |
87 #include <touchfeedbackadaptation.h> |
88 #include <touchfeedback.h> |
88 #include <touchfeedback.h> |
89 |
89 |
90 #include <aknpointereventmodifier.h> |
90 #include <aknpointereventmodifier.h> |
|
91 #include <aknitemactionmenuregister.h> |
91 |
92 |
92 // UIDS for dialler view |
93 // UIDS for dialler view |
93 const TUid KPhoneAppUid = { 0x100058B3 }; |
94 const TUid KPhoneAppUid = { 0x100058B3 }; |
94 const TUid KAknDiallerViewUid = {0x10282D81}; |
95 const TUid KAknDiallerViewUid = {0x10282D81}; |
95 const TUid KDiallerVievCommand = {0x1}; |
96 const TUid KDiallerVievCommand = {0x1}; |
1545 // Solving the application name asing AppArc.lib |
1548 // Solving the application name asing AppArc.lib |
1546 RApaLsSession apparcSession; |
1549 RApaLsSession apparcSession; |
1547 User::LeaveIfError( apparcSession.Connect() ); |
1550 User::LeaveIfError( apparcSession.Connect() ); |
1548 CleanupClosePushL( apparcSession ); |
1551 CleanupClosePushL( apparcSession ); |
1549 TApaAppInfo appInfo; |
1552 TApaAppInfo appInfo; |
1550 TInt err = apparcSession.GetAppInfo( appInfo, this->Application()->AppDllUid() ); |
1553 |
|
1554 // +2 for colon and line end |
|
1555 HBufC* captionBuffer = HBufC::NewLC(KApaMaxAppCaption + KAknBidiExtraSpacePerLine + 2); |
|
1556 TPtr caption = captionBuffer->Des(); |
|
1557 |
|
1558 CEikApplication *application = this->Application(); |
|
1559 if (NULL != application) |
|
1560 { |
|
1561 if (KErrNone == apparcSession.GetAppInfo(appInfo, application->AppDllUid())) |
|
1562 { |
|
1563 caption = appInfo.iCaption; |
|
1564 } |
|
1565 } |
1551 |
1566 |
1552 // +2 for colon and line end |
|
1553 HBufC* captionBuffer = |
|
1554 HBufC::NewLC( KApaMaxAppCaption + KAknBidiExtraSpacePerLine + 2 ); |
|
1555 |
|
1556 // CleanupStack::PushL( captionBuffer ); |
|
1557 TPtr caption = captionBuffer->Des(); |
|
1558 |
|
1559 if ( err == KErrNone ) |
|
1560 { |
|
1561 caption = appInfo.iCaption; |
|
1562 } |
|
1563 |
|
1564 // Lets remove trailing spaces |
1567 // Lets remove trailing spaces |
1565 caption.TrimRight(); |
1568 caption.TrimRight(); |
1566 |
1569 |
1567 // Insert the application name into the beginning of the error string |
1570 // Insert the application name into the beginning of the error string |
1568 if ( caption.Length() != 0 ) |
1571 if ( caption.Length() != 0 ) |