logsui/AppSrc/CGprsCtView.h
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Fri, 19 Feb 2010 22:40:27 +0200
branchRCL_3
changeset 3 04ab22b956c2
parent 0 e686773b3f54
permissions -rw-r--r--
Revision: 201003 Kit: 201007

/*
* Copyright (c) 2002 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: 
*     GPRS counters view
*
*/


#ifndef     __Logs_App_CGprsCtView_H__
#define     __Logs_App_CGprsCtView_H__


//  INCLUDES
#include "CLogsBaseView.h"  

//  FORWARD DECLARATIONS
class CGprsCtControlContainer;
class CAknView;
class MLogsAocUtil;


//  CLASS DECLARATIONS

/**
 *  GPRS counters view
 */
class   CGprsCtView :   public CLogsBaseView                    
    {
    public:  // interface
        /**
         *  Creates the new view
         *
         *  @return The new view object
         */
        static CGprsCtView* NewL();

        /**
         *  Destructor
         */
        ~CGprsCtView();

    private:
        /**
         *  2nd phase of construction
         */
        void ConstructL();

        /**
         *  Constructs and makes visible the Ok Option list
         */
        void OkOptionCtMenuL();


    public: // MLogsObserver
        void StateChangedL( MLogsStateHolder* aHolder );

    public: // from MLogsKeyProcessor 

 		/**
         * Overrides the baseclass handler
         * 
         * @param aIndex	The index of the item tapped
         */
        void ProcessPointerEventL( TInt aIndex);   

    public: // from MEikCommandObserver        
        void HandleCommandL( TInt aCommand );

        
    private:  // from CAknView
        /**
         *  Return the view's Id.
         *
         *  @return ECtViewId
         */
        TUid Id() const;

        /**
         *  Called by the framework when the view rectangle changes
         */
        void HandleClientRectChange();

        /**
         *  Called by the framework when the view is activated.
         *
         *  @param aPrevViewId  Previous view's id
         *  @param aCustonMessageId Custom Message id
         *  @param aCustomMessage   Custom message
         */
        void DoActivateL( const TVwsViewId& aPrevViewId,
                          TUid aCustomMessageId,
                          const TDesC8& aCustomMessage );
        /**
         *  Called by the framework when the view is deactivated.
         */
        void DoDeactivate();

    

    private:  // data
        /// Own: view's control container
        CGprsCtControlContainer* iContainer;

        /// Own: for security query
        MLogsAocUtil* iAocUtil;
    };

#endif  // __Logs_App_CGprsCtView_H__

// End of File