diff -r 40a3f856b14d -r 41a7f70b3818 phonesettings/cpphonesettingsplugins/callsplugin/src/cpcallsplugingroup.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/phonesettings/cpphonesettingsplugins/callsplugin/src/cpcallsplugingroup.h Tue Aug 31 15:14:29 2010 +0300 @@ -0,0 +1,114 @@ +/* + * 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 CPCALLSPLUGINGROUP_H +#define CPCALLSPLUGINGROUP_H + +#include +#include +#include +#include +#include +#include + +class HbDataFormModel; +class HbDataFormModelItem; +class HbLineEdit; +class PSetWrapper; +class PSetCliWrapper; +class SsSettingsWrapper; +class PSetCallWaitingWrapper; +class CpSettingsWrapper; + +class CpCallsPluginGroup: public CpSettingFormItemData +{ + Q_OBJECT + +public: + + explicit CpCallsPluginGroup(CpItemDataHelper &helper); + + ~CpCallsPluginGroup(); + +private: + + void createShowCallDurationItem(); + void createOwnVideoInReceivedCall(); + void createSoftRejectItem(); + void createCLIItem(); + void createCallWaitingtem(); + + void connectShowCallDurationItem(); + void connectOwnVideoInReceivedCall(); + void connectSoftRejectItem(); + void connectCLIItem(); + void connectCallWaitingItem(); + + void insertMappedListItems(); + +public slots: + + void showCallDurationStateChanged(); + void ownVideoInReceivedCallStateChanged(int index); + void softRejectTextChanged(); + void callWaitingCurrentIndexChanged(); + void cliCurrentIndexChanged(int index); + + // Call waiting slots + void handleCallWaitingGetStatus( + PSetCallWaitingWrapper::PsCallWaitingStatus status, + const QList &basicServiceGroupIds); + void handleCallWaitingChanged( + PSetCallWaitingWrapper::PsCallWaitingCommand setting, + int aResult ); + void handleCallWaitingRequesting( bool ongoing, bool interrupted ); + void handleCallWaitingError( int error ); + +signals: + + void showGlobalProgressNote(int ¬eId, const QString& text); + void showGlobalNote( + int ¬eId, const QString& text, HbMessageBox::MessageBoxType); + void showGlobalErrorNote(int ¬eId, int errorCode); + void cancelNote(int noteId); + void showNotificationDialog(const QString& text); + +private: + + // Setting wrappers + PSetWrapper *m_pSetWrapper; + SsSettingsWrapper *m_ssSettingsWrapper; + CpSettingsWrapper *m_cpSettingsWrapper; + + // Not own + PSetCliWrapper* m_cliWrapper; + PSetCallWaitingWrapper* m_callWaitingWrapper; + + // Not owned objects + CpSettingFormItemData *m_DataItemShowCallDuration; + CpSettingFormItemData *m_OwnVideoInReceivedCall; + CpSettingFormItemData *m_DataItemSoftRejectTextEditor; + CpSettingFormItemData *m_DataItemCLI; + CpSettingFormItemData *m_DataItemCallWaiting; + + // List data mappings + QMap m_cliSettingMap; + + bool m_callWaitingDistinguishEnabled; + int m_activeNoteId; + CpItemDataHelper &m_helper; +}; +#endif // CPCALLSPLUGINGROUP_H