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

📄 vncviewerappview.h

📁 vncviewer_source_1.0
💻 H
字号:
/* Copyright (C) 2006 Lucas Gomez  All Rights Reserved.
 * 
 * This is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or
 * (at your option) any later version.
 * 
 * This software is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 * 
 * You should have received a copy of the GNU General Public License
 * along with this software; if not, write to the Free Software
 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307,
 * USA.
 */

#ifndef __VNCVIEWERAPPVIEW_H__
#define __VNCVIEWERAPPVIEW_H__

// INCLUDES
#include <aknview.h>

#include "VncViewer.hrh"
#include "ConnDetailsContainer.h"

// CLASS FORWARDING
class CVncViewerAppUi;

// CLASS DECLARATION
class CVncViewerAppView : public CAknView
{
public: // New methods

	/**
	 * NewL.
	 * Two-phased constructor.
	 * Create a CVncViewerAppView object, which will draw itself to aRect.
	 *
	 * @param MVncViewerAppUiCallback* aCallback Pointer to the UI Callback
	 * @return a pointer to the created instance of CVncViewerAppView.
	 */
	static CVncViewerAppView* NewL(CVncViewerAppUi* aCallback);

	/**
	 * NewLC.
	 * Two-phased constructor.
	 * Create a CVncViewerAppView object, which will draw itself
	 * to aRect.
	 *
	 * @param MVncViewerAppUiCallback* aCallback Pointer to the UI Callback
	 * @return A pointer to the created instance of CVncViewerAppView.
	 */
	static CVncViewerAppView* NewLC(CVncViewerAppUi* aCallback);

private:
	/**
	 * ~CVncViewerAppView
	 * Virtual Destructor.
	 */
	virtual ~CVncViewerAppView();

	/**
	 * ConstructL
	 * 2nd phase constructor.
	 * Perform the second phase construction of a
	 * CVncViewerAppView object.
	 * 
	 */
	void ConstructL();

	/**
	 * CVncViewerAppView.
	 * C++ default constructor.
	 * @param MVncViewerAppUiCallback* aCallback Pointer to the UI Callback
	 */
	CVncViewerAppView(CVncViewerAppUi* aCallback);
	
	// DoActivateL is called each time when a view is activated
	// For example, this occurs when the user starts a new application
	// or the active view in the foreground is changed by the system itself
	void DoActivateL(const TVwsViewId& /* aPrevViewId */,
					 TUid /* aCustomMessageId */, const TDesC8& /* aCustomMessage */);
					 
	// DoDeactivate is called whenever a view is deactivated
	void DoDeactivate();
	
public:
	/*
	 * Id()
	 * Returns views id
	 *
	 * @return id for this view
	 */
	inline TUid Id() const {return TUid::Uid(EConnDetailsView);}
	
	inline TInetAddr GetAddress() {return iContainer->GetSettingList()->GetInetAddr();}
	
	inline TInt GetPort() {return iContainer->GetSettingList()->GetPort();}
	
private:
	/*
	 * HandleForegroundEvent()
	 * Foreground event handling function
	 *
	 * @parameter aForeground  Indicates the required focus state of the control.
	 */
	void HandleForegroundEventL(TBool aForeground);
 
 	/*
	 * HandleCommandL()
	 * Command handling function
	 *
	 * @parameter aCommand  ID of the command to respond to. 
	 */
	void HandleCommandL(TInt aCommand); 
 
 	/*
	 * HandleStatusPaneSizeChange()
	 * Event handler for status pane size changes.
	 *
	 */
	void HandleStatusPaneSizeChange();

private:	// Member variables
	CVncViewerAppUi* iCallback;
	CConnDetailsContainer* iContainer;
};

#endif // __VncViewerAPPVIEW_H__

// End of File

⌨️ 快捷键说明

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