📄 controlpanelapplication.h
字号:
//
// ControlPanelApplication.h
//
// Copyright (c) 2004 Symbian Ltd. All rights reserved.
//
#include <eikenv.h>
#include <eikon.hrh>
#include <eikdial.h>
#include <eiktxlbm.h>
#include <eikclb.h>
#include <eikclbd.h>
#include <bautils.h>
#include <f32file.h>
#include <apgcli.h>
#include <ControlPanelApplication.rsg>
#include "ControlPanelApplication.hrh"
// This enumerator is used for the RefreshAppsListBoxL method
enum TEnumAddRemove
{
EItemRemoved,
EItemAdded
};
class CControlPanelDialog : public CEikDialog, public MEikListBoxObserver
{
public:
// Constructor
CControlPanelDialog();
// Destructor
~CControlPanelDialog();
// Add resource file for this CTL to resource handler
// Called by CEikDialog to load a specific resource for this dialog
void AddResourceFileL();
// This is called when the listbox is clicked
// @param aListBox which listbox caused the event
// @param aEventType what type of even occured
void HandleListBoxEventL(CEikListBox* aListBox, TListBoxEvent aEventType);
private:
// CEikDialog method that is called when a view switch occurs
// @see CEikDialog::PrepareForcedExitL()
TInt PrepareForcedExitL();
// CEikDialog method that is called when a button is pressed
// @see CEikDialog::OkToExitL(TInt aButtonId)
TBool OkToExitL(TInt aButtonId);
// CEikDialog method called when an object in the dialog has its state changed
// @param aControlId id of the object which had its state changed
void HandleControlStateChangeL(TInt aControlId);
// CEikDialog method that is called when the dialog is started
// @see CEikDialog::PreLayoutDynInitL()
void PreLayoutDynInitL();
// CEikDialog function that is called when the dialog is started
// @see CEikDialog::PostLayoutDynInitL()
void PostLayoutDynInitL();
// First time initialization of our listboxes
void InitilizeAppsListboxL();
void InitilizeInisListboxL();
// Refreshes the list boxes
void RefreshAppsListBoxL(TEnumAddRemove aStatus);
// Removes the selected item from it's respective list
void RemoveFromList(void);
// This is called when the page is changed
// @param aPageId gives the page id that is changed to
// (the ids are specified in the .hrh file)
virtual void PageChangedL(TInt aPageId);
private:
// Holds the resource file id after the resources has been added to the dialog - used by delete at exit
TInt iResourceFileId;
//These arrays hold the content of the listbox
CDesCArrayFlat* iInisArray;
CDesCArrayFlat* iAppsArray;
// Holds the column data for the dialog
CColumnListBoxData* iColumnData;
// Used to keep a record of the page that is currently selected
TInt iPageNumber;
};
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -