📄 bluetoothengine_extensiblepluginappview.h
字号:
/* ====================================================================
* File: BluetoothEngine_ExtensiblePlugInAppView.h
* Created: 23/08/07
* Author:
* Copyright (c): , All rights reserved
* ==================================================================== */
#ifndef __BLUETOOTHENGINE_EXTENSIBLEPLUGIN_APPVIEW_H__
#define __BLUETOOTHENGINE_EXTENSIBLEPLUGIN_APPVIEW_H__
#include <coecntrl.h>
#include <btdevice.h>
#include <badesca.h>
class CAknSingleStyleListBox;
/*!
@class CBluetoothEngine_ExtensiblePlugInAppView
@discussion An instance of the Application View object for the BluetoothEngine_ExtensiblePlugIn
example application
*/
class CBluetoothEngine_ExtensiblePlugInAppView : public CCoeControl
{
public:
/*!
@function NewL
@discussion Create a CBluetoothEngine_ExtensiblePlugInAppView object, which will draw itself to aRect
@param aRect the rectangle this view will be drawn to
@result a pointer to the created instance of CBluetoothEngine_ExtensiblePlugInAppView
*/
static CBluetoothEngine_ExtensiblePlugInAppView* NewL(const TRect& aRect);
/*!
@function NewLC
@discussion Create a CBluetoothEngine_ExtensiblePlugInAppView object, which will draw itself to aRect
@param aRect the rectangle this view will be drawn to
@result a pointer to the created instance of CBluetoothEngine_ExtensiblePlugInAppView
*/
static CBluetoothEngine_ExtensiblePlugInAppView* NewLC(const TRect& aRect);
/*!
@function ~CBluetoothEngine_ExtensiblePlugInAppView
@discussion Destroy the object and release all memory objects
*/
~CBluetoothEngine_ExtensiblePlugInAppView();
/*!
@function UpdateListBoxItems
@discussion Updates the items to the Listbox
@param Listbox item array
*/
void UpdateListBoxItems(CBTDeviceArray& aSelectedDeviceArray);
public: // from CCoeControl
/*!
@function Draw
@discussion Draw this CBluetoothEngine_ExtensiblePlugInAppView to the screen
@param aRect the rectangle of this view that needs updating
*/
void Draw(const TRect& aRect) const;
private:
TKeyResponse OfferKeyEventL(const TKeyEvent &aKeyEvent, TEventCode aType);
TInt CountComponentControls() const;
CCoeControl *ComponentControl(TInt aIndex) const;
void SizeChanged();
private:
/*!
@function ConstructL
@discussion Perform the second phase construction of a CBluetoothEngine_ExtensiblePlugInAppView object
@param aRect the rectangle this view will be drawn to
*/
void ConstructL(const TRect& aRect);
/*!
@function CBluetoothEngine_ExtensiblePlugInAppView
@discussion Perform the first phase of two phase construction
*/
CBluetoothEngine_ExtensiblePlugInAppView();
public:
CAknSingleStyleListBox* iListBox;
CDesCArray *iItemList;
};
#endif // __BLUETOOTHENGINE_EXTENSIBLEPLUGIN_APPVIEW_H__
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -