--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/messagingapp/msgsettings/settingsview/inc/msgsettingsform.h Tue Aug 31 15:11:31 2010 +0300
@@ -0,0 +1,82 @@
+/*
+ * 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: This class is for first form view for msg settings
+ *
+ */
+
+#ifndef MSG_SETTINGSFORM_H
+#define MSG_SETTINGSFORM_H
+
+#include <hbdataform.h>
+#include "msgsettingengine.h"
+#include "msgsettingsview.h"
+
+class HbDataFormModelItem;
+class HbDataFormModel;
+
+class MsgSettingsForm : public HbDataForm
+{
+Q_OBJECT
+public:
+ explicit MsgSettingsForm(
+ MsgSettingsView::SettingsView settingsView = MsgSettingsView::DefaultView,
+ QGraphicsItem *parent = 0);
+ ~MsgSettingsForm();
+ void refreshViewForm();
+
+signals:
+ void newSMSCCenterClicked(int);
+
+private:
+ void initSettingModel(MsgSettingsView::SettingsView settingsView);
+ void addMMSGroupItem(HbDataFormModelItem* parent);
+ void addSmsMCGroupItem(HbDataFormModelItem* parent);
+ void updateSmsMCGroupItem(HbDataFormModelItem* parent);
+ void expandGroup(HbDataFormModelItem* group,bool expand);
+
+private slots:
+ void onPressedCustomButton();
+ void changeCharEncoding(int index);
+ void changeAccessPoint(int index);
+ void onSMSCurrentIndexChanged(int index);
+ void changeMMSRetrievalMode(int index);
+ void allowAnonymousMMS();
+ void allowMMSAdverts();
+
+private:
+
+ HbDataFormModel *settingsModel;
+
+ /**
+ * SmsGroup model item
+ */
+ HbDataFormModelItem* mSmsMCGroup;
+
+ /**
+ * SMS Center gropu list
+ */
+ QStringList mSmsMCSettingsGroup;
+
+ /**
+ * The list of smsc centers.
+ */
+ QStringList mSmsServiceList;
+
+ //msg engine reference
+ MsgSettingEngine* mSettingEngine;
+
+ HbDataFormModelItem *smsMessageCenter;
+
+};
+#endif // MSG_SETTINGSFORM_H