wlanutilities/wlanwizard/t_wlanwizard/stubs/wlanmgmtclient_stub.cpp
changeset 56 de27cc8389dd
parent 50 d4198dcb9983
child 58 301aeb18ae47
--- a/wlanutilities/wlanwizard/t_wlanwizard/stubs/wlanmgmtclient_stub.cpp	Wed Aug 18 10:52:46 2010 +0300
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,83 +0,0 @@
-/*
-* Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies).
-* All rights reserved.
-* This component and the accompanying materials are made available
-* under the terms of "Eclipse Public License v1.0"
-* which accompanies this distribution, and is available
-* at the URL "http://www.eclipse.org/legal/epl-v10.html".
-*
-* Initial Contributors:
-* Nokia Corporation - initial contribution.
-*
-* Contributors:
-*
-* Description:
-* WLAN Management API stubbing for WLAN Qt Utilities.
-*/
-
-#include <QTest>
-
-#include <e32std.h>
-#include <e32base.h>
-#include <e32cmn.h>
-#include "wlanmgmtclient.h"
-#include "testwlanwizardcontext.h"
-
-// ---------------------------------------------------------
-// CWlanScanRequest::NewL
-// ---------------------------------------------------------
-//
-CWlanMgmtClient* CWlanMgmtClient::NewL()
-    {
-    CWlanMgmtClient* self = new CWlanMgmtClient;
-
-    TestWlanWizardContext::setWlanMgmtClientObject(self);
-    return self;
-    }
-    
-// ---------------------------------------------------------
-// CWlanScanRequest::~CWlanMgmtClient
-// ---------------------------------------------------------
-//
-CWlanMgmtClient::~CWlanMgmtClient()
-    {
-    delete iResults;
-    }
-
-// ---------------------------------------------------------
-// CWlanScanRequest::CWlanMgmtClient
-// ---------------------------------------------------------
-//
-CWlanMgmtClient::CWlanMgmtClient()
-    {
-    iResults = new (ELeave) CArrayFixSeg<TWlanProtectedSetupCredentialAttribute> (4);
-    }
-
-// ---------------------------------------------------------
-// CWlanScanRequest::RunProtectedSetup
-// ---------------------------------------------------------
-//
-void CWlanMgmtClient::RunProtectedSetup(
-    TRequestStatus& aStatus,
-    const TWlanSsid& aSsid,
-    const TWlanWpsPin& aWpsPin,
-    CArrayFixSeg<TWlanProtectedSetupCredentialAttribute>& aCredentials )
-{
-    Q_UNUSED(aWpsPin);
-    QCOMPARE(aSsid, iSsid);
-    for (int i = 0 ; i < iResults->Count() ; ++i){
-        aCredentials.AppendL(iResults->At(i));
-    }
-    User::RequestComplete(&aStatus, iCompletionCode);
-}
-
-// ---------------------------------------------------------
-// CWlanScanRequest::CancelProtectedSetup
-// ---------------------------------------------------------
-//
-void CWlanMgmtClient::CancelProtectedSetup()
-    {
-    // TODO
-    //User::RequestComplete(iStubRequestStatus, KErrCancel);
-    //iStubRequestStatus = 0;
-    }