wlanutilities/wlanwizard/t_wlanwizard/stubs/wlanqtutils_context.cpp
changeset 56 de27cc8389dd
parent 50 d4198dcb9983
child 58 301aeb18ae47
--- a/wlanutilities/wlanwizard/t_wlanwizard/stubs/wlanqtutils_context.cpp	Wed Aug 18 10:52:46 2010 +0300
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,135 +0,0 @@
-/*
-* Copyright (c) 2009 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:
-*/
-
-
-#include "wlanqtutils_context.h"
-#include "wlanqtutils.h"
-#include "wlanqtutilsap.h"
-
-WlanQtUtilsContext::WlanQtUtilsContext(WlanQtUtils *utils )
-: mUtils(utils)
-{
-    
-    
-}
-
-WlanQtUtilsContext::~WlanQtUtilsContext()
-{
-    
-}
-  
-void WlanQtUtilsContext::setScanWlanApsResult(
-    QList<QSharedPointer<WlanQtUtilsAp> > result )
-{
-    mUtils->mScanWlanAps = result;
-}
-
-void WlanQtUtilsContext::setScanWlanDirectResult( QString ssid,
-    QList<QSharedPointer<WlanQtUtilsAp> > result )
-{
-    mUtils->mScanWlanDirectSsid = ssid;
-    mUtils->mScanWlanDirect = result;
-}
-
-void WlanQtUtilsContext::setCreateWlanIapResult(int iapId)
-{
-    mUtils->mCreateWlanIapReturn = iapId;
-    mUtils->mActiveWlanIapReturn = iapId;
-}
-
-void WlanQtUtilsContext::setActiveWlanIapResult(int iapId)
-{
-    mUtils->mActiveWlanIapReturn = iapId;
-}
-
-void WlanQtUtilsContext::setUpdateWlanIapResult(bool returnValue)
-{
-    mUtils->mUpdateWlanIapReturn = returnValue;
-}
-        
-void WlanQtUtilsContext::setConnectionSuccessed(bool value)
-{
-    mUtils->mConnectionSuccess = value;
-}
-    
-void WlanQtUtilsContext::setSignalWlanNetworkOpened(int iapId)
-{
-    mUtils->mWlanNetworkOpenedIapId = iapId;
-}
- 
-void WlanQtUtilsContext::setSignalWlanNetworkClosed(int iapId, int reason)
-{
-    mUtils->mWlanNetworkClosedIapId = iapId;
-    mUtils->mWlanNetworkClosedReason = reason;
-}
-
-void WlanQtUtilsContext::setSignalIctResult(int iapId, WlanQtUtils::IctStatus result)
-{
-    mUtils->mIctResultIapId = iapId;
-    mUtils->mIctResultResults = result;
-}
-
-void WlanQtUtilsContext::setScanApStatus(int status)
-{
-    mUtils->mScanApStatus = status;
-}
-
-void WlanQtUtilsContext::setScanDirectStatus(int status)
-{
-    mUtils->mScanDirectStatus = status;
-}
-
-void WlanQtUtilsContext::setImmediateApScanResult(bool immediate)
-{
-    mUtils->mEmitScanApReady = immediate;
-}
-
-void WlanQtUtilsContext::emitScanApReady()
-{
-    mUtils->emitScanApsReady();
-}
-    
-QStringList WlanQtUtilsContext::calledMethods()
-{
-    QStringList methods = mUtils->mCalledMethods;
-    mUtils->mCalledMethods.clear();
-    return methods;
-}
-    
-bool WlanQtUtilsContext::verifyWlanIapSettings(WlanQtUtilsAp &ref)
-{
-    bool ret = true;
-    if (!mUtils->mWlanAp){
-        qWarning("WlanQtUtilsContext::verifyWlanIapSettings: iap not created");
-        ret = false;
-    }
-    
-    if (!(*(mUtils->mWlanAp) == ref)){
-        qWarning("WlanQtUtilsContext::verifyWlanIapSettings: settings does not match");
-        ret = false;
-    }
-    return ret;
-}
-
-void WlanQtUtilsContext::emitWlanNetworkOpened(int iapId)
-{
-    emit mUtils->wlanNetworkOpened(iapId);
-}
-
-void WlanQtUtilsContext::emitWlanNetworkClosed(int iapId, int reason)
-{
-    emit mUtils->wlanNetworkClosed(iapId, reason);   
-}