phonesettings/cpphonesettingsplugins/cptelephonyutils/inc/cpphonenotes.h
changeset 30 ebdbd102c78a
parent 27 2f8f8080a020
child 51 f39ed5e045e0
equal deleted inserted replaced
27:2f8f8080a020 30:ebdbd102c78a
    53      user pressing the "cancel" button or by the application itself.
    53      user pressing the "cancel" button or by the application itself.
    54      @param     noteId      On return contains unique note identifier.
    54      @param     noteId      On return contains unique note identifier.
    55      */
    55      */
    56     void progressNoteCanceled();
    56     void progressNoteCanceled();
    57     
    57     
       
    58     /**
       
    59      This signal is emitted when the user coplete password query.
       
    60      @param password            On return contains user given password.
       
    61      @param ok                  True if the user pressed OK, false if the user 
       
    62                                 pressed Cancel.
       
    63      */
       
    64     void passwordQueryCompleted(
       
    65         QString password,
       
    66         bool okPressed);
       
    67     
    58 public slots: // Slots: 
    68 public slots: // Slots: 
    59     
    69     
    60     /**
    70     /**
    61      Shows global progress note. Note showing may be delayed if other note 
    71      Shows global progress note. Note showing may be delayed if other note 
    62      showing is ongoing. 
    72      showing is ongoing. 
   104      Shows password query dialog with OK & Cancel buttons and returns user
   114      Shows password query dialog with OK & Cancel buttons and returns user
   105      given password unless user has canceled query. Only valid password is
   115      given password unless user has canceled query. Only valid password is
   106      accepted.
   116      accepted.
   107      @param title               Title for the query dialog.
   117      @param title               Title for the query dialog.
   108      @param validator           Password validator.
   118      @param validator           Password validator.
   109      @param maxPasswordLength   Maximum length for the password.  
   119      @param maxPasswordLength   Maximum length for the password.
   110      @param password            On return contains user given password.
       
   111      @param ok                  True if the user pressed OK, false if the user 
       
   112                                 pressed Cancel.
       
   113      */
   120      */
   114     void showPasswordQueryDialog(
   121     void showPasswordQueryDialog(
   115         const QString &title,
   122         const QString &title,
   116         const QValidator &validator,
   123         const QValidator &validator,
   117         int maxPasswordLength,
   124         int maxPasswordLength);
   118         QString &password,
       
   119         bool &ok);
       
   120     
   125     
   121     /**
   126     /**
   122      Cancels specified note.
   127      Cancels specified note.
   123      @param     noteId      Note identifier.
   128      @param     noteId      Note identifier.
   124      */
   129      */
   126     
   131     
   127     /**
   132     /**
   128      Retuns true if note is currently shown.
   133      Retuns true if note is currently shown.
   129      */
   134      */
   130     bool noteShowing();
   135     bool noteShowing();
       
   136     
       
   137     /**
       
   138      Slot for HbDialog finished singal.
       
   139      */
       
   140     void finishedPasswordQueryDialog(HbAction* action);
   131     
   141     
   132 private:
   142 private:
   133     
   143     
   134     /**
   144     /**
   135      Resolves basic service group name by identifier.
   145      Resolves basic service group name by identifier.
   185       Indicates whether note controller is busy with some note showing.
   195       Indicates whether note controller is busy with some note showing.
   186      */
   196      */
   187     bool m_isNoteShowingOngoing;
   197     bool m_isNoteShowingOngoing;
   188     
   198     
   189     /**
   199     /**
   190       Password query dialog. Not own.
   200       Password query dialog. Own.
   191      */
   201      */
   192     HbInputDialog *m_passwordDialog;
   202     HbInputDialog *m_passwordDialog;
   193 
   203 
   194     /**
   204     /**
   195       Password validator. Not own.
   205       Password validator. Not own.