phonesettings/cpphonesettingsplugins/cptelephonyutils/inc/cpphonenotes.h
changeset 30 ebdbd102c78a
parent 27 2f8f8080a020
child 51 f39ed5e045e0
--- a/phonesettings/cpphonesettingsplugins/cptelephonyutils/inc/cpphonenotes.h	Mon May 03 12:31:11 2010 +0300
+++ b/phonesettings/cpphonesettingsplugins/cptelephonyutils/inc/cpphonenotes.h	Fri May 14 15:51:57 2010 +0300
@@ -55,6 +55,16 @@
      */
     void progressNoteCanceled();
     
+    /**
+     This signal is emitted when the user coplete password query.
+     @param password            On return contains user given password.
+     @param ok                  True if the user pressed OK, false if the user 
+                                pressed Cancel.
+     */
+    void passwordQueryCompleted(
+        QString password,
+        bool okPressed);
+    
 public slots: // Slots: 
     
     /**
@@ -106,17 +116,12 @@
      accepted.
      @param title               Title for the query dialog.
      @param validator           Password validator.
-     @param maxPasswordLength   Maximum length for the password.  
-     @param password            On return contains user given password.
-     @param ok                  True if the user pressed OK, false if the user 
-                                pressed Cancel.
+     @param maxPasswordLength   Maximum length for the password.
      */
     void showPasswordQueryDialog(
         const QString &title,
         const QValidator &validator,
-        int maxPasswordLength,
-        QString &password,
-        bool &ok);
+        int maxPasswordLength);
     
     /**
      Cancels specified note.
@@ -129,6 +134,11 @@
      */
     bool noteShowing();
     
+    /**
+     Slot for HbDialog finished singal.
+     */
+    void finishedPasswordQueryDialog(HbAction* action);
+    
 private:
     
     /**
@@ -187,7 +197,7 @@
     bool m_isNoteShowingOngoing;
     
     /**
-      Password query dialog. Not own.
+      Password query dialog. Own.
      */
     HbInputDialog *m_passwordDialog;