diff -r 90fe62538f66 -r 5f281e37a2f5 controlpanelui/src/cpprofilewrapper/src/cpprofilemonitor_p.cpp --- a/controlpanelui/src/cpprofilewrapper/src/cpprofilemonitor_p.cpp Tue Aug 31 15:15:28 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,68 +0,0 @@ -/* - * Copyright (c) 2009 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"" - * which accompanies this distribution, and is available - * at the URL "http://www.eclipse.org/legal/epl-v10.html". - * - * Initial Contributors: - * Nokia Corporation - initial contribution. - * - * Contributors: - * - * Description: - * - */ - -#include "cpprofilemonitor_p.h" -#include "cpprofilemonitor.h" - -#include - -/* - * Construtor - */ -CpProfileMonitorPrivate::CpProfileMonitorPrivate(): - mProfileNotifier(0) -{ - -} - -/* - * Desconstructor - */ -CpProfileMonitorPrivate::~CpProfileMonitorPrivate() -{ - delete mProfileNotifier; -} - -/* - * Initializing for the monitoring profile event - */ -void CpProfileMonitorPrivate::initialize(CpProfileMonitor *parent) -{ - q_ptr = parent; - TRAP_IGNORE(mProfileNotifier = CProfileChangeNotifyHandler::NewL(this)); -} - -/* - * From MProfileChangeObserver, monitor the profile event - */ -void CpProfileMonitorPrivate::HandleActiveProfileEventL(TProfileEvent aProfileEvent, TInt aProfileId) -{ - switch (aProfileEvent) { - case EProfileNewActiveProfile: - { - q_ptr->profileActivated(aProfileId); - break; - } - case EProfileActiveProfileModified: - { - q_ptr->activeProfileModified(aProfileId); - break; - } - default: - break; - } -}