accesssec_plat/wi-fi_protected_setup_ui_api/inc/wifiprotuiinprocess.h
changeset 0 c8830336c852
child 2 1c7bc153c08e
equal deleted inserted replaced
-1:000000000000 0:c8830336c852
       
     1 /*
       
     2 * Copyright (c) 2001-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 the License "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: Declaration of CWifiProtUiInProcess
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 #ifndef C_WIFIPROTUIINPROCESS_H
       
    21 #define C_WIFIPROTUIINPROCESS_H
       
    22 
       
    23 
       
    24 // INCLUDES
       
    25 #include <cmmanagerext.h>
       
    26 #include <wlanmgmtcommon.h>
       
    27 #include <wifiprotreturn.h>
       
    28 
       
    29 class CWiFiProtDlgsPlugin;
       
    30 
       
    31 /**
       
    32  * CWifiProtUiInProcess class
       
    33  * Private interface class that allows the client to run
       
    34  * Wi-Fi Protected Setup directly, without using the
       
    35  * Notifier Framework
       
    36  */
       
    37 class CWifiProtUiInProcess : public CBase
       
    38     {
       
    39     
       
    40 public:
       
    41     
       
    42     /**
       
    43     * NewL function
       
    44     * @param  aCmManagerExt Cm Manager to use during Wi-Fi Protected Setup
       
    45     * return CWifiProtUiInProcess*
       
    46     */
       
    47     IMPORT_C static CWifiProtUiInProcess* NewL( RCmManagerExt*
       
    48                                                 aCmManagerExt );
       
    49 
       
    50     /**
       
    51     * Destructor
       
    52     */
       
    53     ~CWifiProtUiInProcess( );
       
    54 
       
    55     /**
       
    56     * Starts Wi-Fi Protected Setup
       
    57     * Private interface to be used by applications with ui
       
    58     * runs in the same process, so pointers can be passed
       
    59     * @param aSSid contains SSid of the network we want to configure 
       
    60     * @param aConnectionNeeded ETrue if we need a connection via the
       
    61     * configured network 
       
    62     * @return  possible return values are ok, cancel process and not use 
       
    63     * protected setup (No Auto).        
       
    64     */    
       
    65     IMPORT_C WiFiProt::TWiFiReturn StartFromUiL( const TWlanSsid& aSSid,
       
    66                                              TBool aConnectionNeeded,
       
    67                                              RArray<TUint32>& aUidsReturned);
       
    68 
       
    69 private:    
       
    70 
       
    71     /**
       
    72     * Constructor
       
    73     */
       
    74     CWifiProtUiInProcess( );
       
    75     
       
    76     /**
       
    77     * Second phase constructor
       
    78     * @param aCmManagerExt CmManager to use
       
    79     */
       
    80     void ConstructL( RCmManagerExt* aCmManagerExt = NULL );
       
    81                   
       
    82 private:
       
    83     CWiFiProtDlgsPlugin* iWiFiProtDlgsPlugin; // notifier plugin class
       
    84     };
       
    85 
       
    86 
       
    87 #endif // C_WIFIPROTUIINPROCESS_H
       
    88 
       
    89 // End of File