wlanutilities/wlansniffer/wlansnifferapplication/inc/wlansniffermainwindow.h
changeset 38 2dc6da6fb431
child 39 7b3e49e4608a
equal deleted inserted replaced
29:dbe86d96ce5b 38:2dc6da6fb431
       
     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 * WLAN Sniffer main window. 
       
    16 */
       
    17 
       
    18 #ifndef WLANSNIFFERMAINWINDOW_H
       
    19 #define WLANSNIFFERMAINWINDOW_H
       
    20 
       
    21 // System includes
       
    22 
       
    23 #include <QObject>
       
    24 #include <QString>
       
    25 #include <HbMainWindow>
       
    26 
       
    27 // User includes
       
    28 
       
    29 #include "wlansniffer.h"
       
    30 
       
    31 // Forward declarations
       
    32 
       
    33 class WlanWizard;
       
    34 class WlanSnifferListView;
       
    35 class WlanQtUtilsAp;
       
    36 class WlanSnifferEngine;
       
    37 
       
    38 // External data types
       
    39 
       
    40 // Constants
       
    41 
       
    42 // Class declaration
       
    43 
       
    44 class WlanSnifferMainWindow : public HbMainWindow
       
    45 {
       
    46     Q_OBJECT
       
    47 
       
    48 public:
       
    49 
       
    50     // Data types
       
    51 
       
    52     explicit WlanSnifferMainWindow(WlanSnifferEngine *engine);
       
    53     
       
    54     ~WlanSnifferMainWindow();
       
    55 
       
    56 signals:
       
    57 
       
    58 public slots:
       
    59 
       
    60     void toListView(const QString &title);
       
    61 
       
    62 protected:
       
    63 
       
    64 protected slots:
       
    65 
       
    66 private:
       
    67 
       
    68     Q_DISABLE_COPY(WlanSnifferMainWindow)
       
    69 
       
    70     void addListView();
       
    71     
       
    72 private slots:
       
    73 
       
    74     void startWlanWizard(const WlanQtUtilsAp *ap);
       
    75     
       
    76     void handleWlanWizardComplete(int iapId, bool connected);
       
    77     
       
    78     void handleWlanWizardCancelled();
       
    79 
       
    80 private: // data
       
    81 
       
    82     // Owned data
       
    83 
       
    84     WlanWizard *mWizard;                //!< WLAN Wizard object
       
    85     WlanSnifferListView *mListView;     //!< List view object
       
    86 
       
    87     // Not owned data
       
    88 
       
    89     WlanSnifferEngine *mEngine;         //!< WLAN Sniffer engine
       
    90 
       
    91     // Friend classes
       
    92 };
       
    93 
       
    94 #endif // WLANSNIFFERMAINWINDOW_H