idlehomescreen/widgetmanager/src/wmresourceloader.cpp
changeset 4 4d54b72983ae
parent 2 08c6ee43b396
child 5 c743ef5928ba
equal deleted inserted replaced
3:fb3763350a08 4:4d54b72983ae
    19 // INCLUDE FILES
    19 // INCLUDE FILES
    20 #include <eikenv.h>
    20 #include <eikenv.h>
    21 #include <eikappui.h>
    21 #include <eikappui.h>
    22 #include <aknapp.h>
    22 #include <aknapp.h>
    23 #include <bautils.h>
    23 #include <bautils.h>
    24 #include <gdi.h>
       
    25 #include <aknbutton.h>
       
    26 #include <AknIconUtils.h>
       
    27 #include <StringLoader.h>
    24 #include <StringLoader.h>
    28 #include <aknnotewrappers.h>
    25 #include <aknnotewrappers.h>
    29 #include <widgetmanagerview.rsg>
    26 #include <widgetmanagerview.rsg>
    30 
    27 
    31 #include "wmresourceloader.h"
    28 #include "wmresourceloader.h"
    32 
    29 
    33 // CONSTANTS
    30 // CONSTANTS
    34 _LIT( KZdrive, "Z:" );
    31 _LIT( KZdrive, "Z:" );
    35 _LIT( KRelativeMifPath, "\\resource\\apps\\widgetmanager.mif" );
    32 _LIT( KRelativeMifPath, "\\resource\\apps\\widgetmanager.mif" );
    36 _LIT( KRelativeResourcePathWithWildcard, "\\resource\\widgetmanagerview.r*" );
    33 _LIT( KRelativeResourcePathWithWildcard, "\\resource\\apps\\widgetmanagerview.r*" );
    37 _LIT( KRelativeResourcePath, "\\resource\\widgetmanagerview.rsc" );
    34 _LIT( KRelativeResourcePath, "\\resource\\apps\\widgetmanagerview.rsc" );
    38 
    35 
    39 // ---------------------------------------------------------
    36 // ---------------------------------------------------------
    40 // CWmResourceLoader::NewL
    37 // CWmResourceLoader::NewL
    41 // ---------------------------------------------------------
    38 // ---------------------------------------------------------
    42 //
    39 //
   161     {
   158     {
   162     return iMifFile;
   159     return iMifFile;
   163     }
   160     }
   164 
   161 
   165 // ---------------------------------------------------------
   162 // ---------------------------------------------------------
   166 // CWmResourceLoader::LoadButtonL
       
   167 // ---------------------------------------------------------
       
   168 void CWmResourceLoader::LoadButtonL(
       
   169         CAknButton& aResource,
       
   170         TInt aResourceId )
       
   171     {
       
   172     TResourceReader reader;
       
   173     iEnv.CreateResourceReaderLC( reader, aResourceId );
       
   174     aResource.ConstructFromResourceL( reader );
       
   175     CleanupStack::PopAndDestroy(); // reader
       
   176     }
       
   177 
       
   178 // ---------------------------------------------------------
       
   179 // LoadStringLC
   163 // LoadStringLC
   180 // loads a string from resource. If an additional string is
   164 // loads a string from resource. If an additional string is
   181 // given (the length is greater than zero) uses a different
   165 // given (the length is greater than zero) uses a different
   182 // StringLoader method to load.
   166 // StringLoader method to load.
   183 // ---------------------------------------------------------
   167 // ---------------------------------------------------------