📄 socketsappui.h
字号:
/* Copyright (c) 2001, Nokia. All rights reserved */
#ifndef __SOCKETSAPPUI_H__
#define __SOCKETSAPPUI_H__
#include <aknappui.h>
class CSocketsAppView;
class CSocketsEngine;
//包头
typedef struct _CMD_HEAD
{
unsigned int multi_total_size; //在多包的的情况下,表示总发送数据长度
unsigned short kind; //命令类型
unsigned short kind_content; //命令内容
unsigned short data_size_extra; //包后的附加数据的大小
unsigned short packnum; //附加包的个数
unsigned short packid; //在分多个包的情况下,必需要包的序号
unsigned short multipacknum; //在分多包的情况下,表示被分包的个数
unsigned short multi_data_size; //在分多包的情况下,表示被分包的大小
}CMD_HEAD;
#define HEAD_SIZE sizeof(CMD_HEAD)
/*!
@class CSocketsAppUi
@discussion An instance of class CSocketsAppUi is the UserInterface part of the AVKON
application framework for the Sockets example application
*/
class CSocketsAppUi : public CAknAppUi
{
public:
/*!
@function ConstructL
@discussion Perform the second phase construction of a CSocketsAppUi object
this needs to be public due to the way the framework constructs the AppUi
*/
void ConstructL();
/*!
@function CSocketsAppUi
@discussion Perform the first phase of two phase construction.
This needs to be public due to the way the framework constructs the AppUi
*/
CSocketsAppUi();
/*!
@function ~CSocketsAppUi
@discussion Destroy the object and release all memory objects
*/
~CSocketsAppUi();
public: // from MEikMenuPaneObserver
/*!
@function DynInitMenuPaneL
@discussion Initialise a menu pane before it is displayed
@param aMenuId id of menu
@param aMenuPane handle for menu pane
*/
void DynInitMenuPaneL(TInt aMenuId, CEikMenuPane* aMenuPane);
private: // from CEikAppUi
/*!
@function HandleCommandL
@discussion Handle user menu selections
@param aCommand the enumerated code for the option selected
*/
void HandleCommandL(TInt aCommand);
/*!
@function HandleKeyEventL
@discussion Handle user key input
@param aKeyEvent event information
@param aType event type
@result EKeyWasConsumed
*/
TKeyResponse HandleKeyEventL(const TKeyEvent& aKeyEvent,TEventCode aType);
private: // Member data
/*! @var The application view */
CSocketsAppView* iAppView;
/*! @var An RSocket wrapper to do the work for this example */
CSocketsEngine* iSocketsEngine;
};
#endif // __SOCKETSAPPUI_H__
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -