devicemgmtdialogsplugin/inc/fotadevicedialogs.h
changeset 67 fdbfe0a95492
parent 47 d316aecb87fd
equal deleted inserted replaced
62:03849bd79877 67:fdbfe0a95492
    25 #include <hblabel.h>
    25 #include <hblabel.h>
    26 #include <hbpushbutton.h>
    26 #include <hbpushbutton.h>
    27 #include "syncmlnotifierprivate.h"
    27 #include "syncmlnotifierprivate.h"
    28 #include "devicemanagementnotifierwidget_p.h"
    28 #include "devicemanagementnotifierwidget_p.h"
    29 
    29 
       
    30 #include <QObject>
    30 
    31 
    31 class fotadevicedialogs:public HbDialog, public HbDeviceDialogInterface {
    32 
    32 //class fotadevicedialogs:public devicemanagementnotifierwidget {
    33 class fotadevicedialogs:public QObject
       
    34 {
       
    35 
    33 
    36 
    34 Q_OBJECT
    37 Q_OBJECT
    35 
    38 
    36 public:
    39 public:
    37 /**
    40 		/**
    38   * Construction and setting of observer happens here
    41 		  * Construction and setting of observer happens here
    39   *
    42 		  *
    40   * @since   S60   SF4
    43 		  * @since   SF4
    41   * @param   aType - tell sthe type of the dialog to be shown
    44 		  * @param   ptr - pointer to the devicemanagementnotifierwidget which sends the data to the calling module.
    42   * @param   aObserver is the parent class which owns the notifier and information is
    45 		  * passed to the parent class from the device dialog.
    43   * passed to the parent class from the device dialog.
    46 		  */
    44   */
    47 		
       
    48 		fotadevicedialogs(devicemanagementnotifierwidget* ptr);
       
    49 		
       
    50 		
       
    51 		/**
       
    52 		  * Destructor to release the memory
       
    53 		  *
       
    54 		  * @since   SF4
       
    55 		  * @param   None
       
    56 		  */
       
    57 		  
       
    58 		~fotadevicedialogs();
    45 
    59 
    46 fotadevicedialogs(const QVariantMap &parameters);
    60 		/**
    47 
       
    48 private:
       
    49     /**
       
    50       * Function to call the appropriate device dialog based on the dialog ID.
    61       * Function to call the appropriate device dialog based on the dialog ID.
    51       *
    62       *
    52       * @since   S60   SF4
    63       * @since   SF4
    53       * @param   aType - tell sthe type of the dialog to be shown
    64       * @param   aType - tell sthe type of the dialog to be shown
    54       * @param   parameters - contains the dialogID + information to be shown in the dialogs
    65       * @param   parameters - contains the dialogID + information to be shown in the dialogs
    55       */
    66       */
    56 
    67 
    57      void launchFotaDialog(const QVariantMap &parameters);
    68      void launchFotaDialog(const QVariantMap &parameters);
    58      
    69 
       
    70 
       
    71 private:
       
    72          
    59      /**
    73      /**
    60        * Function to show the informative dialog of FOTA
    74        * Function to show the informative dialog of FOTA
    61        *
    75        *
    62        * @since   S60   SF4
    76        * @since   SF4
    63        * @param   aType - tell sthe type of the dialog to be shown
    77        * @param   aType - tell sthe type of the dialog to be shown
    64        * @param   parameters - contains the dialogID + information to be shown in the dialogs
    78        * @param   parameters - contains the dialogID + information to be shown in the dialogs
    65        */
    79        */
    66 
    80 
    67      void createfotainformativedialog(TFwUpdNoteTypes aType,const QVariantMap &parameters);
    81      void createfotainformativedialog(TFwUpdNoteTypes aType,const QVariantMap &parameters);
    68      
    82      
    69      /**
    83      /**
    70         * Function to show the error message dialog of FOTA
    84         * Function to show the error message dialog of FOTA
    71         *
    85         *
    72         * @since   S60   SF4
    86         * @since   SF4
    73         * @param   aType - tell sthe type of the dialog to be shown
    87         * @param   aType - tell sthe type of the dialog to be shown
    74         * @param   parameters - contains the dialogID + information to be shown in the dialogs
    88         * @param   parameters - contains the dialogID + information to be shown in the dialogs
    75         */
    89         */
    76 
    90 
    77      void createfotamessagedialog(TFwUpdNoteTypes aType,const QVariantMap &parameters);
    91      void createfotamessagedialog(TFwUpdNoteTypes aType,const QVariantMap &parameters);
    78      
    92      
    79      /**
    93      /**
    80          * Function to show the confirmative dialog of FOTA
    94          * Function to show the confirmative dialog of FOTA
    81          *
    95          *
    82          * @since   S60   SF4
    96          * @since  SF4
    83          * @param   aType - tell sthe type of the dialog to be shown
    97          * @param   aType - tell sthe type of the dialog to be shown
    84          * @param   parameters - contains the dialogID + information to be shown in the dialogs
    98          * @param   parameters - contains the dialogID + information to be shown in the dialogs
    85          */
    99          */
    86      void createfotaconfirmationdialog(TFwUpdNoteTypes aType,const QVariantMap &parameters);
   100      void createfotaconfirmationdialog(TFwUpdNoteTypes aType,const QVariantMap &parameters);
    87 
   101 
    88 public slots:
   102 public slots:
    89 
   103 
    90 /**
   104 		/**
    91   * Construction and setting of observer happens here
   105 	  * Construction and setting of observer happens here
    92   *
   106 	  *
    93   * @since   S60   SF4
   107 	  * @since   SF4
    94   * @param   aObserver is the parent class which owns the notifier and information is
   108 	  * @param   aObserver is the parent class which owns the notifier and information is
    95   * passed to the parent class from the device dialog.
   109 	  * passed to the parent class from the device dialog.
    96   */
   110 	  */
    97 
       
    98     void fotaLSK();
   111     void fotaLSK();
       
   112     
    99     /**
   113     /**
   100       * Construction and setting of observer happens here
   114     * Construction and setting of observer happens here
   101       *
   115     *
   102       * @since   S60   SF4
   116     * @since   SF4
   103       * @param   aObserver is the parent class which owns the notifier and information is
   117     * @param   aObserver is the parent class which owns the notifier and information is
   104       * passed to the parent class from the device dialog.
   118     * passed to the parent class from the device dialog.
   105       */
   119     */
   106 
       
   107     void fotaRSK();
   120     void fotaRSK();
   108     
   121     
   109 
   122 private:
   110 public: //derived from HbDeviceDialogInterface
       
   111     /**
       
   112       * Ccalled when device dialog is closed.
       
   113       *
       
   114       * @since   S60   SF4
       
   115       * @param   byClient - The Name of the client which closed the dialog.
       
   116       */
       
   117 
       
   118 	void closeDeviceDialog(bool byClient);
       
   119     
   123     
   120     bool setDeviceDialogParameters(const QVariantMap &parameters);
   124     // The dialog ID of the current shown dialog.
   121     int deviceDialogError() const;
   125     TInt m_DialogId;
   122 //    void closeDeviceDialog(bool byClient);
   126     
   123     HbDialog *deviceDialogWidget() const;
   127     // HbDialog instance which actually shows the dialog from the docml.
   124 
   128     HbDialog* m_dialog;
   125 signals:
   129     
   126         void deviceDialogClosed();
   130     // widget pointer which is used to send the signals to the calling module.
   127         void deviceDialogData(QVariantMap data);
   131     devicemanagementnotifierwidget* m_Ptr;
   128 
       
   129 
       
   130 signals:
       
   131 /**
       
   132   * servertextmessage
       
   133   *
       
   134   * @since   S60   SF4
       
   135   * @param   aObserver is the parent class which owns the notifier and information is
       
   136   * passed to the parent class from the device dialog.
       
   137   */
       
   138 
       
   139     void servertextmessage(const QString &string);
       
   140 };
   132 };
   141 
   133 
   142 #endif
   134 #endif