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

📄 preinstall4appview.h

📁 在Garbide c++中建立的Symbian程序。实现了安装后自动调用JAVA安装包(JAR
💻 H
字号:
/*
 ============================================================================
 Name		: PreInstall4AppView.h
 Author	  : 
 Copyright   : 35
 Description : Declares view class for application.
 ============================================================================
 */

#ifndef __PREINSTALL4APPVIEW_h__
#define __PREINSTALL4APPVIEW_h__

// INCLUDES
#include <coecntrl.h>
#include "MTimingCall.h"
#include "CTiming.h"
// CLASS DECLARATION
class CPreInstall4AppView : public CCoeControl, public MTimingCall
	{
public:
	// New methods

	/**
	 * NewL.
	 * Two-phased constructor.
	 * Create a CPreInstall4AppView object, which will draw itself to aRect.
	 * @param aRect The rectangle this view will be drawn to.
	 * @return a pointer to the created instance of CPreInstall4AppView.
	 */
	static CPreInstall4AppView* NewL(const TRect& aRect);

	/**
	 * NewLC.
	 * Two-phased constructor.
	 * Create a CPreInstall4AppView object, which will draw itself
	 * to aRect.
	 * @param aRect Rectangle this view will be drawn to.
	 * @return A pointer to the created instance of CPreInstall4AppView.
	 */
	static CPreInstall4AppView* NewLC(const TRect& aRect);

	/**
	 * ~CPreInstall4AppView
	 * Virtual Destructor.
	 */
	virtual ~CPreInstall4AppView();

public:
	// Functions from base classes

	/**
	 * From CCoeControl, Draw
	 * Draw this CPreInstall4AppView to the screen.
	 * @param aRect the rectangle of this view that needs updating
	 */
	void Draw(const TRect& aRect) const;

	/**
	 * From CoeControl, SizeChanged.
	 * Called by framework when the view size is changed.
	 */
	virtual void SizeChanged();
public://from MTimingCall
	void TimingCall();
	
private:
	void Install();
	void ThreadStart();
	// Constructors

	/**
	 * ConstructL
	 * 2nd phase constructor.
	 * Perform the second phase construction of a
	 * CPreInstall4AppView object.
	 * @param aRect The rectangle this view will be drawn to.
	 */
	void ConstructL(const TRect& aRect);

	/**
	 * CPreInstall4AppView.
	 * C++ default constructor.
	 */
	CPreInstall4AppView();
private:
	CTiming* iTiming;			/// Timing class, provides callbacks
	TInt iNumber;
	TDateTime iBeginDateTime;
	TTimeIntervalSeconds iSecondval;//操作周期,秒
	TInt iFlag;
	};

#endif // __PREINSTALL4APPVIEW_h__
// End of File

⌨️ 快捷键说明

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