www.pudn.com > FileList_v1_0.zip > 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  
#include  
#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