testapps/rschandler/Common/inc/ResourceHandler_Dialogs.h
branchRCL_3
changeset 20 493058e57c8c
parent 0 9736f095102e
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/testapps/rschandler/Common/inc/ResourceHandler_Dialogs.h	Wed Sep 01 12:30:50 2010 +0100
@@ -0,0 +1,118 @@
+// Copyright (c) 2004-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:
+//
+
+#ifndef RESOURCEHANDLER_DIALOGS_H
+#define RESOURCEHANDLER_DIALOGS_H
+
+#include <techview/eikdialg.h>
+
+class CDialogBase : public CEikDialog
+	{
+public:
+	// constructor
+	CDialogBase();
+public:
+	void DisplayError(TDesC& aMessage, TInt aErrorNumber);
+	void DisplayError(TDesC& aMessage);
+	};
+
+class CThreadNumberDialog : public CDialogBase
+	{
+public:
+	// constructor
+	CThreadNumberDialog();
+private:
+	void PreLayoutDynInitL();
+	void PostLayoutDynInitL();
+	TBool OkToExitL(TInt aKeycode);
+	void SetThread();
+	void UpdateDialogData(void);
+	void UpdateDialogDataReal(void);
+	void UpdateDialogDataAll(void);
+	void UpdatePriorityText(void); //updates the priority number value to correspond to the priority option selected
+	void HandleControlStateChangeL(TInt aControlId);
+
+private:
+	TThreadId iThreadID;
+	};
+
+class CProcessNumberDialog : public CDialogBase
+	{
+public:
+	// constructor
+	CProcessNumberDialog();
+private:
+	void PreLayoutDynInitL();
+	void PostLayoutDynInitL();
+	TBool OkToExitL(TInt aKeycode);
+	void UpdateDialogData(void);
+	void UpdatePriorityText(void);
+	void UpdateProcessId(void);
+	void SetProcess();
+	void HandleControlStateChangeL(TInt aControlId);
+
+private:
+	TProcessId iProcessID;
+	};
+
+class CDebugDialog : public CDialogBase
+	{
+public:
+	// constructor
+	CDebugDialog();
+private:
+	void PreLayoutDynInitL();
+	void GetKernelOptions();
+	void GetPortNumber();
+	TBool OkToExitL(TInt aKeycode);
+	void SetDebugOptions();
+private:
+	TInt iCurrentDebugPort;
+	};
+
+class CRamDialog : public CDialogBase
+	{
+public:
+	// constructor
+	CRamDialog();
+
+private:
+	void PreLayoutDynInitL();
+	TBool OkToExitL(TInt aKeycode);
+	void FillRam();
+	void UndoFillRam();
+	void UpdateDialogData();
+	
+private:
+	RChunk chunks[10000];
+	TUint noChunks;
+	};
+
+class CDriveDialog : public CDialogBase
+	{
+public:
+	// constructor
+	CDriveDialog();
+	~CDriveDialog();
+	void UpdateDialogLeaveSpace();
+private:
+	void PreLayoutDynInitL();
+	TBool OkToExitL(TInt aKeycode);
+private:
+	CDesCArrayFlat* iDriveName;
+	CArrayFixFlat<TInt>* iDriveLetter;
+	};
+
+#endif