www.pudn.com > UIQ_Code1.rar > CommandsHandlerPage4.h


// CommandsHandlerPage4.h 
// 
// © Symbian Software Ltd 2005. All rights reserved. 
// 
 
#ifndef COMMANDSHANDLERPAGE4_H 
#define COMMANDSHANDLERPAGE4_H 
 
#include  
#include  
 
/** 
This class takes care of all page 4 specific commands for CCommandsView.  
This to separate the different page specific commands from each other. 
 
Page 4 shows how commands can be sorted alphabetically or by priority. 
 
When page 4 is opened for the first time, the commands in the cascading menu  
Sort order are sorted alphabetically. In Set sort order you can decide  
whatever the commands in Sort order are sorted alphabetically or by priority. 
 
When the option button Alphabetically is marked the commands in Sort order  
are sorted alphabetically and when the option  button Priority is marked they  
are sorted by priority. When the commands are sorted by priority the command  
with the lowest priority is sorted first, which  means that B - Priority 1 is  
placed at the top of the list. 
*/ 
class CCommandsView; 
class CCommandsHandlerPage4 : public CBase, public MQikCommandHandler 
	{ 
public: 
	static CCommandsHandlerPage4* NewL(CCommandsView& aCommandsView, CQikCommandManager& aCommandManager); 
	~CCommandsHandlerPage4(); 
 
	// from MQikCommandHandler 
	void HandleCommandL(CQikCommand& aCommand);  
 
private: 
	CCommandsHandlerPage4(CCommandsView& aCommandsView, CQikCommandManager& aCommandManager); 
	void ConstructL(); 
	 
private: 
	/** Reference to the command manager that are used to change commands with. */ 
	CQikCommandManager& iCommandManager; 
 
	/** Reference to the command view. */ 
	CCommandsView& iCommandsView; 
	}; 
 
#endif // COMMANDSHANDLERPAGE4_H