phonesettings/cpphonesettingsplugins/divertplugin/src/cpdivertplugingroup.h
changeset 30 ebdbd102c78a
parent 27 2f8f8080a020
child 51 f39ed5e045e0
equal deleted inserted replaced
27:2f8f8080a020 30:ebdbd102c78a
    32 class SsSettingsWrapper;
    32 class SsSettingsWrapper;
    33 class HbComboBox;
    33 class HbComboBox;
    34 class PSCallDivertingCommand;
    34 class PSCallDivertingCommand;
    35 class HbListWidget;
    35 class HbListWidget;
    36 class CpDivertItemData;
    36 class CpDivertItemData;
       
    37 class QEventLoop; 
       
    38 class HbLineEdit; 
    37 
    39 
    38 using namespace CpTelephonyUtils;
    40 using namespace CpTelephonyUtils;
    39 
    41 
    40 /*!
    42 /*!
    41     \class CpDivertPluginGroup
    43     \class CpDivertPluginGroup
    99 
   101 
   100     /**
   102     /**
   101      Slot which handles item updating when it is needed.
   103      Slot which handles item updating when it is needed.
   102      */
   104      */
   103     void itemShown(const QModelIndex& item);
   105     void itemShown(const QModelIndex& item);
       
   106     
       
   107     void voiceNumberListQueryClosed(HbAction* action);
       
   108     void popUpNumberEditorClosed(HbAction* action);
       
   109     void popUpTimerQueryClosed(HbAction* action);
       
   110     
   104 private:     
   111 private:     
   105     
   112     
   106     /**
   113     /**
   107      Creates group items.
   114      Creates group items.
   108      */
   115      */
   131             const QString& heading, QString& result, PsServiceGroup serviceGroup);
   138             const QString& heading, QString& result, PsServiceGroup serviceGroup);
   132     
   139     
   133     /**
   140     /**
   134      Show to user number query.
   141      Show to user number query.
   135      */
   142      */
   136     bool popUpNumberEditor(
   143     void popUpNumberEditor(
   137             const QString& heading, QString& result);
   144             const QString& heading, QString& result);
   138     
   145     
   139     
   146     
   140     /**
   147     /**
   141      Send comand to psetwrappercalldiverting.
   148      Send comand to psetwrappercalldiverting.
   143     void setCallDiverting(PSCallDivertingCommand& command);
   150     void setCallDiverting(PSCallDivertingCommand& command);
   144     
   151     
   145     /**
   152     /**
   146      Show to user divert time out query list.
   153      Show to user divert time out query list.
   147      */
   154      */
   148     bool popUpTimerQuery(int &timeout) const;
   155     bool popUpTimerQuery(int &timeout);
   149     
   156     
   150     /**
   157     /**
   151      Desides which bsc parameters to use.
   158      Desides which bsc parameters to use.
   152      */
   159      */
   153     int bscParam(PsServiceGroup serviceGroup);
   160     int bscParam(PsServiceGroup serviceGroup);
   243     CpDivertItemData *m_DataItemVideoAllCalls;
   250     CpDivertItemData *m_DataItemVideoAllCalls;
   244     CpDivertItemData *m_DataItemVideoIfBusy;
   251     CpDivertItemData *m_DataItemVideoIfBusy;
   245     CpDivertItemData *m_DataItemVideoIfNotAnswered;
   252     CpDivertItemData *m_DataItemVideoIfNotAnswered;
   246     CpDivertItemData *m_DataItemVideoIfOutOfReach;
   253     CpDivertItemData *m_DataItemVideoIfOutOfReach;
   247     CpDivertItemData *m_DataItemVideoIfNotAvailable;
   254     CpDivertItemData *m_DataItemVideoIfNotAvailable;
   248     
   255 
   249     int m_activeNoteId;
   256     int m_activeNoteId;
   250     int m_activeProgressNoteId;
   257     int m_activeProgressNoteId;
   251 
   258 
   252     // To prevent adding vmbx number to defaultlist
   259     // To prevent adding vmbx number to defaultlist
   253     bool m_divertToVoiceMailBox;
   260     bool m_divertToVoiceMailBox;
   256      Divert request queue
   263      Divert request queue
   257      */
   264      */
   258     QQueue<CpDivertRequestQueueItem> m_divertRequestQueue;
   265     QQueue<CpDivertRequestQueueItem> m_divertRequestQueue;
   259 
   266 
   260     CpItemDataHelper &m_helper;
   267     CpItemDataHelper &m_helper;
       
   268     
       
   269     int m_divertTimeout;
       
   270     
       
   271     HbListWidget *m_voiceNumberList;
       
   272     HbListWidget *m_popupTimerList; 
       
   273     QString m_divertNumber; 
       
   274     HbLineEdit *m_voiceNumberEditor; 
       
   275     QEventLoop *m_eventLoop; 
       
   276     
   261 };
   277 };
   262 
   278 
   263 #endif // CPDIVERTPLUGINGROUP_H
   279 #endif // CPDIVERTPLUGINGROUP_H
   264 
   280 
   265 // end of file
   281