stifui/avkon/stifui/inc/TestSetStartedCasesView.h
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Tue, 27 Apr 2010 16:38:40 +0300
branchRCL_3
changeset 9 404ad6c9bc20
permissions -rw-r--r--
Revision: 201015 Kit: 201017

/*
* Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). 
* All rights reserved.
* This component and the accompanying materials are made available
* under the terms of "Eclipse Public License v1.0"
* which accompanies this distribution, and is available
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
*
* Initial Contributors:
* Nokia Corporation - initial contribution.
*
* Contributors:
* 
* Description: This file contains CTestSetStartedCasesView class
* declaration.
*
*/

#ifndef TESTSETSTARTEDCASESVIEW_H
#define TESTSETSTARTEDCASESVIEW_H

// INCLUDES
#include "View.h"
#include <eiklbo.h> // MEikListBoxObserver
#include <aknnavide.h> //CAknNavigationDecorator

// CONSTANTS

// FORWARD DECLARATIONS
class CTestSetStartedCasesContainer;

// CLASS DECLARATION

/**
*  CTestSetStartedCasesView view class.
* 
*/
class CTestSetStartedCasesView : public CView, public MEikListBoxObserver
    {
    public: // Constructors and destructor

        /**
        * Symbian OS default constructor.
        */
        void ConstructL();

        /**
        * Destructor.
        */
        ~CTestSetStartedCasesView();

    public: // Functions from base classes
        
        /**
        * Returns view´s id.
        * @return View id.
        */
        TUid Id() const;

        /**
        * Handles a command.
        * @param aCommand A command ID.
        */
        void HandleCommandL( TInt aCommand );

        /**
        * Handles client rect changes.
        */
        void HandleClientRectChange();

        /**
        * Handles a list box event.
        * @param aListBox A pointer to list box (not used).
        * @param aEventType Type of list box event.
        */
        void HandleListBoxEventL(CEikListBox* /*aListBox*/, TListBoxEvent aEventType);

    public: // New functions
        
        /**
        * Handles status changes of test cases in view.
        */
        void TestCaseStateChangedL();
        
        /**
        * Handles call to view test case´s output data.
        */
        void ViewTestCaseOutputL();

    private:

        /**
        * Initializes view when activated.
        * @param aPrevViewId Id of the previous view (not used).
        * @param aCustomMessageId Custom message id (not used).
        * @param aCustomMessage Custom message (not used).
        */
        void DoActivateL(const TVwsViewId& aPrevViewId,TUid aCustomMessageId,
            const TDesC8& aCustomMessage);

        /**
        * Deactivates view.
        */
        void DoDeactivate();

        /**
        * Initializes menu pane.
        * @param aResourceId Menu pane resource ID.
        * @param aMenuPane Menu pane pointer.
        */
        void DynInitMenuPaneL(TInt aResourceId,CEikMenuPane* aMenuPane);
        
        /**
        * Refreshes view name shown in the navi pane.
        */
        void RefreshNaviTitleL();

    private: // Data
        CAknNavigationDecorator*    iNaviDecorator;
        CTestSetStartedCasesContainer* iContainer;
        TName                       iFilterModule;
        TFileName                   iFilterTestCaseFile;
        TInt                        iSelectedTestCase;  // Which testcase was 
                                                        // selected when view 
                                                        // was active earlier.
    };

#endif //TestSetStartedCasesVIEW_H

// End of File