vmbx/vmbxcpplugin/inc/vmbxcpgroup.h
branchRCL_3
changeset 20 987c9837762f
parent 19 7d48bed6ce0c
child 21 0a6dd2dc9970
equal deleted inserted replaced
19:7d48bed6ce0c 20:987c9837762f
     1 /*
       
     2  * Copyright (c) 2009 - 2010 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:  
       
    15  *
       
    16  */
       
    17 
       
    18 #ifndef VMBXCPGROUP_H
       
    19 #define VMBXCPGROUP_H
       
    20 
       
    21 // System includes
       
    22 #include <cpsettingformitemdata.h>
       
    23 #include <voicemailboxdefs.h>
       
    24 #include <QModelIndex>
       
    25 
       
    26 
       
    27 // Forward declarations
       
    28 class VmbxUiEngine;
       
    29 class CpItemDataHelper;
       
    30 class HbDataFormModelItem;
       
    31 
       
    32 
       
    33 // Class declaration
       
    34 class VmbxCpGroup : public CpSettingFormItemData
       
    35 {
       
    36     Q_OBJECT
       
    37 
       
    38 public:
       
    39     
       
    40     /*!
       
    41         Constructor
       
    42     */
       
    43     VmbxCpGroup( 
       
    44         CpItemDataHelper &itemDataHelper);
       
    45 
       
    46     /*!
       
    47         Destructor
       
    48     */
       
    49     ~VmbxCpGroup();
       
    50 
       
    51 private slots:
       
    52 
       
    53     /*!
       
    54         Query cs voice number when user click line edit
       
    55     */
       
    56     void queryCsVoiceNumber();
       
    57 
       
    58     /*!
       
    59         Query cs video number when user click line edit
       
    60     */
       
    61     void queryCsVideoNumber();
       
    62 
       
    63     /*!
       
    64         Update number when vmbx number changed by OTA,OMA etc.
       
    65     */
       
    66     void updateVmbxNumber(const TVmbxType vmbxType);
       
    67 
       
    68     /*!
       
    69          Slot which handles item updating when it is needed.
       
    70      */
       
    71     void itemShown(const QModelIndex &item);    
       
    72     
       
    73 private:
       
    74     
       
    75     /*!
       
    76         Preparation before loading
       
    77     */
       
    78     void loadingPreparation();    
       
    79     
       
    80     /*!
       
    81          Create the data form item by type
       
    82      */
       
    83     HbDataFormModelItem* createDataFormModelItem(const TVmbxType vmbxType);
       
    84         
       
    85     /*!
       
    86       Update the vmbx number to the UI
       
    87      */
       
    88     void UpdateWidgetContent(const QModelIndex &item, const QString &string);
       
    89 
       
    90 
       
    91 private:
       
    92     
       
    93     // Own.
       
    94     VmbxUiEngine *mUiEngine;
       
    95 
       
    96     // Not own.
       
    97     CpSettingFormItemData *mDefaultMailboxEditor;    
       
    98 
       
    99     // Not own.
       
   100     HbDataFormModelItem *mCsVoice1Editor;
       
   101 
       
   102     // Not own.
       
   103     HbDataFormModelItem *mCsVideo1Editor;
       
   104     
       
   105     // Index
       
   106     QModelIndex mCsVoice1Index;
       
   107 
       
   108     // Index
       
   109     QModelIndex mCsVideo1Index;
       
   110     
       
   111     // Not own
       
   112     CpItemDataHelper &mItemHelper;
       
   113 };
       
   114 
       
   115 #endif // VMBXCPGROUP_H