menucontentsrv/srvsrc/menusrveng.cpp
branchRCL_3
changeset 23 ace62b58f4b2
parent 22 1b207dd38b72
equal deleted inserted replaced
22:1b207dd38b72 23:ace62b58f4b2
    32 #include "mcscachehandler.h"
    32 #include "mcscachehandler.h"
    33 #include "mcschildrenhandler.h"
    33 #include "mcschildrenhandler.h"
    34 #include "mcsrunningappshandler.h"
    34 #include "mcsrunningappshandler.h"
    35 #include "mcsgetlisthandler.h"
    35 #include "mcsgetlisthandler.h"
    36 #include "menusrvobjectfilter.h"
    36 #include "menusrvobjectfilter.h"
    37 #include "mcssuitehandler.h"
       
    38 #include <mcsdef.h>
    37 #include <mcsdef.h>
    39 #include <mcsmenufilter.h>
    38 #include <mcsmenufilter.h>
    40 
    39 
    41 
    40 
    42 _LIT( KRunning16, "running" );
    41 _LIT( KRunning16, "running" );
   105     iContentName.Close();
   104     iContentName.Close();
   106     delete iAppScanner;
   105     delete iAppScanner;
   107     delete iFolderNotifier;
   106     delete iFolderNotifier;
   108     delete iMcsSatMonitor;
   107     delete iMcsSatMonitor;
   109     delete iRunningAppsHandler;
   108     delete iRunningAppsHandler;
   110     delete iSuiteHandler;
       
   111     delete iEng;
   109     delete iEng;
   112     iMenuSrv.EngineDeleted();
   110     iMenuSrv.EngineDeleted();
   113     }
   111     }
   114 
   112 
   115 // ---------------------------------------------------------
   113 // ---------------------------------------------------------
   154 
   152 
   155         iDrmHander = CMcsDrmHandler::NewL(
   153         iDrmHander = CMcsDrmHandler::NewL(
   156                 *this, *iCMenuSrvEngUtils, *iCacheHandler );
   154                 *this, *iCMenuSrvEngUtils, *iCacheHandler );
   157 
   155 
   158         iChildrenHandler = CMcsChildrenHandler::NewL( *this, *iCacheHandler);
   156         iChildrenHandler = CMcsChildrenHandler::NewL( *this, *iCacheHandler);
   159         iSuiteHandler = CMcsSuiteHandler::NewL(*iEng, iContentName);
       
   160 
   157 
   161         iTimedClose->Cancel();
   158         iTimedClose->Cancel();
   162         iTimedClose->After( TTimeIntervalMicroSeconds32( KMenuSrvExitDelay ) );
   159         iTimedClose->After( TTimeIntervalMicroSeconds32( KMenuSrvExitDelay ) );
   163         }
   160         }
   164     }
   161     }
   263     delete iChildrenHandler, iChildrenHandler = NULL;
   260     delete iChildrenHandler, iChildrenHandler = NULL;
   264     delete iMcsSatMonitor; iMcsSatMonitor = NULL;
   261     delete iMcsSatMonitor; iMcsSatMonitor = NULL;
   265     delete iRunningAppsHandler; iRunningAppsHandler = NULL;
   262     delete iRunningAppsHandler; iRunningAppsHandler = NULL;
   266     delete iAppScanner; iAppScanner = NULL;
   263     delete iAppScanner; iAppScanner = NULL;
   267     delete iFolderNotifier; iFolderNotifier = NULL;
   264     delete iFolderNotifier; iFolderNotifier = NULL;
   268     delete iSuiteHandler; iSuiteHandler = NULL;
       
   269     delete iEng; iEng = NULL;
   265     delete iEng; iEng = NULL;
   270 
   266 
   271     iContentName.Close();
   267     iContentName.Close();
   272     iTimedClose->Cancel();
   268     iTimedClose->Cancel();
   273     iTimedClose->After( TTimeIntervalMicroSeconds32( KMenuSrvExitDelay ) );
   269     iTimedClose->After( TTimeIntervalMicroSeconds32( KMenuSrvExitDelay ) );
   335     else if( !aAttrExists )
   331     else if( !aAttrExists )
   336     	{
   332     	{
   337     	GetExtendedAttributesL( aId, aAttrName, aAttrExists, aAttrVal );
   333     	GetExtendedAttributesL( aId, aAttrName, aAttrExists, aAttrVal );
   338     	}
   334     	}
   339     }
   335     }
   340 
       
   341 // ---------------------------------------------------------
       
   342 // CMenuSrvEng::InstalledSuiteExist
       
   343 // ---------------------------------------------------------
       
   344 //
       
   345 TBool CMenuSrvEng::InstalledSuiteExist(const TDesC& aSuiteName)
       
   346 	{
       
   347 	return iSuiteHandler->HaveSuite(aSuiteName);
       
   348 	}
       
   349 
       
   350 // ---------------------------------------------------------
       
   351 // CMenuSrvEng::GetSuiteAttributeL
       
   352 // ---------------------------------------------------------
       
   353 //
       
   354 void CMenuSrvEng::GetSuiteAttribute( const TDesC& aSuiteName, const TDesC& aAttrName,
       
   355            TBool& aAttrExists, TDes& aAttrVal )
       
   356 	{
       
   357 	iSuiteHandler->GetAttribute(aSuiteName, aAttrName,
       
   358 			aAttrExists, aAttrVal);
       
   359 	}
       
   360 
   336 
   361 // ---------------------------------------------------------
   337 // ---------------------------------------------------------
   362 // CMenuSrvEng::GetRunningAppsL()
   338 // CMenuSrvEng::GetRunningAppsL()
   363 // ---------------------------------------------------------
   339 // ---------------------------------------------------------
   364 //
   340 //