sysresmonitoring/oommonitor/tsrc/oomtest/t_oomtestapp/inc/t_oomtestappappui.h
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Tue, 25 May 2010 12:52:36 +0300
branchRCL_3
changeset 9 332e7bf3b42f
parent 1 0fdb7f6b0309
child 19 924385140d98
permissions -rw-r--r--
Revision: 201019 Kit: 2010121

/*
* Copyright (c) 2006 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:  
*
*/

/*
 ============================================================================
 Name		: t_oomtestappAppUi.h
 Author	  : 
 Copyright   : Your copyright notice
 Description : Declares UI class for application.
 ============================================================================
 */

#ifndef __T_OOMTESTAPPAPPUI_h__
#define __T_OOMTESTAPPAPPUI_h__

// INCLUDES
#include <aknappui.h>
#include <oommonitorsession.h>

// FORWARD DECLARATIONS
class Ct_oomtestappAppView;

const TInt KKiloByte = 1024;

// CLASS DECLARATION
/**
 * Ct_oomtestappAppUi application UI class.
 * Interacts with the user through the UI and request message processing
 * from the handler class
 */
class Ct_oomtestappAppUi : public CAknAppUi
	{
public:
		
	// Constructors and destructor

	/**
	 * ConstructL.
	 * 2nd phase constructor.
	 */
	void ConstructL();

	/**
	 * Ct_oomtestappAppUi.
	 * C++ default constructor. This needs to be public due to
	 * the way the framework constructs the AppUi
	 */
	Ct_oomtestappAppUi();

	/**
	 * ~Ct_oomtestappAppUi.
	 * Virtual Destructor.
	 */
	virtual ~Ct_oomtestappAppUi();

	TInt AllocatedHeap() const;

	TPtrC Priority() const;

private:
	// Functions from base classes

	/**
	 * From CEikAppUi, HandleCommandL.
	 * Takes care of command handling.
	 * @param aCommand Command to be handled.
	 */
	void HandleCommandL(TInt aCommand);

	/**
	 *  HandleStatusPaneSizeChange.
	 *  Called by the framework when the application status pane
	 *  size is changed.
	 */
	void HandleStatusPaneSizeChange();

private:
	// Data

	/**
	 * The application view
	 * Owned by Ct_oomtestappAppUi
	 */
	Ct_oomtestappAppView* iAppView;

    ROomMonitorSession iOomSession;
    
    TAny* iMem;

    ROomMonitorSession::TOomPriority iPriority;

	};

#endif // __T_OOMTESTAPPAPPUI_h__
// End of File