connectionutilities/ConnectionDialogs/ConnectionUiUtilities/NotifInc/easywapidlgnotif.h
changeset 0 5a93021fdf25
equal deleted inserted replaced
-1:000000000000 0:5a93021fdf25
       
     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 WAPI pre-shared key query dialog
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 #ifndef __EASY_WAPI_DLG_NOTIF_H__
       
    21 #define __EASY_WAPI_DLG_NOTIF_H__
       
    22 
       
    23 
       
    24 // INCLUDES
       
    25 #include "ConnectionDialogsNotifBase.h"
       
    26 #include "WepWpaQueryDlg.h"
       
    27 #include "ConnectionUiUtilitiesCommon.h"
       
    28 
       
    29 /**
       
    30  * CEasyWapiDlgNotif class
       
    31  */
       
    32 NONSHARABLE_CLASS( CEasyWapiDlgNotif ) : public CConnectionDialogsNotifBase
       
    33     {
       
    34 public:
       
    35     
       
    36 
       
    37    /**
       
    38     * NewL function
       
    39     * @param  -
       
    40     * return CEasyWapiDlgNotif*
       
    41     */
       
    42     static CEasyWapiDlgNotif* NewL( const TBool aResourceFileResponsible );
       
    43 
       
    44     /**
       
    45     * RegisterL register the client notifier function
       
    46     * @param  -
       
    47     * return TNotifierInfo
       
    48     */
       
    49     TNotifierInfo RegisterL();
       
    50 
       
    51     /**
       
    52     * Start the Notifier
       
    53     * @param  aBuffer    Buffer
       
    54     * @param  aReplySlot Identifies which message argument to use for the 
       
    55     *                    reply. This message argument will refer to a 
       
    56     *                    modifiable descriptor, a TDes8 type, into which data
       
    57     *                    can be returned. 
       
    58     * @param  aMessage   Message
       
    59     * return -
       
    60     */
       
    61     void StartL( const TDesC8& aBuffer, TInt aReplySlot, 
       
    62                  const RMessagePtr2& aMessage );
       
    63 
       
    64     /**
       
    65     * Cancel() the notifier
       
    66     * @param  -
       
    67     * return -
       
    68     */
       
    69     void Cancel();
       
    70 
       
    71 public:
       
    72 
       
    73     /**
       
    74     * CompleteL the notifier is complete
       
    75     * @param  aStatus status
       
    76     * return  -
       
    77     */
       
    78     void CompleteL( TInt aStatus );
       
    79 
       
    80 private:
       
    81  
       
    82     // Pointer to the dialog
       
    83     CWepWpaQueryDlg*                            iDialog;
       
    84     
       
    85     // To read/write WAPI PSK from/to client
       
    86     TPckgBuf< TBuf< KEasyWapiQueryMaxLength > > iKey;
       
    87     
       
    88     TBool iHex; // not used
       
    89     };
       
    90 
       
    91 #endif // __EASY_WAPI_DLG_NOTIF_H__
       
    92 
       
    93 // End of File