webengine/widgetregistry/Server/src/WidgetRegistryServer.cpp
branchRCL_3
changeset 49 919f36ff910f
parent 48 79859ed3eea9
equal deleted inserted replaced
48:79859ed3eea9 49:919f36ff910f
    13 *
    13 *
    14 * Description: 
    14 * Description: 
    15 *
    15 *
    16 */
    16 */
    17 
    17 
    18 
       
    19 #include <e32base.h>
    18 #include <e32base.h>
    20 #include <w32std.h>
    19 #include <w32std.h>
    21 #include <apgcli.h>
    20 #include <apgcli.h>
    22 #include "WidgetRegistryConstants.h"
    21 #include <widgetregistryconstants.h>
    23 #include "WidgetRegistryServer.h"
    22 #include "widgetregistryserver.h"
    24 #include "WidgetRegistrySession.h"
    23 #include "widgetregistrysession.h"
    25 
    24 
    26 // ============================ MEMBER FUNCTIONS ===============================
    25 // ============================ MEMBER FUNCTIONS ===============================
    27 
    26 
    28 // -----------------------------------------------------------------------------
    27 // -----------------------------------------------------------------------------
    29 // CWidgetRegistryServer::CWidgetRegistryServer
    28 // CWidgetRegistryServer::CWidgetRegistryServer
   125     if ( KErrNone == apparcSession.Connect() )
   124     if ( KErrNone == apparcSession.Connect() )
   126         {
   125         {
   127         TRAP_IGNORE(
   126         TRAP_IGNORE(
   128             apparcSession.RegisterNonNativeApplicationTypeL(
   127             apparcSession.RegisterNonNativeApplicationTypeL(
   129                 KUidWidgetLauncher, KLauncherApp()));
   128                 KUidWidgetLauncher, KLauncherApp()));
   130         apparcSession.Close();
   129 
   131         }
   130 
       
   131        TRAP_IGNORE(
       
   132             apparcSession.RegisterNonNativeApplicationTypeL(
       
   133                 KUidWgtWidgetLauncher, KWgtLauncherApp()));
       
   134 
       
   135            apparcSession.Close();
       
   136            }
   132 
   137 
   133     // First create and install the active scheduler
   138     // First create and install the active scheduler
   134     CActiveScheduler* scheduler = new ( ELeave ) CActiveScheduler;
   139     CActiveScheduler* scheduler = new ( ELeave ) CActiveScheduler;
   135     CleanupStack::PushL(scheduler);
   140     CleanupStack::PushL(scheduler);
   136 
   141