📄 filelistcontainer.h
字号:
/*
* ============================================================================
* Name : CFileListContainer from FileListContainer.h
* Part of : FileList
* Created : 18.12.2002 by Forum Nokia
* Description:
* Declares container control for application.
* Version : 1.0
* Copyright: Nokia Corporation
* ============================================================================
*/
#ifndef FILELISTCONTAINER_H
#define FILELISTCONTAINER_H
// INCLUDES
#include <coecntrl.h>
#include <aknlists.h>
#include "eiklbx.h" // For Listbox
#include "FileListEngine.h"
// CLASS DECLARATION
/**
* CFileListContainer container control class.
*
*/
class CFileListContainer : public CCoeControl, MCoeControlObserver
{
public: // Constructors and destructor
/**
* Symbian default constructor.
* @param aRect Frame rectangle for container.
*/
void ConstructL(const TRect& aRect);
/**
* Destructor.
*/
~CFileListContainer();
public: // New functions
void SetFileList(TInt aDirectory, TInt aSizeDate);
public: // Functions from base classes
/*!
@function OfferKeyEventL
@discussion Handles key events.
@param aKeyEvent The key event.
@param aType The type of key event: EEventKey, EEventKeyUp or EEventKeyDown.
@result Indicates whether or not the key event was used by this control.
*/
TKeyResponse OfferKeyEventL(const TKeyEvent& aKeyEvent,TEventCode aType);
private: // Functions from base classes
/**
* From CoeControl,SizeChanged.
*/
void SizeChanged();
/**
* From CoeControl,CountComponentControls.
*/
TInt CountComponentControls() const;
/**
* From CCoeControl,ComponentControl.
*/
CCoeControl* ComponentControl(TInt aIndex) const;
/**
* From CCoeControl,Draw.
*/
void Draw(const TRect& aRect) const;
// event handling
void HandleControlEventL(CCoeControl* aControl,TCoeEvent aEventType);
public:
CFileListEngine* iAppEngine;
private: //data
// Listbox
CAknDoubleNumberStyleListBox* iListBox;
};
#endif
// End of File
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -