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

📄 localview.h

📁 symbian 的文件保密软件,可以把文件设置为私有或者还原为公共,私有时,别人没有权限是看不到的,还可以参照您的需求或建议为您定制软件.
💻 H
字号:
/*
* ============================================================================
*  Name     : CLocalView from LocalView.h
*  Part of  : Netfrog
*  Created  : 14.11.2006 by Patrick Chen
*  Description:
*     Declares view for application.
*  Version  :
*  Copyright: Qianxun Investment Holding Ltd
* ============================================================================
*/

#ifndef LOCALVIEW_H
#define LOCALVIEW_H

// INCLUDES
#include <aknview.h>
#include "localrsgfile.h"


// CONSTANTS
// UID of view
const TUid KLocalViewId = {ELocalViewId};

// FORWARD DECLARATIONS
class CLocalContainer;
class CGALaunchSysAppEngine;
class MEikMenuObserver;
// CLASS DECLARATION

/**
*  CLocalView view class.
* 
*/
class CLocalView : public CAknView
    {
    public: // Constructors and destructor

        /**
        * EPOC default constructor.
        */
        void ConstructL();

        /**
        * Destructor.
        */
        ~CLocalView();

    public: // Functions from base classes
        
        /**
        * From CAknView returns Uid of View
        * @return TUid uid of the view
        */
        TUid Id() const;

        /**
        * From MEikMenuObserver delegate commands from the menu
        * @param aCommand a command emitted by the menu 
        * @return void
        */
        void HandleCommandL(TInt aCommand);

        /**
        * From CAknView reaction if size change
        * @return void
        */
        void HandleClientRectChange();
	public:
		//返回选中LISTBOX文件列表中的文件绝对存储路径
		TBool GetPath(TDes& aPath);	
	private:
		//读取密码
		void ReadPasswordL();
		//写入密码
		void WritePasswordL(const TDesC8& aPwd);

		TBool Login();
    private:

        /**
        * From CAknView activate the view
        * @param aPrevViewId 
        * @param aCustomMessageId 
        * @param aCustomMessage 
        * @return void
        */
        void DoActivateL(const TVwsViewId& aPrevViewId,TUid aCustomMessageId,
            const TDesC8& aCustomMessage);

        /**
        * From CAknView deactivate the view (free resources)
        * @return void
        */
        void DoDeactivate();
 private:
        /**
	     * From MEikMenuObserver, dynamically initialises a menu pane. 
	     * @param aResourceId, menu pane id
         * @param aMenuPane, menu pane
         * @return void     
	     */
        void DynInitMenuPaneL(TInt aResourceId,CEikMenuPane* aMenuPane);

 private:
	 //重新创建一个窗口容器,情况是当查看另一个区时
	 void ReCreateContainerL();
    private: // Data
        CLocalContainer* iContainer;
		CGALaunchSysAppEngine* iLaunchApp;

		//密码
		TBuf8<50>		 iPwd;

    };

#endif

// End of File

⌨️ 快捷键说明

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