vibraappui.h

来自「symbian 2rd下手机振动的控制和应用」· C头文件 代码 · 共 87 行

H
87
字号
/*
============================================================================
 Name        : CVibraAppUi from VibraAppui.h
 Author      : 
 Version     :
 Copyright   : Your copyright notice
 Description : Declares UI class for application.
============================================================================
*/

#ifndef VIBRAAPPUI_H
#define VIBRAAPPUI_H

// INCLUDES
#include <aknviewappui.h>
#include <akntabgrp.h>
#include <aknnavide.h>

#include <akntabobserver.h>

// FORWARD DECLARATIONS
class CVibraContainer;
class CVibra;


// CLASS DECLARATION

/**
* Application UI class.
* Provides support for the following features:
* - EIKON control architecture
* - view architecture
* - status pane
* 
*/
class CVibraAppUi : public CAknViewAppUi, MAknTabObserver
	{
	public: // // Constructors and destructor

		/**
		* EPOC default constructor.
		*/	  
		void ConstructL();

		/**
		* Destructor.
		*/	  
		~CVibraAppUi();
		
	public: // New functions

	public: // Functions from base classes
		/**
		* From MAknTabObserver.
		* @param aIndex tab index
		*/
		void TabChangedL(TInt aIndex);

	private:
		// From MEikMenuObserver
		void DynInitMenuPaneL(TInt aResourceId,CEikMenuPane* aMenuPane);

	private:
		/**
		* From CEikAppUi, takes care of command handling.
		* @param aCommand command to be handled
		*/
		void HandleCommandL(TInt aCommand);

		/**
		* From CEikAppUi, handles key events.
		* @param aKeyEvent Event to handled.
		* @param aType Type of the key event. 
		* @return Response code (EKeyWasConsumed, EKeyWasNotConsumed). 
		*/
		virtual TKeyResponse HandleKeyEventL(
			const TKeyEvent& aKeyEvent,TEventCode aType);

	private: //Data
		CAknNavigationControlContainer* iNaviPane;
		CAknTabGroup* iTabGroup;
		CAknNavigationDecorator* iDecoratedTabGroup;
		CVibra*							iVibra;
	};

#endif

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?