connectionutilities/ConnectionDialogs/ConnectionUiUtilities/NotifInc/wlanpowersavetestnotif.h
branchRCL_3
changeset 58 83ca720e2b9a
parent 57 05bc53fe583b
child 62 bb1f80fb7db2
equal deleted inserted replaced
57:05bc53fe583b 58:83ca720e2b9a
     1 /*
       
     2 * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). 
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description:  Notifier part for WLAN Power Save Testing notification dialog
       
    15 *
       
    16 */
       
    17 
       
    18 #ifndef __POWERSAVETESTQUERYNOTIF_H__
       
    19 #define __POWERSAVETESTQUERYNOTIF_H__
       
    20 
       
    21 
       
    22 // INCLUDES
       
    23 #include <e32base.h>
       
    24 
       
    25 #include "ConnectionDialogsNotifBase.h"
       
    26 
       
    27 // FORWARD DECLARATIONS
       
    28 class CWlanPowerSaveQuery;
       
    29 
       
    30 /**
       
    31  * OfflineWlanNoteNotif class
       
    32  */
       
    33 NONSHARABLE_CLASS( CWlanPowerSaveQueryNotif ) 
       
    34                                         : public CConnectionDialogsNotifBase
       
    35     {
       
    36     public:
       
    37     
       
    38         /**
       
    39         * NewL function
       
    40         * @param  -
       
    41         * return CWlanPowerSaveQueryNotif*
       
    42         */
       
    43         static CWlanPowerSaveQueryNotif* NewL( 
       
    44                                         const TBool aResourceFileResponsible );
       
    45                                         
       
    46         /**
       
    47         * ~CWlanPowerSaveQueryNotif() destructor
       
    48         * @param  -
       
    49         * return  -
       
    50         */
       
    51         virtual ~CWlanPowerSaveQueryNotif();
       
    52                                 
       
    53 
       
    54         /**
       
    55         * RegisterL register the client notifier function
       
    56         * @param  -
       
    57         * return TNotifierInfo
       
    58         */
       
    59         TNotifierInfo RegisterL();
       
    60 
       
    61         /**
       
    62         * Start the Notifier
       
    63         * @param  aBuffer    Buffer
       
    64         * @param  aReplySlot Identifies which message argument to use for the 
       
    65         *                    reply. This message argument will refer to a 
       
    66         *                    modifiable descriptor, a TDes8 type, into which
       
    67         *                    data can be returned. 
       
    68         * @param  aMessage   Message
       
    69         * return -
       
    70         */
       
    71         void StartL( const TDesC8&       aBuffer, 
       
    72                      TInt                aReplySlot, 
       
    73                      const RMessagePtr2& aMessage );
       
    74 
       
    75         /**
       
    76         * Cancel() the notifier
       
    77         * @param  -
       
    78         * return -
       
    79         */
       
    80         void Cancel();
       
    81 
       
    82     public:
       
    83 
       
    84         /**
       
    85         * CompleteL the notifier is complete
       
    86         * @param  aStatus status
       
    87         * return  -
       
    88         */
       
    89         void CompleteL( TInt aStatus );
       
    90 
       
    91          /**
       
    92         * Callback is called when user selects dialog's link
       
    93         * @param  aObject Pointer to notifier object.
       
    94         * return  Error code
       
    95         */  
       
    96         static TInt DisableTestLinkL( TAny* aObject );
       
    97         
       
    98     private:        
       
    99 
       
   100         /**
       
   101         * Constructor.
       
   102         */
       
   103         CWlanPowerSaveQueryNotif();
       
   104         
       
   105         /**
       
   106         * Exits the dialog.
       
   107         */
       
   108         void DoDisableTestLinkL();
       
   109         
       
   110     private:
       
   111         CWlanPowerSaveQuery* iDialog;    // Pointer to the dialog
       
   112         TBool                iDisable;   // Disable notification in the future
       
   113         CAsyncCallBack*      iExitAsync; // One shot active object
       
   114     };
       
   115 
       
   116 
       
   117 #endif // __POWERSAVETESTQUERYNOTIF_H__
       
   118 
       
   119 // End of File