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

📄 ftpexampleconnectdlg.cpp

📁 Symbian智能手机操作系统源代码值的参考_网络ftp
💻 CPP
字号:
/*
* ============================================================================
*  Name     : CFtpExampleConnectDlg from FtpExampleConnectDlg.h
*  Part of  : FtpExample
*  Created  : 03/11/2005 by Forum Nokia
*  Version  : 1.0
*  Copyright: Nokia Corporation
* ============================================================================
*/

// INCLUDE FILES
#include "FtpExample.hrh"
#include "FtpExampleConnectDlg.h"

// ================= MEMBER FUNCTIONS =======================

// constructor
CFtpExampleConnectDlg::CFtpExampleConnectDlg(TDes& aServer, TDes& aUsername, TDes& aPassword)
	:	iServer(aServer),
		iUsername(aUsername),
		iPassword(aPassword)
	{
	}
	
// destructor
CFtpExampleConnectDlg::~CFtpExampleConnectDlg()
	{	
	}
		
// ---------------------------------------------------------
// CFtpExampleConnectDlg::PostLayoutDynInitL()
// Set form editable.
// ---------------------------------------------------------
//	
void CFtpExampleConnectDlg::PostLayoutDynInitL()
	{
	SetEditableL(ETrue);
	}

// ---------------------------------------------------------
// CFtpExampleConnectDlg::OkToExitL()
// Check that atleast FTP host name is entered.
// ---------------------------------------------------------
//			
TBool CFtpExampleConnectDlg::OkToExitL( TInt /*aKeycode*/ )
	{
	GetEdwinText(iServer, EHostNameEdwin);
	// Host name required.
	if (iServer.Length() == 0)
		{
		return EFalse;
		}
		
	GetEdwinText(iUsername, EUserNameEdwin);
	GetSecretEditorText(iPassword, EPasswordEdwin);
	return ETrue;
	}

// End of file

⌨️ 快捷键说明

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