webengine/widgetregistry/Server/src/WidgetRegistryServer.cpp
changeset 65 5bfc169077b2
parent 38 6297cdf66332
child 68 92a765b5b3e7
equal deleted inserted replaced
42:d39add9822e2 65:5bfc169077b2
    13 *
    13 *
    14 * Description: 
    14 * Description: 
    15 *
    15 *
    16 */
    16 */
    17 
    17 
       
    18 
    18 #include <e32base.h>
    19 #include <e32base.h>
    19 #include <w32std.h>
    20 #include <w32std.h>
    20 #include <apgcli.h>
    21 #include <apgcli.h>
    21 #include <widgetregistryconstants.h>
    22 #include "WidgetRegistryConstants.h"
    22 #include "widgetregistryserver.h"
    23 #include "widgetregistryserver.h"
    23 #include "widgetregistrysession.h"
    24 #include "widgetregistrysession.h"
    24 
    25 
    25 // ============================ MEMBER FUNCTIONS ===============================
    26 // ============================ MEMBER FUNCTIONS ===============================
    26 
    27 
   124     if ( KErrNone == apparcSession.Connect() )
   125     if ( KErrNone == apparcSession.Connect() )
   125         {
   126         {
   126         TRAP_IGNORE(
   127         TRAP_IGNORE(
   127             apparcSession.RegisterNonNativeApplicationTypeL(
   128             apparcSession.RegisterNonNativeApplicationTypeL(
   128                 KUidWidgetLauncher, KLauncherApp()));
   129                 KUidWidgetLauncher, KLauncherApp()));
   129 
       
   130 		    apparcSession.PrepareNonNativeApplicationsUpdatesL();
       
   131             apparcSession.ForceCommitNonNativeApplicationsUpdatesL();
       
   132         apparcSession.Close();
   130         apparcSession.Close();
   133         }
   131         }
   134 
   132 
   135     // First create and install the active scheduler
   133     // First create and install the active scheduler
   136     CActiveScheduler* scheduler = new ( ELeave ) CActiveScheduler;
   134     CActiveScheduler* scheduler = new ( ELeave ) CActiveScheduler;