wlanutilities/wlansniffer/src/wlansnifferservice.cpp
changeset 38 2dc6da6fb431
parent 29 dbe86d96ce5b
child 41 a87deff717bc
child 45 d9ec2b8c6bad
equal deleted inserted replaced
29:dbe86d96ce5b 38:2dc6da6fb431
     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:
       
    15  * 
       
    16  */
       
    17 
       
    18 #include "wlansnifferservice.h"
       
    19 #include "OstTraceDefinitions.h"
       
    20 #ifdef OST_TRACE_COMPILER_IN_USE
       
    21 #include "wlansnifferserviceTraces.h"
       
    22 #endif
       
    23 
       
    24 
       
    25 WlanSnifferService::WlanSnifferService(QObject* parent)
       
    26     : XQServiceProvider("com.nokia.services.wlansniffer.list", parent)
       
    27 {
       
    28     OstTraceFunctionEntry0( WLANSNIFFERSERVICE_WLANSNIFFERSERVICE_ENTRY );
       
    29     
       
    30     publishAll();
       
    31 
       
    32     OstTraceFunctionExit0( WLANSNIFFERSERVICE_WLANSNIFFERSERVICE_EXIT );
       
    33 }
       
    34 
       
    35 WlanSnifferService::~WlanSnifferService()
       
    36 {
       
    37     OstTraceFunctionEntry0( WLANSNIFFERSERVICE_WLANSNIFFERSERVICEDESTR_ENTRY );
       
    38     OstTraceFunctionExit0( WLANSNIFFERSERVICE_WLANSNIFFERSERVICEDESTR_EXIT );
       
    39 }
       
    40 
       
    41 void WlanSnifferService::complete()
       
    42 {
       
    43     OstTraceFunctionEntry0( WLANSNIFFERSERVICE_COMPLETE_ENTRY );
       
    44     
       
    45     QVariant returnValue(true);
       
    46     bool status = completeRequest(mAsyncRequestIndex, returnValue);
       
    47     Q_ASSERT(status);
       
    48 
       
    49     OstTraceFunctionExit0( WLANSNIFFERSERVICE_COMPLETE_EXIT );
       
    50 }
       
    51 
       
    52 void WlanSnifferService::listView()
       
    53 {
       
    54     OstTraceFunctionEntry0( WLANSNIFFERSERVICE_LISTVIEW_ENTRY );
       
    55     
       
    56     mAsyncRequestIndex = setCurrentRequestAsync();
       
    57     emit toListView();
       
    58 
       
    59     OstTraceFunctionExit0( WLANSNIFFERSERVICE_LISTVIEW_EXIT );
       
    60 }