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


// CommandsView.h 
// 
// © Symbian Software Ltd 2005. All rights reserved. 
// 
 
#ifndef COMMANDSVIEW_H 
#define COMMANDSVIEW_H 
 
#include  
 
/** 
A view that contains four pages to show the usage of commands. 
 
All command handling in this view is passed over to the CCommandsViewModel. 
Show how the command handling can be seperated from the view specific  
parts.  
 
What the different pages are showing is described in CCommandsViewModel. 
*/ 
class CCommandsViewModel; 
class CCommandsView : public CQikMultiPageViewBase 
	{ 
public: 
	static CCommandsView* NewLC(CQikAppUi& aAppUi); 
	~CCommandsView(); 
	 
	// from CQikViewBase 
	TVwsViewId ViewId() const; 
	void HandleCommandL(CQikCommand& aCommand); 
	 
	void InfoprintCmdL(const CQikCommand& aCommandaCommand) const; 
 
protected: // from CQikViewBase 
	void ViewActivatedL(const TVwsViewId& aPrevViewId, const TUid aCustomMessageId, const TDesC8& aCustomMessage); 
	CQikCommand* DynInitOrDeleteCommandL(CQikCommand* aCommand, const CCoeControl& aControlAddingCommands); 
	MQikCommandHandler* MapCommandHandler(CQikCommand& aCommand); 
	void ViewConstructL();  
	 
private: 
	CCommandsView(CQikAppUi& aAppUi); 
	void ConstructL(); 
	 
private: 
	/** All command handling for this view is done by iCommandsViewModel */ 
	CCommandsViewModel* iCommandsViewModel; 
	 
	/** Holds the infoprint text that are shown before the command text. */ 
	HBufC* iInfoprintCmd; 
	}; 
 
#endif // COMMANDSVIEW_H