📄 taskmanagerappui.h
字号:
/*
* ============================================================================
* Name : CTaskManagerAppUi from TaskManagerAppUi.h
* Part of : TaskManager
* Created : 08/31/2005 by Forum Nokia
* Description:
* Declares UI class for application.
* Version : 1.0
* Copyright: Nokia Corporation
* ============================================================================
*/
#ifndef __TASKMANAGER_APPUI_H__
#define __TASKMANAGER_APPUI_H__
// INCLUDE FILES
#include <eikappui.h>
#include "TaskManagerConnInfo.h"
// FORWARD DECLARATIONS
class CTaskManagerAppView;
class CTaskManagerEngine;
// CLASS DECLARATION
/**
* Application UI class.
* Provides support for the following features:
* - EIKON control architecture
*
*/
class CTaskManagerAppUi : public CEikAppUi
{
public: // Constructors and destructor
/**
* Symbian OS default constructor.
*/
void ConstructL();
/**
* Destructor.
*/
~CTaskManagerAppUi();
public: // New functions
/**
* Returns reference to engine, which handles HTTP transactions.
* @return Reference to engine.
*/
CTaskManagerEngine& Model();
/**
* Shows proper cba buttons according to the given boolean.
* @param aShow defines whether only a cancel button (ETrue) or options and exit buttons are shown.
*/
void ShowConnectingCbaL(const TBool& aShow);
/**
* AppView can inform the AppUi that it is busy doing something (like showing a query dialog).
* While AppView is busy, AppUi makes sure that engine won't update tasks automatically.
* @param aBusy defines wheter the view is busy or not.
*/
void SetViewBusy(const TBool& aBusy);
/**
* AppView informs the AppUi whether tasks exists in the listbox or not. AppUi when tasks don't
* exist, the AppUi must dimm the 'Complete task' menu item.
* @param aTasksExist ETrue if tasks exist, EFalse if not.
*/
void TasksExist(const TBool& aTasksExist);
public: // Functions from base classes
/**
* From CEikAppUi, takes care of command handling.
*/
void HandleCommandL(TInt aCommand);
/**
* From CEikAppUi, called when application switches to or from the foreground.
*/
void HandleForegroundEventL(TBool aForeground);
/**
* From CEikAppUi, Dynamically initialises a menu pane.
*/
void DynInitMenuPaneL(TInt aResourceId,CEikMenuPane* aMenuPane);
private: // New functions
/**
* Reads connection setting from a settings file.
*/
void InternalizeConnInfoL();
/**
* Saves connection settings to a settings file.
*/
void ExternalizeConnInfoL();
/**
* Sets the automatic tasks loading in engine on, if AppView and AppUi aren't busy.
*/
void SetAutomaticUpdateL();
private: // Data members
CTaskManagerAppView* iAppView;
CTaskManagerEngine* iEngine;
TTaskManagerConnInfo iConnectionInfo;
TFileName iSettingsFile;
TBool iViewBusy;
TBool iUiBusy;
TBool iCompleteTaskDimmed;
};
#endif // __TASKMANAGER_APPUI_H__
// End of file
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -