--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/phonesettings/cpphonesettingsplugins/callsplugin/src/cpcallsplugingroup.h Fri Mar 19 09:28:42 2010 +0200
@@ -0,0 +1,113 @@
+/*
+ * 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 <QObject>
+#include <QMap>
+#include <QVariant>
+#include <hbmessagebox.h>
+#include <cpsettingformitemdata.h>
+#include <psetcallwaitingwrapper.h>
+
+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 createSoftRejectItem();
+ void createCLIItem();
+ void createCallWaitingtem();
+
+ void connectShowCallDurationItem();
+ void connectSoftRejectItem();
+ void connectCLIItem();
+ void connectCallWaitingItem();
+
+ void insertMappedListItems();
+
+public slots:
+
+ void showCallDurationStateChanged(int state);
+ void softRejectTextChanged();
+ void callWaitingCurrentIndexChanged(int index);
+ void cliCurrentIndexChanged(int index);
+
+ // Call waiting slots
+ void handleCallWaitingGetStatus(
+ PSetCallWaitingWrapper::PsCallWaitingStatus status,
+ const QList<unsigned char> &basicServiceGroupIds);
+ void handleCallWaitingChanged(
+ PSetCallWaitingWrapper::PsCallWaitingCommand setting,
+ int aResult );
+ void handleCallWaitingRequesting( bool ongoing, bool interrupted );
+ void handleCallWaitingError( int error );
+
+signals:
+
+ void showBasicServiceList(
+ const QString& title,
+ QList<unsigned char> basicServiceGroupIds);
+ 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);
+
+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_DataItemSoftRejectTextEditor;
+ CpSettingFormItemData *m_DataItemCLI;
+ CpSettingFormItemData *m_DataItemCallWaiting;
+
+ // List data mappings
+ QMap<int, QString> m_cliSettingMap;
+ QMap<int, QString> m_callWaitingSettingMap;
+
+ bool m_callWaitingDistinguishEnabled;
+ int m_activeNoteId;
+ CpItemDataHelper &m_helper;
+};
+#endif // CPCALLSPLUGINGROUP_H