ipsservices/ipssossettings/src/ipssetui.cpp
changeset 1 12c456ceeff2
parent 0 8466d47a6819
equal deleted inserted replaced
0:8466d47a6819 1:12c456ceeff2
    34 // becuase of RD_IPS_AO_PLUGIN flag, can be removed
    34 // becuase of RD_IPS_AO_PLUGIN flag, can be removed
    35 // when flag is removed
    35 // when flag is removed
    36 #include "ipsplgsosbaseplugin.hrh"
    36 #include "ipsplgsosbaseplugin.hrh"
    37 
    37 
    38 const TInt KIpsSetOptionsMenuItemCount = 4;
    38 const TInt KIpsSetOptionsMenuItemCount = 4;
    39 _LIT( KIpsSetUiResourceFile,"z:IpsSosSettings.rsc" );
    39 // Resource file name and path, drive letter need to be parsed run time
       
    40 _LIT( KIpsSetUiResourceFile, "\\resource\\IpsSosSettings.rsc" );
    40 
    41 
    41 // ============================ LOCAL FUNCTIONS ===============================
    42 // ============================ LOCAL FUNCTIONS ===============================
    42 
    43 
    43 // ============================ MEMBER FUNCTIONS ===============================
    44 // ============================ MEMBER FUNCTIONS ===============================
    44 
    45 
   486 // ---------------------------------------------------------------------------
   487 // ---------------------------------------------------------------------------
   487 //
   488 //
   488 void CIpsSetUi::LoadResourceL()
   489 void CIpsSetUi::LoadResourceL()
   489     {
   490     {
   490     FUNC_LOG;
   491     FUNC_LOG;
   491     TFileName fileName;
   492 
       
   493     // Load resource file from the same drive where this dll is loaded from
       
   494     TFileName dllFileName;
       
   495     Dll::FileName( dllFileName );
       
   496 
   492     TParse parse;
   497     TParse parse;
   493     parse.Set( KIpsSetUiResourceFile, &KDC_RESOURCE_FILES_DIR, NULL );
   498     parse.Set( KIpsSetUiResourceFile, &dllFileName, NULL );
   494     fileName.Copy( parse.FullName() );
   499     TFileName fileName( parse.FullName() );
   495 
   500     
   496     // Attempt to load the resource
   501     // Attempt to load the resource
   497     iResourceLoader.OpenL( fileName );
   502     iResourceLoader.OpenL( fileName );
   498     }
   503     }
   499     
   504     
   500 void CIpsSetUi::DisconnectIfOnlineL( TBool aDoShowQuery )
   505 void CIpsSetUi::DisconnectIfOnlineL( TBool aDoShowQuery )