⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 results_container.h

📁 一个关于s60第五版中的传感器的使用方法的例子
💻 H
字号:


#ifndef __RESULTS_CONTAINER_H__
#define __RESULTS_CONTAINER_H__

#include <COECNTRL.H>		
#include <AknLists.h>
#include <sensrvchannelfinder.h>
#include <sensrvchannel.h>
#include <sensrvmagnetometersensor.h>
#include <sensrvgeneralproperties.h>
#include <sensrvmagnetometersensor.h>
#include <sensrvaccelerometersensor.h>
#include <sensrvorientationsensor.h>
#include <sensrvdatalistener.h> 
#include <sensrvtappingsensor.h> 
#include <sensrvtypes.h> 

/*! 
  @class CResultsContainer
  
  @discussion An instance of the Application View object for the HelloWorld 
  example application
  */
class CResultsContainer : public CCoeControl
    {
public:
    static CResultsContainer* NewL(const TRect& aRect,RSensrvChannelInfoList& aChannelInfoList);
    static CResultsContainer* NewLC(const TRect& aRect,RSensrvChannelInfoList& aChannelInfoList);
    ~CResultsContainer();
public:
	TBool SelectSensorL(TInt& aIndex);
public:  
	
	TKeyResponse OfferKeyEventL(const TKeyEvent& aKeyEvent,TEventCode aType);
	TInt CountComponentControls() const;
	CCoeControl* ComponentControl(TInt aIndex) const;
private:
	void UpdateScrollBar(CEikListBox* aListBox);
	CDesCArray* GetArrayL(void);
	void MakeListBoxL();
	
	void Draw(const TRect& aRect) const;
	virtual void SizeChanged();
	virtual void HandleResourceChange(TInt aType);
	void ConstructL(const TRect& aRect);
    CResultsContainer(RSensrvChannelInfoList& aChannelInfoList);
	
private:
	CAknDoubleStyleListBox* 	iMyListBox;
	RSensrvChannelInfoList& 	iChannelInfoList;
    };


#endif // __RESULTS_CONTAINER_H__

⌨️ 快捷键说明

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