uifw/AknGlobalUI/AknCapServer/src/AknCapServerEntry.cpp
changeset 67 5f6e7f84c9d1
parent 65 b959e31f70b5
child 69 8cba18227181
equal deleted inserted replaced
66:ed40dc1bd883 67:5f6e7f84c9d1
    17 
    17 
    18 #ifdef SYMBIAN_ENABLE_SPLIT_HEADERS
    18 #ifdef SYMBIAN_ENABLE_SPLIT_HEADERS
    19 #include <uikon/eikdefconst.h>
    19 #include <uikon/eikdefconst.h>
    20 #include <uikon/eikenvinterface.h>
    20 #include <uikon/eikenvinterface.h>
    21 #endif
    21 #endif
       
    22 #include <e32uid.h>
    22 #include <eikstart.h>
    23 #include <eikstart.h>
    23 #include <AknDef.h>
    24 #include <AknDef.h>
    24 #include <barsread.h>
    25 #include <barsread.h>
    25 #include <bautils.h>
    26 #include <bautils.h>
    26 #include <e32std.h>
    27 #include <e32std.h>
    71 #ifdef RD_UI_TRANSITION_EFFECTS_LAYOUT_SWITCH
    72 #ifdef RD_UI_TRANSITION_EFFECTS_LAYOUT_SWITCH
    72     #include <gfxtranseffect/gfxtranseffect.h>
    73     #include <gfxtranseffect/gfxtranseffect.h>
    73     #include <akntranseffect.h> // for Transition effect enumerations
    74     #include <akntranseffect.h> // for Transition effect enumerations
    74 #endif
    75 #endif
    75 
    76 
    76 #ifdef SYMBIAN_BUILD_GCE
       
    77     #include <goommonitor.h>
       
    78 #endif 
       
    79 
       
    80 
    77 
    81 #ifdef RD_INTELLIGENT_TEXT_INPUT
    78 #ifdef RD_INTELLIGENT_TEXT_INPUT
    82 #include <AvkonInternalCRKeys.h>
    79 #include <AvkonInternalCRKeys.h>
    83 
    80 
    84 #include "akncapserverdiscreetpopuphandler.h"
    81 #include "akncapserverdiscreetpopuphandler.h"
   229 
   226 
   230     me->iEikSrv.AllowNotifierAppServersToLoad();
   227     me->iEikSrv.AllowNotifierAppServersToLoad();
   231     me->iEikSrv.Close(); // currently there is no use to keep this session alive.
   228     me->iEikSrv.Close(); // currently there is no use to keep this session alive.
   232 
   229 
   233 #ifdef SYMBIAN_BUILD_GCE
   230 #ifdef SYMBIAN_BUILD_GCE
   234    TRAP( err, CreateGOOMWatcherThreadL());
   231     const TInt KOOMWatcherDllUid = 0x10282DBF;
   235    if (err != KErrNone)
   232     _LIT(KOOMWatcherDll, "goommonitor.dll");
   236        {
   233 
   237        RDebug::Print(_L("Creating out of graphics mem thread failed with err %d"), err);
   234     RLibrary lib; // we don't need to push to stack because there is no leaving in following operations.
   238        }
   235     TUidType uidType(KDynamicLibraryUid, KSharedLibraryUid, TUid::Uid(KOOMWatcherDllUid));
       
   236 
       
   237     err = lib.Load(KOOMWatcherDll, uidType);
       
   238     if (KErrNone == err)
       
   239         {
       
   240         TLibraryFunction func = lib.Lookup(2); /* CreateGOOMWatcherThreadL */
       
   241         if (func)
       
   242             {
       
   243             TRAP(err, (*func)());
       
   244             if (err != KErrNone)
       
   245                 {
       
   246                 RDebug::Print(_L("Creating out of graphics mem thread in capserver failed with err %d"), err);
       
   247                 }
       
   248             }
       
   249         else
       
   250             {
       
   251             RDebug::Print(_L("Lookup function entry in goommonitor.dll return NULL, the entry number may be wrong!"));
       
   252             }
       
   253         }
       
   254     else
       
   255         {
       
   256         RDebug::Print(_L("Dynamically Loading goommonitor.dll failed with err %d, it's ok!"), err);
       
   257         }
   239 #endif 
   258 #endif 
   240 
   259 
   241     return err;
   260     return err;
   242     }
   261     }
   243 
   262