diff -r bab96b7ed1a4 -r f39ed5e045e0 phoneplugins/infowidgetplugin/infowidgetprovider/infowidget/src/infowidgetpreferences_s.cpp --- a/phoneplugins/infowidgetplugin/infowidgetprovider/infowidget/src/infowidgetpreferences_s.cpp Tue Jun 15 14:14:38 2010 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,101 +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 "infowidgetpreferences.h" -#include "infowidgetlogging.h" - -// --------------------------------------------------------------------------- -// --------------------------------------------------------------------------- -// -InfoWidgetPreferences::InfoWidgetPreferences(IHsWidgetPreferenceService &preferenceService, - QObject* parent) - : QObject(parent) -{ - DPRINT << "DUMMY IMPLEMENTATION"; - - m_options = InfoWidgetPreferences::DisplayActiveLine| - InfoWidgetPreferences::DisplayMcn| - InfoWidgetPreferences::DisplaySatText| - InfoWidgetPreferences::DisplayHomeZone; -} - -// --------------------------------------------------------------------------- -// --------------------------------------------------------------------------- -// -InfoWidgetPreferences::~InfoWidgetPreferences() -{ - DPRINT << "DUMMY IMPLEMENTATION"; -} - -// --------------------------------------------------------------------------- -// --------------------------------------------------------------------------- -// -void InfoWidgetPreferences::loadPreferences() -{ - DPRINT << "DUMMY IMPLEMENTATION"; -} - -// --------------------------------------------------------------------------- -// --------------------------------------------------------------------------- -// -void InfoWidgetPreferences::storePreferences() -{ - DPRINT << "DUMMY IMPLEMENTATION"; -} - - -/*! - InfoWidgetPreferences::preference() -*/ -QString InfoWidgetPreferences::preference(Option preferenceId) -{ - DPRINT << "DUMMY IMPLEMENTATION"; - DPRINT << ": preference id: " << static_cast(preferenceId); - - QString preferenceString; - if (m_options.testFlag(preferenceId)) { - preferenceString = DISPLAY_SETTING_ON; - } else { - preferenceString = DISPLAY_SETTING_OFF; - } - - return preferenceString; -} - -/*! - InfoWidgetPreferences::setPreference() -*/ -void InfoWidgetPreferences::setPreference(Option preferenceId, - QString preferenceString) -{ - DPRINT << "DUMMY IMPLEMENTATION"; - DPRINT << ": preference id: " << static_cast(preferenceId); - DPRINT << ": preference string: " << preferenceString; - - DPRINT << ": initial options: " << m_options; - - if (preferenceString.compare(DISPLAY_SETTING_ON) == 0) { - m_options |= preferenceId; - } else { - m_options &= ~preferenceId; - } - - DPRINT << ": modified options: " << m_options; -} - -// End of File. -