idlehomescreen/widgetmanager/src/wmresourceloader.cpp
changeset 2 08c6ee43b396
parent 1 5315654608de
child 4 4d54b72983ae
equal deleted inserted replaced
1:5315654608de 2:08c6ee43b396
    65 //
    65 //
    66 CWmResourceLoader::~CWmResourceLoader()
    66 CWmResourceLoader::~CWmResourceLoader()
    67     {
    67     {
    68     UnloadResources();
    68     UnloadResources();
    69     delete iNote;
    69     delete iNote;
    70     delete iDescription;
    70     delete iNoDescription;
       
    71     delete iWrtDescription;
    71     }
    72     }
    72 
    73 
    73 // ---------------------------------------------------------
    74 // ---------------------------------------------------------
    74 // CWmResourceLoader::ConstructL
    75 // CWmResourceLoader::ConstructL
    75 // ---------------------------------------------------------
    76 // ---------------------------------------------------------
    79     Dll::FileName( iDllName );
    80     Dll::FileName( iDllName );
    80 
    81 
    81     LoadResourcesL();
    82     LoadResourcesL();
    82     DetermineIconFilePath();
    83     DetermineIconFilePath();
    83     
    84     
    84     iDescription = StringLoader::LoadL( 
    85     iNoDescription = StringLoader::LoadL( 
    85             R_QTN_WM_DETAILS_NO_DESCRIPTION, &iEnv  );
    86             R_QTN_WM_DETAILS_NO_DESCRIPTION, &iEnv  );
       
    87     
       
    88     iWrtDescription = StringLoader::LoadL( 
       
    89             R_QTN_WM_WIDGET_DETAILS_WRT, &iEnv  );
    86     }
    90     }
    87 
    91 
    88 // ---------------------------------------------------------
    92 // ---------------------------------------------------------
    89 // CWmResourceLoader::LoadResourcesL
    93 // CWmResourceLoader::LoadResourcesL
    90 // ---------------------------------------------------------
    94 // ---------------------------------------------------------
   207     {
   211     {
   208     iEnv.HandleError( aErrorCode );
   212     iEnv.HandleError( aErrorCode );
   209     }
   213     }
   210 
   214 
   211 // ---------------------------------------------------------
   215 // ---------------------------------------------------------
   212 // CWmResourceLoader::NoDescriptionText
   216 // CWmResourceLoader::NoDescription
   213 // ---------------------------------------------------------
   217 // ---------------------------------------------------------
   214 //
   218 //
   215 const TDesC& CWmResourceLoader::NoDescriptionText()
   219 const TDesC& CWmResourceLoader::NoDescription()
   216     {
   220     {
   217     return *iDescription;
   221     return *iNoDescription;
   218     }
   222     }
   219     
   223 
       
   224 // ---------------------------------------------------------
       
   225 // CWmResourceLoader::WrtDescription
       
   226 // ---------------------------------------------------------
       
   227 //
       
   228 const TDesC& CWmResourceLoader::WrtDescription()
       
   229     {
       
   230     return *iWrtDescription;
       
   231     }
       
   232 
   220 // end of file
   233 // end of file
   221 
   234