uifw/AvKon/src/AknAppUi.cpp
branchRCL_3
changeset 9 aabf2c525e0f
parent 0 2f259fa3e83a
child 10 9f56a4e1b8ab
equal deleted inserted replaced
4:8ca85d2f0db7 9:aabf2c525e0f
    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};
   681             {
   682             {
   682             iAknFlags.Set( ETouchCompatible );
   683             iAknFlags.Set( ETouchCompatible );
   683             }
   684             }
   684         }
   685         }
   685 
   686 
       
   687     AknItemActionMenuRegister::SetConstructingMenuBarOwnerL( this );
       
   688 
   686 #ifdef AVKON_RDEBUG_INFO
   689 #ifdef AVKON_RDEBUG_INFO
   687     RDebug::Print(_L("Entering CEikAppUi::BaseConstructL()"));    
   690     RDebug::Print(_L("Entering CEikAppUi::BaseConstructL()"));    
   688 #endif
   691 #endif
   689 
   692 
   690     // Touch compatibility mode. Change application screen mode before
   693     // Touch compatibility mode. Change application screen mode before
  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 )