--- a/satengine/SatServer/Engine/src/csatprofilechangeobserver.cpp Tue Aug 31 15:45:17 2010 +0300
+++ b/satengine/SatServer/Engine/src/csatprofilechangeobserver.cpp Wed Sep 01 12:15:03 2010 +0100
@@ -1,5 +1,5 @@
/*
-* Copyright (c) 2007-2010 Nokia Corporation and/or its subsidiary(-ies).
+* Copyright (c) 2007 Nokia Corporation and/or its subsidiary(-ies).
* All rights reserved.
* This component and the accompanying materials are made available
* under the terms of "Eclipse Public License v1.0"
@@ -17,7 +17,6 @@
// INCLUDE FILES
-#include <coreapplicationuissdkcrkeys.h>
#include "TSatSystemStateFactory.h"
#include "MSatSystemStateChangeNotifier.h"
#include "MSatUtils.h"
@@ -25,6 +24,10 @@
#include "SatLog.h"
#include "CSatSUiClientHandler.h"
+
+// CONSTANTS
+const TInt KSatActiveProfileOffline = 5; // value from ProfileEngine
+
// ============================ MEMBER FUNCTIONS ===============================
// -----------------------------------------------------------------------------
@@ -109,7 +112,7 @@
with value %d", aValue )
// If profile is off-line send removing event
- if ( ECoreAppUIsNetworkConnectionNotAllowed == aValue )
+ if ( KSatActiveProfileOffline == aValue )
{
LOG( SIMPLE, "SATENGINE: Off-line" )
// Off-line state activated.
@@ -123,8 +126,8 @@
// SetupMenu command is received from SIM card not before phone is
// in online mode. iPreviousProfile is -1 when StateChanged is called
// first time.
- else if ( ( ECoreAppUIsNetworkConnectionNotAllowed != aValue ) &&
- ( ECoreAppUIsNetworkConnectionNotAllowed == iPreviousProfile ) )
+ else if ( ( KSatActiveProfileOffline != aValue ) &&
+ ( KSatActiveProfileOffline == iPreviousProfile ) )
{
LOG( SIMPLE, "SATENGINE: !Off-line" )
// Notify listeners about SAT UI icon adding