diff -r 90fe62538f66 -r 5f281e37a2f5 controlpanelui/src/cpplugins/personalizationplugin/src/cpprofilesettingform.h --- a/controlpanelui/src/cpplugins/personalizationplugin/src/cpprofilesettingform.h Tue Aug 31 15:15:28 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,104 +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: - * - */ - -#ifndef CPPROFILESETTINGFORM_H -#define CPPROFILESETTINGFORM_H - -#include -#include - -class HbDataFormModel; -class HbDataFormModelItem; -class CpItemDataHelper; -class CpProfileModel; -class QFileIconProvider; -class XQSettingsManager; -class XQSettingsKey; -class QVariant; - -class CpProfileSettingForm : public HbDataForm -{ - Q_OBJECT -public: - - enum ProfileItemId { - ProfileItemRingTone, - ProfileItemMessageTone, - ProfileItemEmailTone, - ProfileItemReminderTone, - ProfileItemNotificationTones, - ProfileItemKeyandTouchScreenTones, - ProfileItemTouchScreenVibra - }; - - CpProfileSettingForm(); - virtual ~CpProfileSettingForm(); - -private slots: - - //general tones - void on_general_notificationTones_stateChanged(int state); - void on_general_keysAndScreenToneSlider_ValueChanged( int value ); - //general vibra - void on_general_screenVibra_ValueChanged( int value ); - - //meeting tones - void on_meeting_notificationTones_stateChanged(int state); - void on_meeting_keysAndScreenToneSlider_ValueChanged( int value ); - - //meeting vibar - void on_meeting_screenVibra_ValueChanged( int value ); - - void settingValueChanged(const XQSettingsKey &key, const QVariant &value); -private: - void initModel(); - void initGeneralTonesGroup(); - //void initGeneralVibraGroup(); - void initMeetingTonesGroup(); - //void initMeetingVibraGroup(); - bool checkBoxStateToBool( int state ); - // void initRingToneGroup(HbDataFormModelItem *parent); - // void initMessageToneGroup(HbDataFormModelItem *parent); - // void initAlertToneGroup(HbDataFormModelItem *parent); - // void initKeyAndScreenToneGroup(HbDataFormModelItem *parent); - - void initProfileItems(int profileId,HbDataFormModelItem *parent); - HbDataFormModelItem *profileItem(int profileId,int profileItemId); - void setMuteIcon(HbDataFormModelItem *silderItem, bool isMute); -private: - HbDataFormModel *mModel; - CpItemDataHelper *mItemDataHelper; - CpProfileModel *mProfileModel; - QFileIconProvider *mFileIconProvider; - - HbDataFormModelItem *mGeneralPage; - HbDataFormModelItem *mMeetingPage; - - HbDataFormModelItem *mCurrentPage; - - // HbDataFormModelItem *mGeneralKeysAndScreenToneSlider; - // HbDataFormModelItem *mGeneralSreenVibra; - // HbDataFormModelItem *mMeetingKeysAndScreenToneSlider; - // HbDataFormModelItem *mMeetingSreenVibra; - - XQSettingsManager *mSettingManager; - - QHash< int,QHash > mProfileModelItems; -}; - - -#endif //CPPROFILESETTINGFORM_H