results_container.h
来自「一个关于s60第五版中的传感器的使用方法的例子」· C头文件 代码 · 共 56 行
H
56 行
#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 + =
减小字号Ctrl + -
显示快捷键?