messagingapp/msgsettings/settingsview/inc/msgsmscentersettingsform.h
changeset 31 ebfee66fde93
child 47 5b14749788d7
equal deleted inserted replaced
30:6a20128ce557 31:ebfee66fde93
       
     1 /*
       
     2  * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
       
     3  * All rights reserved.
       
     4  * This component and the accompanying materials are made available
       
     5  * under the terms of "Eclipse Public License v1.0"
       
     6  * which accompanies this distribution, and is available
       
     7  * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8  *
       
     9  * Initial Contributors:
       
    10  * Nokia Corporation - initial contribution.
       
    11  *
       
    12  * Contributors:
       
    13  *
       
    14  * Description:This class is for sms message center form view
       
    15  *
       
    16  */
       
    17 
       
    18 #ifndef MSGSMSCENTERSETTINGSFORM_H_
       
    19 #define MSGSMSCENTERSETTINGSFORM_H_
       
    20 
       
    21 #include <hbdataform.h>
       
    22 
       
    23 class HbLineEdit;
       
    24 class MsgSettingEngine;
       
    25 class HbDataFormModelItem;
       
    26 class HbAction;
       
    27 
       
    28 class MsgSMSCenterSettingsForm : public HbDataForm
       
    29 {
       
    30 Q_OBJECT
       
    31 
       
    32 public:
       
    33     explicit MsgSMSCenterSettingsForm(int view = -1, QGraphicsItem *parent = 0);
       
    34 
       
    35     ~MsgSMSCenterSettingsForm();
       
    36 
       
    37     void commitChanges();
       
    38     
       
    39 signals:
       
    40     void deleteMessageCentreAndClose();
       
    41     
       
    42 public slots:
       
    43     void onItemShown(const QModelIndex& topLeft);
       
    44     
       
    45 private:
       
    46     void initSettingModel();
       
    47     
       
    48 private slots:
       
    49     void onPressedCustomButton();
       
    50 	
       
    51 	/**
       
    52      * This slot is called delete message centre dialog launched.
       
    53      * @param action selected action (yes or no).
       
    54      */
       
    55     void onDialogDeleteMsgCentre(HbAction* action);
       
    56     
       
    57 private:
       
    58     QString mCenterName;
       
    59     QString mCenterNumber;
       
    60     HbLineEdit* mEdit1;
       
    61     HbLineEdit* mEdit2;
       
    62     int mView;
       
    63     MsgSettingEngine* mSettingEngine;
       
    64     
       
    65     HbDataFormModelItem *messageCenterName;
       
    66     HbDataFormModelItem *messageCenterNumber;
       
    67 
       
    68 };
       
    69 
       
    70 #endif /* MSGSMSCENTERSETTINGSFORM_H_ */