📄 sysinfo60container2.h
字号:
/*
* ============================================================================
* Name : CSYSINFO60Container2 from SYSINFO60Container2.h
* Part of : SYSINFO60
* Created : 10.05.2003 by Petri-Veikko Alaj鋜vi OH1GIU
* Description:
* Declares container control for application.
* Version :
* Copyright: (c) 2003, Petri-Veikko Alaj鋜vi OH1GIU
* ============================================================================
*/
#ifndef SYSINFO60CONTAINER2_H
#define SYSINFO60CONTAINER2_H
// INCLUDES
#include <coecntrl.h>
#include "SYSINFO60Inc.h"
// CONSTANTS
_LIT(KTxtIRCOMM,"IRCOMM");
_LIT(KTxt0,"IrCOMM::0");
_LIT(KTinyTP, "IrTinyTP");
_LIT(KNoDevice, "No IrLAP device found");
_LIT8(KCrLf8, "\r\n");
/*
IAS Class Name IAS Attribute Name Description of response
Device DeviceName Remote machine抯 device nickname
Device IrLMPSupport Level of IrMUX and IAS supported by remote station
IrDA:IrCOMM Parameters Collection of one or more parameters indicating the level of IrCOMM support
IrDA:IrCOMM IrDA:IrLMP:LsapSel Range of remote IrMUX port numbers for IrCOMM service
IrDA:IrCOMM IrDA:TinyTP:LsapSel Range of remote IrMUX port numbers for TinyTP service
IrDA:IrCOMM IrDA:InstanceName Used to distinguish between otherwise identical IAS objects on remote station
IrDA:IrOBEX IrDA:TinyTP:LsapSel Range of IrMUX port numbers for IrOBEX service
IrLPT IrDA:IrLMP:LsapSel Range of remote IrMUX port numbers for remote station IrLPT
*/
_LIT8(KTxtIrDAIrCOMM, "IrDA:IrCOMM");
_LIT8(KTxtIrDATinyTP, "IrDA:TinyTP:LsapSel");
_LIT8(KTxtIrDAIrLMP, "IrDA:IrLMP:LsapSel");
_LIT8(KTxtParameters, "Parameters");
_LIT8(KTxtInstance, "IrDA:InstanceName");
_LIT8(KTxtDevice, "Device");
_LIT8(KTxtDeviceName, "DeviceName");
_LIT8(KTxtIrLMP, "IrLMPSupport");
_LIT8(KTxtIrDAIrObex, "IrDA:IrOBEX");
_LIT8(KTxtIrLPT, "IrLPT");
const TInt KTimeOut = 7000000;
// FORWARD DECLARATIONS
class CEikLabel;
// CLASS DECLARATION
/**
* CSYSINFO60Container2 container control class.
*
*/
class CSYSINFO60Container2 : public CCoeControl, MCoeControlObserver
{
public: // Constructors and destructor
/**
* EPOC default constructor.
* @param aRect Frame rectangle for container.
*/
void ConstructL(const TRect& aRect);
/**
* Destructor.
*/
~CSYSINFO60Container2();
public: // New functions
void IrDiscL(const TInt aMode);
void IrPrintL(void);
public: // Functions from base classes
private: // Functions from base classes
/**
* From CoeControl,SizeChanged.
*/
void SizeChanged();
/**
* From CoeControl,CountComponentControls.
*/
TInt CountComponentControls() const;
/**
* From CCoeControl,ComponentControl.
*/
CCoeControl* ComponentControl(TInt aIndex) const;
/**
* From CCoeControl,Draw.
*/
void Draw(const TRect& aRect) const;
/**
* From ?base_class ?member_description
*/
// event handling section
// e.g Listbox events
void HandleControlEventL(CCoeControl* aControl,TCoeEvent aEventType);
private: // New functions
void ClearScreen(void);
//void SetPrintData(void);
void IrDoPrint(RComm &aRComm, const TDesC& aText);
TInt IASQuery(RNetDatabase &aIAS, const TDesC8 &aClassName,
const TDesC8 &aAttributeName, TUint aRemDevAddr);
private: //data
TBuf<64> iIASres;
CEikLabel* iEikLabelAddr;
CEikLabel* iEikLabelSniff;
CEikLabel* iEikLabelVer;
CEikLabel* iEikLabelNoOfBytes;
CEikLabel* iEikLabelServByte1;
CEikLabel* iEikLabelServByte2;
CEikLabel* iEikLabelCharSet;
CEikLabel* iEikLabelName;
CEikLabel* iEikLabelFlags;
TTimeIntervalMicroSeconds32 iTimeOut;
public: // data
enum TIrIds
{
EIr,
EIrMux,
EIrServ,
EIrIas
};
};
#endif
// End of File
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -