📄 passwordappui.h
字号:
/* ====================================================================
* File: PasswordAppUi.h
* Created: 11/06/07
* Author:
* Copyright (c): , All rights reserved
* ==================================================================== */
#ifndef __PASSWORD_APPUI_H__
#define __PASSWORD_APPUI_H__
#include <aknappui.h>
#include <eiktxlbx.h>
// Forward reference
class CPasswordAppView;
class CPasswordInfoView;
/*!
@class CPasswordAppUi
@discussion An instance of class CPasswordAppUi is the UserInterface part of the AVKON
application framework for the Password example application
*/
class CPasswordAppUi : public CAknAppUi
{
public:
/*!
@function ConstructL
@discussion Perform the second phase construction of a CPasswordAppUi object
this needs to be public due to the way the framework constructs the AppUi
*/
void ConstructL();
/*!
@function CPasswordAppUi
@discussion Perform the first phase of two phase construction.
This needs to be public due to the way the framework constructs the AppUi
*/
CPasswordAppUi();
/*!
@function ~CPasswordAppUi
@discussion Destroy the object and release all memory objects
*/
~CPasswordAppUi();
public: // from CAknAppUi
/*!
@function HandleCommandL
@discussion Handle user menu selections
@param aCommand the enumerated code for the option selected
*/
void HandleCommandL(TInt aCommand);
void SwitchToMain();
void SwitchToInfoView();
void ShowTextDialog();
void SetParms(TBool iChanged);
TBool SavePassword();
void ShowDeatils();
TBool UpdatePassword();
void DynInitMenuPaneL(TInt aResourceId, CEikMenuPane* aMenuPane);
TKeyResponse CPasswordAppUi::HandleKeyEventL(const TKeyEvent& aKeyEvent,TEventCode aType);
void ShowAboutDialog();
void ShowSaveDialog();
void ShowUpdateDialog();
void DeletePassword();
void SaveSuccess();
void UpdateSuccess();
void CheckItemText();
void SetParmsOtherChange(TBool iOtherChanged);
void HandleResourceChangeL(TInt aType);
private:
void ShowInfo();
TBool isNew;
TBool isSaved;
TBool iTitleChanged;
TBool iOtherChanged;
TBool isUpdated;
private:
/*! @var iAppView The application view */
CPasswordAppView* iAppView;
CPasswordInfoView* iInfoView;
CCoeControl* iCurrent; // a member of class
// CPasswordDb* iPasswordDb;
/** Full path to database file */
TFileName iDatabaseFile;
TFileName ApplicationDriveAndPathL() const;
#if defined __SERIES60_30__
/**
* Function: DatabaseDriveAndPathL
*
* Description: Retrieve drive and path where the DB is created.
*/
TFileName DatabaseDriveAndPathL() const;
#endif
TInt PasswordId;
public:
TInt index;
};
#endif // __PASSWORD_APPUI_H__
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -