webengine/widgetregistry/Server/src/WidgetRegistryServer.cpp
branchRCL_3
changeset 48 79859ed3eea9
parent 41 4bd5176e1bc8
child 49 919f36ff910f
equal deleted inserted replaced
47:e1bea15f9a39 48:79859ed3eea9
    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 
    27 // -----------------------------------------------------------------------------
    28 // -----------------------------------------------------------------------------
    28 // CWidgetRegistryServer::CWidgetRegistryServer
    29 // CWidgetRegistryServer::CWidgetRegistryServer
   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.Close();
   130 
   131         }
   131        TRAP_IGNORE(
       
   132             apparcSession.RegisterNonNativeApplicationTypeL(
       
   133                 KUidWgtWidgetLauncher, KWgtLauncherApp()));
       
   134 
       
   135            apparcSession.Close();
       
   136            }
       
   137 
   132 
   138     // First create and install the active scheduler
   133     // First create and install the active scheduler
   139     CActiveScheduler* scheduler = new ( ELeave ) CActiveScheduler;
   134     CActiveScheduler* scheduler = new ( ELeave ) CActiveScheduler;
   140     CleanupStack::PushL(scheduler);
   135     CleanupStack::PushL(scheduler);
   141 
   136