messagingapp/msgsettings/settingsview/inc/msgsmscentersettingsform.h
changeset 23 238255e8b033
child 25 84d9eb65b26f
equal deleted inserted replaced
5:4697dfb2d7ad 23:238255e8b033
       
     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 
       
    27 class MsgSMSCenterSettingsForm : public HbDataForm
       
    28 {
       
    29 Q_OBJECT
       
    30 
       
    31 public:
       
    32     explicit MsgSMSCenterSettingsForm(int view = -1, QGraphicsItem *parent = 0);
       
    33 
       
    34     ~MsgSMSCenterSettingsForm();
       
    35 
       
    36     void commitChanges();
       
    37 
       
    38 public slots:
       
    39     void onItemShown(const QModelIndex& topLeft);
       
    40     
       
    41 private:
       
    42     void initSettingModel();
       
    43     
       
    44 private:
       
    45     QString mCenterName;
       
    46     QString mCenterNumber;
       
    47     HbLineEdit* mEdit1;
       
    48     HbLineEdit* mEdit2;
       
    49     int mView;
       
    50     MsgSettingEngine* mSettingEngine;
       
    51     
       
    52     HbDataFormModelItem *messageCenterName;
       
    53     HbDataFormModelItem *messageCenterNumber;
       
    54 
       
    55 };
       
    56 
       
    57 #endif /* MSGSMSCENTERSETTINGSFORM_H_ */