sysresmonitoring/oommonitor/tsrc/oomtest/t_oomtestapp/inc/t_oomtestappappui.h
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Tue, 31 Aug 2010 15:24:25 +0300
branchRCL_3
changeset 19 924385140d98
parent 9 332e7bf3b42f
child 20 c2c61fdca848
permissions -rw-r--r--
Revision: 201033 Kit: 201035

/*
 ============================================================================
 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