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