satui/satapp/src/satappmainhandler.cpp
changeset 45 61f927bc9441
parent 39 cee7e9e0906c
child 50 2313cb430f28
--- a/satui/satapp/src/satappmainhandler.cpp	Wed Aug 18 10:19:22 2010 +0300
+++ b/satui/satapp/src/satappmainhandler.cpp	Thu Sep 02 21:00:29 2010 +0300
@@ -23,7 +23,7 @@
 
 // symbian
 #include <centralrepository.h>
-#include <ProfileEngineSDKCRKeys.h>
+#include <coreapplicationuissdkcrkeys.h>
 
 #include "satappmainhandler.h"
 #include "satappserverdispatcher.h"
@@ -266,17 +266,18 @@
     qDebug("SATAPP: SatAppMainHandler::isOffline >");
     TInt profileId(0);
     CRepository* cr (NULL);
-    TRAPD(err, cr = CRepository::NewL(KCRUidProfileEngine));
+    TRAPD(err, cr = CRepository::NewL(KCRUidCoreApplicationUIs));
     if ( KErrNone == err )
     {
         // Get the ID of the currently active profile:
-        const TInt error = cr->Get(KProEngActiveProfile, profileId);
+        const TInt error = 
+            cr->Get(KCoreAppUIsNetworkConnectionAllowed, profileId);
         qDebug("SATAPP: SatAppMainHandler::isOffline get active \
                 profile error=%d",error);
         delete cr;
     }
     qDebug("SATAPP: SatAppMainHandler::isOffline< profileId = %d",profileId);
-    return ( KSatActiveProfileOffline == profileId );
+    return ( ECoreAppUIsNetworkConnectionNotAllowed == profileId );
 }
 
 // ----------------------------------------------------------------------------