messagingapp/msgsettings/msgsettingsplugin.deprecated/inc/msgsmscentersettingsform.h
changeset 25 84d9eb65b26f
parent 23 238255e8b033
child 27 e4592d119491
child 37 518b245aa84c
child 79 2981cb3aa489
equal deleted inserted replaced
23:238255e8b033 25:84d9eb65b26f
     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 
       
    26 class MsgSMSCenterSettingsForm : public HbDataForm
       
    27 {
       
    28 Q_OBJECT
       
    29 
       
    30 public:
       
    31     explicit MsgSMSCenterSettingsForm(int view = -1, QGraphicsItem *parent = 0);
       
    32 
       
    33     ~MsgSMSCenterSettingsForm();
       
    34 
       
    35     void commitChanges();
       
    36 
       
    37 private slots:
       
    38     void onItemActivated(const QModelIndex &index);
       
    39     void onEditingFinished();
       
    40 
       
    41 private:
       
    42     void initSettingModel();
       
    43     void activateTextItem(HbWidget* widget, HbLineEdit* &edit);
       
    44 
       
    45 private:
       
    46     QString mCenterName;
       
    47     QString mCenterNumber;
       
    48     HbLineEdit* mEdit1;
       
    49     HbLineEdit* mEdit2;
       
    50     int mView;
       
    51     MsgSettingEngine* mSettingEngine;
       
    52 
       
    53 };
       
    54 
       
    55 #endif /* MSGSMSCENTERSETTINGSFORM_H_ */