wlanutilities/wlanqtutilities/wrapper/inc/wlanqtutilsconntestwrapper.h
changeset 46 2fbd1d709fe7
parent 45 d9ec2b8c6bad
child 47 b3d8f88532b7
child 50 d4198dcb9983
equal deleted inserted replaced
45:d9ec2b8c6bad 46:2fbd1d709fe7
     1 /*
       
     2 * Copyright (c) 2009-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 *
       
    16 */
       
    17 
       
    18 #ifndef WLANQTUTILSCONNTESTWRAPPER_H_
       
    19 #define WLANQTUTILSCONNTESTWRAPPER_H_
       
    20 
       
    21 #include <QObject>
       
    22 #include <QScopedPointer>
       
    23 
       
    24 class ConnTestWrapperPrivate;
       
    25 
       
    26 /**
       
    27 * ConnTestWrapper class.
       
    28 */
       
    29 class ConnTestWrapper: public QObject
       
    30 {
       
    31     Q_OBJECT
       
    32     
       
    33     // TestWlanQtUtils is defined as a friend class in order to be able to
       
    34     // call event handlers of wrappers.
       
    35     friend class TestWlanQtUtils;
       
    36 
       
    37 public: // Constructor and destructor
       
    38     
       
    39     /**
       
    40     * Default constructor
       
    41     */
       
    42     ConnTestWrapper(QObject *parent = 0);
       
    43     
       
    44     /**
       
    45     * Destructor
       
    46     */
       
    47     ~ConnTestWrapper();
       
    48     
       
    49 public: 
       
    50     
       
    51     /**
       
    52     * Called by private wrapper when connectivity test is ready.
       
    53     * 
       
    54     * @param[in] result Result of internet connectivity test
       
    55     */
       
    56     void connectivityTestDone(bool result);
       
    57 
       
    58 public slots:
       
    59 
       
    60     /**
       
    61     * Starts internet connectivity test.
       
    62     * 
       
    63     * @param[in] iapId iap id
       
    64     * @param[in] netId network id
       
    65     */
       
    66     void startConnectivityTest(int iapId, int netId);
       
    67         
       
    68 signals:
       
    69 
       
    70     /**
       
    71     * Signal for emitting connectivity test result.
       
    72     * 
       
    73     * @param[in] result Result of internet connectivity test
       
    74     */
       
    75     void connectivityTestResult(bool result);
       
    76 
       
    77 private:
       
    78     
       
    79     /**
       
    80     * d_ptr pointer to ConnTestWrapperPrivate
       
    81     * Owned by ConnTestWrapper object, instantiated in constructor.
       
    82     */
       
    83     QScopedPointer<ConnTestWrapperPrivate> d_ptr_;
       
    84 };
       
    85 
       
    86 #endif /* WLANQTUTILSCONNTESTWRAPPER_H_ */