wlanutilities/wlansniffer/wlansnifferapplication/inc/wlansniffer.h
branchRCL_3
changeset 24 63be7eb3fc78
equal deleted inserted replaced
23:b852595f5cbe 24:63be7eb3fc78
       
     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 application main class. 
       
    16 */
       
    17 
       
    18 #ifndef WLANSNIFFER_H
       
    19 #define WLANSNIFFER_H
       
    20 
       
    21 // System includes
       
    22 
       
    23 #include <QSharedPointer>
       
    24 #include <HbApplication>
       
    25 
       
    26 // User includes
       
    27 
       
    28 // Forward declarations
       
    29 
       
    30 class WlanSnifferEngine;
       
    31 class HbTranslator;
       
    32 class WlanSnifferMainWindow;
       
    33 
       
    34 // External data types
       
    35 
       
    36 // Constants
       
    37 
       
    38 // Class declaration
       
    39 
       
    40 class WlanSniffer : public HbApplication
       
    41 {
       
    42     Q_OBJECT
       
    43 
       
    44 public:
       
    45 
       
    46     // Data types
       
    47 
       
    48     WlanSniffer(int argc, char* argv[]);
       
    49 
       
    50     ~WlanSniffer();
       
    51 
       
    52 signals:
       
    53 
       
    54 public slots:
       
    55 
       
    56 protected:
       
    57 
       
    58 protected slots:
       
    59 
       
    60 private:
       
    61 
       
    62     Q_DISABLE_COPY(WlanSniffer)
       
    63 
       
    64     bool findKeepaliveProcess();
       
    65 
       
    66 private slots:
       
    67 
       
    68     void exitApplication();
       
    69 
       
    70 private: // data
       
    71 
       
    72     // Not owned data
       
    73 
       
    74     // Owned data
       
    75     WlanSnifferEngine *mEngine;                 //!< Sniffer engine
       
    76     QSharedPointer<HbTranslator> mTranslator;   //!< Translator for localisation 
       
    77     QSharedPointer<WlanSnifferMainWindow> mMainWindow;  //!< Main window instance
       
    78 
       
    79     // Friend classes
       
    80 };
       
    81 
       
    82 #endif // WLANSNIFFER_H