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

📄 nettestappui.h

📁 一个symbian http上传下载例子
💻 H
字号:
/*
============================================================================
 Name        : NetTestAppUi.h
 Author      : 
 Version     :
 Copyright   : Your copyright notice
 Description : Main application UI class (controller)
============================================================================
*/

#ifndef __NETTESTAPPUI_H__
#define __NETTESTAPPUI_H__

// INCLUDES
#include <aknappui.h>


// FORWARD DECLARATIONS
class CNetTestAppView;


// CLASS DECLARATION
/**
* CNetTestAppUi application UI class.
* Interacts with the user through the UI and request message processing
* from the handler class
*/
#include <aknappui.h>
#include "m5httpdownnotifier.h"

class CNetTestContainer ;
class CM5HttpDown ; 

#define PRINT_BUF_LEN  1024*4
#define MAX_RECV_BUF   1024*2

class CNetTestAppUi : public CAknAppUi, public M5HttpDownNotifier
{
public: // Constructors and destructor
	void ConstructL();
	CNetTestAppUi();
	virtual ~CNetTestAppUi();

private:  // Functions from base classes
	void HandleCommandL( TInt aCommand );
	void HandleStatusPaneSizeChange();		

public: // M5HttpDownNotifier
	void M5PrintNotify(const TDesC & aMessage) ; 
	void M5RecvNotify(const TDesC8 & recv_buf) ; 
	void M5TimerExpireNotify() ;
	void M5ErrorNotify(const TDesC& aErrMessage, TInt aErrCode = 0) ; 

private: // Data
	CNetTestContainer*  iAppContainer; 
	CM5HttpDown*	    iHttpDown ; 
	TBuf<PRINT_BUF_LEN> iPrintBuf ; 
	TBuf<MAX_RECV_BUF>	iRecvBuf ; 	
	TBool				iFirstIn ; 
	RFs				    iFs ; 
	RFile				iFile ; 
	TInt				iRecvSize ; 

	TBuf <100> iFileName;
};

#endif // __NETTESTAPPUI_H__

// End of File

⌨️ 快捷键说明

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