wlanutilities/wlanwizard/tsrc/stubs/wlanmgmtclient.h
branchRCL_3
changeset 24 63be7eb3fc78
equal deleted inserted replaced
23:b852595f5cbe 24:63be7eb3fc78
       
     1 /*
       
     2 * Copyright (c) 2010 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:
       
    15 * WLAN Management API stubbing for WLAN Qt Utilities.
       
    16 */
       
    17 
       
    18 #ifndef WLANMGMTCLIENT_H
       
    19 #define WLANMGMTCLIENT_H
       
    20 
       
    21 #include "wlanmgmtcommon.h"
       
    22 #include "wlanscaninfo.h"
       
    23 
       
    24 class WlanMgmtClientContext;
       
    25 
       
    26 // CLASS DECLARATION
       
    27 
       
    28 class CWlanMgmtClient : public CBase
       
    29     {
       
    30     public:  // Methods
       
    31 
       
    32         // Constructors and destructor
       
    33 
       
    34         /**
       
    35          * Static constructor.
       
    36          * @return Pointer to the constructed object.
       
    37          */
       
    38         static CWlanMgmtClient* NewL();
       
    39 
       
    40         /**
       
    41          * Destructor.
       
    42          */
       
    43         ~CWlanMgmtClient();
       
    44 
       
    45         /**
       
    46          * Start Protected Setup.
       
    47          *
       
    48          * @param aStatus Status of the calling active object. On successful
       
    49          *                completion contains KErrNone, otherwise one of the
       
    50          *                system-wide error codes.
       
    51          * @param aSsid SSID of the network to configure.
       
    52          * @param aWpsPin PIN value to be used. "00000000" (string of eight zeros)
       
    53          *                if push button method is used.
       
    54          * @param aCredentials Results of a successful Protected Setup operation.
       
    55          * @sa \link psetup Protected Setup-specific error codes \endlink.
       
    56          */
       
    57         virtual void RunProtectedSetup(
       
    58             TRequestStatus& aStatus,
       
    59             const TWlanSsid& aSsid,
       
    60             const TWlanWpsPin& aWpsPin,
       
    61             CArrayFixSeg<TWlanProtectedSetupCredentialAttribute>& aCredentials );
       
    62         
       
    63         /**
       
    64          * Cancel an outstanding Protected Setup operation.
       
    65          */
       
    66         virtual void CancelProtectedSetup();
       
    67         
       
    68     private: // Data
       
    69         
       
    70         CWlanMgmtClient();
       
    71         CArrayFixSeg<TWlanProtectedSetupCredentialAttribute> *iResults;
       
    72         TWlanSsid iSsid;
       
    73         TInt iCompletionCode;
       
    74         
       
    75         friend class WlanMgmtClientContext;
       
    76     };
       
    77 
       
    78 #endif // WLANMGMTCLIENT_H