wlanutilities/wlansniffer/aihelper/inc/wsfaihelperview.h
branchRCL_3
changeset 25 f28ada11abbf
parent 0 56b72877c1cb
equal deleted inserted replaced
24:63be7eb3fc78 25:f28ada11abbf
       
     1 /*
       
     2 * Copyright (c) 2007-2008 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:  Class header for CWsfAiHelperView
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef C_WSFAIHELPERVIEW_H
       
    20 #define C_WSFAIHELPERVIEW_H
       
    21 
       
    22 
       
    23 // EXTERNAL INCLUDES
       
    24 #include <aknview.h>
       
    25 
       
    26 
       
    27 // FORWARD DECLARATIONS
       
    28 class CWsfAiHelperAppUi;
       
    29 class CWsfAiHelperContainer;
       
    30 
       
    31 
       
    32 // CLASS DECLARATION
       
    33 /**
       
    34 *  Main view class for the AiHelper application
       
    35 * 
       
    36 * @since S60 5.0
       
    37 * @lib wsfaihelper.exe
       
    38 */
       
    39 NONSHARABLE_CLASS( CWsfAiHelperView ): public CAknView
       
    40     {
       
    41     public:     // Constructors and destructor
       
    42         /**
       
    43          * Factory function
       
    44          * @since S60 5.0
       
    45          * @param aAppUi Pointer to the appui instance (ownership not passed)
       
    46          * @return Class instance
       
    47          */
       
    48         static CWsfAiHelperView* NewL( CWsfAiHelperAppUi* aAppUi );
       
    49 
       
    50         /**
       
    51          * Factory function
       
    52          * @since S60 5.0
       
    53          * @param aAppUi Pointer to the appui instance (ownership not passed)
       
    54          * @return Class instance
       
    55          */
       
    56         static CWsfAiHelperView* NewLC( CWsfAiHelperAppUi* aAppUi );
       
    57 
       
    58         /**
       
    59          * Destructor
       
    60          * @since S60 5.0
       
    61          */
       
    62         ~CWsfAiHelperView();
       
    63 
       
    64     private:    // Constructors
       
    65         
       
    66         /**
       
    67          * Constructor
       
    68          * @since S60 5.0
       
    69          * @param aAppUi Pointer to the appui instance (ownership not passed)
       
    70          */
       
    71         CWsfAiHelperView( CWsfAiHelperAppUi* aAppUi );
       
    72         
       
    73         /**
       
    74          * Second-phase constructor
       
    75          * @since S60 5.0
       
    76          */
       
    77         void ConstructL();
       
    78 
       
    79         
       
    80     private:  // From CAknView
       
    81         
       
    82         /**
       
    83          * Returns views id
       
    84          * @since S60 5.0
       
    85          * @return Id of this view
       
    86          */
       
    87         TUid Id() const;
       
    88         
       
    89         /**
       
    90          * Handles a view activation and passes the message of 
       
    91          * type aCustomMessageId
       
    92          * @since S60 5.0
       
    93          * @param aPrevViewId Specifies the view previously active.
       
    94          * @param aCustomMessageId Specifies the message type.
       
    95          * @param aCustomMessage The activation message
       
    96          */
       
    97         void DoActivateL( const TVwsViewId& aPrevViewId,
       
    98                           TUid aCustomMessageId,
       
    99                           const TDesC8& aCustomMessage );
       
   100         
       
   101         /**
       
   102          * View deactivation function
       
   103          * @since S60 5.0
       
   104          */
       
   105         void DoDeactivate();
       
   106         
       
   107         /**
       
   108          * Handle user menu selections
       
   109          * @since S60 5.0
       
   110          * @param aCommand The enumerated code for the option selected
       
   111          */
       
   112         void HandleCommandL( TInt aCommand );
       
   113 
       
   114         
       
   115     private: // Data
       
   116         /**
       
   117          * Pointer to the appui object (not owned)
       
   118          */
       
   119         CWsfAiHelperAppUi* iAppUi;
       
   120         
       
   121         /**
       
   122          * Container object (owned)
       
   123          */
       
   124         CWsfAiHelperContainer* iContainer;
       
   125     };
       
   126 
       
   127 #endif // C_WSFAIHELPERVIEW_H
       
   128 
       
   129 // End of File