📄 viewportview.h
字号:
/*
* ==============================================================================
* Name : ViewportView.h
* Part of : VncViewer
* Interface :
* Description :
* Version :
*
* ==============================================================================
*/
#ifndef __VIEWPORTVIEW_H__
#define __VIEWPORTVIEW_H__
// INCLUDES
#include <aknview.h>
#include "VncViewer.hrh"
#include "DesktopWindowContainer.h"
// CLASS DECLARATION
class CViewportView : public CAknView
{
public: // New methods
/**
* NewL.
* Two-phased constructor.
* Create a CViewportView object, which will draw itself to aRect.
*
* @return a pointer to the created instance of CViewportView.
*/
static CViewportView* NewL(CConn* aConn);
/**
* NewLC.
* Two-phased constructor.
* Create a CViewportView object, which will draw itself
* to aRect.
*
* @return A pointer to the created instance of CViewportView.
*/
static CViewportView* NewLC(CConn* aConn);
/**
* ~CViewportView
* Virtual Destructor.
*/
virtual ~CViewportView();
private: // Constructors
/**
* ConstructL
* 2nd phase constructor.
* Perform the second phase construction of a
* CViewportView object.
*
*/
void ConstructL();
/**
* CViewportView.
* C++ default constructor.
*/
CViewportView(CConn* aConn);
// 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(EViewportView);}
inline CDesktopWindowContainer* GetDesktopWindow() {return iContainer;}
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
CDesktopWindowContainer* iContainer;
CConn* iConn;
};
#endif // __VIEWPORTVIEW_H__
// End of File
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -