connectionutilities/ConnectionDialogs/ConnectionUiUtilities/NotifInc/ConfirmationQuery.h
branchRCL_3
changeset 8 2e6c4614c58e
parent 1 40cb640ef159
equal deleted inserted replaced
4:77415202bfc8 8:2e6c4614c58e
    28 class CExpiryTimer;
    28 class CExpiryTimer;
    29 
    29 
    30 // CLASS DECLARATIONS
    30 // CLASS DECLARATIONS
    31 
    31 
    32 /**
    32 /**
    33  * Class implements a query dialog.
    33  * Class implements a query dialog in home network.
    34  */
    34  */
    35 NONSHARABLE_CLASS( CConfirmationQuery ) : public CAknListQueryDialog, public MExpiryTimerCallback
    35 NONSHARABLE_CLASS( CConfirmationQuery ) : public CAknListQueryDialog, public MExpiryTimerCallback
    36     {
    36     {
    37     public:
    37     public:
    38         /**
    38         /**
   103         // Pointer for dialog expiration timer
   103         // Pointer for dialog expiration timer
   104         CExpiryTimer* iExpiryTimer;
   104         CExpiryTimer* iExpiryTimer;
   105     };
   105     };
   106 
   106 
   107 
   107 
       
   108 /**
       
   109  * Class implements a query dialog in visitor network.
       
   110  */
       
   111 NONSHARABLE_CLASS( CConfirmationQueryVisitor ) : public CAknMessageQueryDialog, public MExpiryTimerCallback
       
   112     {
       
   113     public:
       
   114         /**
       
   115         * Constructor the CConfirmationQuery class
       
   116         * @param aNotif notifier pointer
       
   117         * @param aNameOfConnMethod 
       
   118         * @param aUIId    
       
   119         * @return -
       
   120         */
       
   121         CConfirmationQueryVisitor( CConfirmationQueryNotif* aNotif );
       
   122 
       
   123         /**
       
   124         * Exit function the CConfirmationQuery
       
   125         * @param aButtonId 
       
   126         * @return TBool exit or no
       
   127         */
       
   128         virtual TBool OkToExitL( TInt aButtonId );
       
   129     
       
   130         /**
       
   131         * Dialog expiration timeout callback
       
   132         */
       
   133         void HandleTimedOut();
       
   134         
       
   135         /**
       
   136         * Destructor
       
   137         */
       
   138         virtual ~CConfirmationQueryVisitor();     
       
   139 
       
   140         /**
       
   141         * Tries to exit the dialog when the specified button is pressed, if this 
       
   142         * button should exit the dialog.
       
   143         *
       
   144         * See @c OkToExitL() to determine which buttons can exit the dialog.
       
   145         * 
       
   146         * This will fail if user exit is prevented by the 
       
   147         * @c EEikDialogFlagNoUserExit flag. If the @c EEikDialogFlagNotifyEsc flag
       
   148         * is not set and the dialog has been cancelled it immediately deletes 
       
   149         * itself.
       
   150         * 
       
   151         * @param aButtonId The id of the pressed button.
       
   152         */
       
   153         void TryExitL( TInt aButtonId );
       
   154         
       
   155         TKeyResponse OfferKeyEventL( const TKeyEvent& aKeyEvent, 
       
   156                                      TEventCode aType);
       
   157         
       
   158 
       
   159     private:
       
   160         /**
       
   161         * PreLayoutDynInitL
       
   162         * @param    -
       
   163         */
       
   164         virtual void PreLayoutDynInitL();    
       
   165 
       
   166     private:
       
   167         CConfirmationQueryNotif* iNotif;  // Pointer to the Notifier, not owned
       
   168                 
       
   169         // Pointer for dialog expiration timer
       
   170         CExpiryTimer* iExpiryTimer;
       
   171     };
       
   172 
       
   173 
   108 #endif  // __CONFIRMATION_QUERY_H__
   174 #endif  // __CONFIRMATION_QUERY_H__
   109 
   175 
   110 // End of File
   176 // End of File