testapps/rschandler/Common/inc/ResourceHandler_Dialogs.h
changeset 15 5b5908ec640f
parent 13 3a35f7917fa6
child 17 03d9ade4748d
equal deleted inserted replaced
13:3a35f7917fa6 15:5b5908ec640f
     1 // Copyright (c) 2004-2009 Nokia Corporation and/or its subsidiary(-ies).
       
     2 // All rights reserved.
       
     3 // This component and the accompanying materials are made available
       
     4 // under the terms of "Eclipse Public License v1.0"
       
     5 // which accompanies this distribution, and is available
       
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     7 //
       
     8 // Initial Contributors:
       
     9 // Nokia Corporation - initial contribution.
       
    10 //
       
    11 // Contributors:
       
    12 //
       
    13 // Description:
       
    14 //
       
    15 
       
    16 #ifndef RESOURCEHANDLER_DIALOGS_H
       
    17 #define RESOURCEHANDLER_DIALOGS_H
       
    18 
       
    19 #include <techview/eikdialg.h>
       
    20 
       
    21 class CDialogBase : public CEikDialog
       
    22 	{
       
    23 public:
       
    24 	// constructor
       
    25 	CDialogBase();
       
    26 public:
       
    27 	void DisplayError(TDesC& aMessage, TInt aErrorNumber);
       
    28 	void DisplayError(TDesC& aMessage);
       
    29 	};
       
    30 
       
    31 class CThreadNumberDialog : public CDialogBase
       
    32 	{
       
    33 public:
       
    34 	// constructor
       
    35 	CThreadNumberDialog();
       
    36 private:
       
    37 	void PreLayoutDynInitL();
       
    38 	void PostLayoutDynInitL();
       
    39 	TBool OkToExitL(TInt aKeycode);
       
    40 	void SetThread();
       
    41 	void UpdateDialogData(void);
       
    42 	void UpdateDialogDataReal(void);
       
    43 	void UpdateDialogDataAll(void);
       
    44 	void UpdatePriorityText(void); //updates the priority number value to correspond to the priority option selected
       
    45 	void HandleControlStateChangeL(TInt aControlId);
       
    46 
       
    47 private:
       
    48 	TThreadId iThreadID;
       
    49 	};
       
    50 
       
    51 class CProcessNumberDialog : public CDialogBase
       
    52 	{
       
    53 public:
       
    54 	// constructor
       
    55 	CProcessNumberDialog();
       
    56 private:
       
    57 	void PreLayoutDynInitL();
       
    58 	void PostLayoutDynInitL();
       
    59 	TBool OkToExitL(TInt aKeycode);
       
    60 	void UpdateDialogData(void);
       
    61 	void UpdatePriorityText(void);
       
    62 	void UpdateProcessId(void);
       
    63 	void SetProcess();
       
    64 	void HandleControlStateChangeL(TInt aControlId);
       
    65 
       
    66 private:
       
    67 	TProcessId iProcessID;
       
    68 	};
       
    69 
       
    70 class CDebugDialog : public CDialogBase
       
    71 	{
       
    72 public:
       
    73 	// constructor
       
    74 	CDebugDialog();
       
    75 private:
       
    76 	void PreLayoutDynInitL();
       
    77 	void GetKernelOptions();
       
    78 	void GetPortNumber();
       
    79 	TBool OkToExitL(TInt aKeycode);
       
    80 	void SetDebugOptions();
       
    81 private:
       
    82 	TInt iCurrentDebugPort;
       
    83 	};
       
    84 
       
    85 class CRamDialog : public CDialogBase
       
    86 	{
       
    87 public:
       
    88 	// constructor
       
    89 	CRamDialog();
       
    90 
       
    91 private:
       
    92 	void PreLayoutDynInitL();
       
    93 	TBool OkToExitL(TInt aKeycode);
       
    94 	void FillRam();
       
    95 	void UndoFillRam();
       
    96 	void UpdateDialogData();
       
    97 	
       
    98 private:
       
    99 	RChunk chunks[10000];
       
   100 	TUint noChunks;
       
   101 	};
       
   102 
       
   103 class CDriveDialog : public CDialogBase
       
   104 	{
       
   105 public:
       
   106 	// constructor
       
   107 	CDriveDialog();
       
   108 	~CDriveDialog();
       
   109 	void UpdateDialogLeaveSpace();
       
   110 private:
       
   111 	void PreLayoutDynInitL();
       
   112 	TBool OkToExitL(TInt aKeycode);
       
   113 private:
       
   114 	CDesCArrayFlat* iDriveName;
       
   115 	CArrayFixFlat<TInt>* iDriveLetter;
       
   116 	};
       
   117 
       
   118 #endif