vmbx/vmbxcpplugin/inc/vmbxcpgroup.h
changeset 27 7eb70891911c
parent 19 e44a8c097b15
equal deleted inserted replaced
23:427125ac6cb8 27:7eb70891911c
    19 #define VMBXCPGROUP_H
    19 #define VMBXCPGROUP_H
    20 
    20 
    21 // System includes
    21 // System includes
    22 #include <cpsettingformitemdata.h>
    22 #include <cpsettingformitemdata.h>
    23 #include <voicemailboxdefs.h>
    23 #include <voicemailboxdefs.h>
       
    24 #include <QModelIndex>
    24 
    25 
    25 
    26 
    26 // Forward declarations
    27 // Forward declarations
    27 class VmbxUiEngine;
    28 class VmbxUiEngine;
    28 class CpItemDataHelper;
    29 class CpItemDataHelper;
    29 class HbDataFormModelItem;
    30 class HbDataFormModelItem;
       
    31 
    30 
    32 
    31 // Class declaration
    33 // Class declaration
    32 class VmbxCpGroup : public CpSettingFormItemData
    34 class VmbxCpGroup : public CpSettingFormItemData
    33 {
    35 {
    34     Q_OBJECT
    36     Q_OBJECT
    47     ~VmbxCpGroup();
    49     ~VmbxCpGroup();
    48 
    50 
    49 private slots:
    51 private slots:
    50 
    52 
    51     /*!
    53     /*!
    52         Notification slot for engine signal about 
       
    53         Voice Mailbox entries' changes
       
    54     */
       
    55     void voiceMailboxEngineEntriesUpdated();
       
    56 
       
    57     /*!
       
    58         Save default Mailbox
       
    59     */
       
    60     void saveDefaultMailbox(int aIndex);
       
    61 
       
    62     /*!
       
    63         Query cs voice number when user click line edit
    54         Query cs voice number when user click line edit
    64     */
    55     */
    65     void queryCsVoiceNumber();
    56     void queryCsVoiceNumber();
    66 
    57 
    67     /*!
    58     /*!
    70     void queryCsVideoNumber();
    61     void queryCsVideoNumber();
    71 
    62 
    72     /*!
    63     /*!
    73         Update number when vmbx number changed by OTA,OMA etc.
    64         Update number when vmbx number changed by OTA,OMA etc.
    74     */
    65     */
    75     void vmbxNumberChanged(const TVmbxType vmbxType);
    66     void updateVmbxNumber(const TVmbxType vmbxType);
    76 
    67 
       
    68     /*!
       
    69          Slot which handles item updating when it is needed.
       
    70      */
       
    71     void itemShown(const QModelIndex &item);    
       
    72     
    77 private:
    73 private:
    78     
    74     
    79     /*!
    75     /*!
    80         Preparation before loading
    76         Preparation before loading
    81     */
    77     */
    82     void loadingPreparation(CpItemDataHelper &itemDataHelper);    
    78     void loadingPreparation();    
    83     
    79     
    84     /*!
    80     /*!
    85         Update default mailbox
    81          Create the data form item by type
    86     */
    82      */
    87     void updateDefaultMailboxToUi();
    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);
    88 
    89 
    89     /*!
       
    90        Update Cs voice primary 
       
    91     */
       
    92     void updateCsVoice1ToUi();
       
    93 
       
    94     /*!
       
    95        update Cs video primary
       
    96     */
       
    97     void updateCsVideo1ToUi();
       
    98     
       
    99     /*!
       
   100         Update all mailboxes
       
   101     */
       
   102     void updateAllMailboxesToUi();
       
   103 
    90 
   104 private:
    91 private:
   105     
    92     
   106     // Own.
    93     // Own.
   107     VmbxUiEngine *mUiEngine;
    94     VmbxUiEngine *mUiEngine;
   112     // Not own.
    99     // Not own.
   113     HbDataFormModelItem *mCsVoice1Editor;
   100     HbDataFormModelItem *mCsVoice1Editor;
   114 
   101 
   115     // Not own.
   102     // Not own.
   116     HbDataFormModelItem *mCsVideo1Editor;
   103     HbDataFormModelItem *mCsVideo1Editor;
       
   104     
       
   105     // Index
       
   106     QModelIndex mCsVoice1Index;
       
   107 
       
   108     // Index
       
   109     QModelIndex mCsVideo1Index;
       
   110     
       
   111     // Not own
       
   112     CpItemDataHelper &mItemHelper;
   117 };
   113 };
   118 
   114 
   119 #endif // VMBXCPGROUP_H
   115 #endif // VMBXCPGROUP_H