wlanutilities/wlanqtutilities/wrapper/inc/wlanqtutilsconntestwrapper.h
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Fri, 16 Apr 2010 16:07:56 +0300
changeset 19 10810c91db26
child 31 e8f4211554fb
permissions -rw-r--r--
Revision: 201011 Kit: 201015

/*
* 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:
*
*/

#ifndef WLANQTUTILSCONNTESTWRAPPER_H_
#define WLANQTUTILSCONNTESTWRAPPER_H_

#include <QObject>

QT_BEGIN_HEADER

QT_BEGIN_NAMESPACE

class ConnTestWrapperPrivate;

/**
* ConnTestWrapper class.
*/
class ConnTestWrapper: public QObject
{
    Q_OBJECT
    
    // TestWlanQtUtils is defined as a friend class in order to be able to
    // call event handlers of wrappers.
    friend class TestWlanQtUtils;

public: // Constructor and destructor
    
    /**
    * Default constructor
    */
    ConnTestWrapper(QObject *parent = 0);
    
    /**
    * Destructor
    */
    ~ConnTestWrapper();
    
public: 
    
    /**
    * Called by private wrapper when connectivity test is ready.
    * 
    * @param[in] result Result of internet connectivity test
    */
    void connectivityTestDone(bool result);

public slots:

    /**
    * Starts internet connectivity test.
    * 
    * @param[in] iapId iap id
    * @param[in] netId network id
    */
    void startConnectivityTest(int iapId, int netId);
        
signals:

    /**
    * Signal for emitting connectivity test result.
    * 
    * @param[in] result Result of internet connectivity test
    */
    void connectivityTestResult(bool result);

private:
    
    /**
    * d_ptr pointer to ConnTestWrapperPrivate
    * Owned by ConnTestWrapper object, instantiated in constructor.
    */
    ConnTestWrapperPrivate *d_ptr_;
};

QT_END_HEADER

QT_END_NAMESPACE

#endif /* WLANQTUTILSCONNTESTWRAPPER_H_ */