filebrowsercontainer.h

来自「A FileBrowser application runs on Symbia」· C头文件 代码 · 共 88 行

H
88
字号
/*
* ============================================================================
*  Name     : CFileBrowserContainer from FileBrowserContainer.h
*  Part of  : FileBrowser
*  Created  : 03.05.2005 by ToBeReplacedByAuthorXinyu
*  Description:
*     Declares container control for application.
*  Version  :
*  Copyright: ToBeReplacedByCopyrightNone
* ============================================================================
*/

#ifndef FILEBROWSERCONTAINER_H
#define FILEBROWSERCONTAINER_H

// INCLUDES
#include <coecntrl.h>
#include <eiklbo.h>   
// FORWARD DECLARATIONS
class CEikLabel;        // for example labels
class CAknSingleGraphicStyleListBox; 
// CLASS DECLARATION

/**
*  CFileBrowserContainer  container control class.
*  
*/
class CFileBrowserContainer : public CCoeControl, MEikListBoxObserver
    {
    public: // Constructors and destructor
        
        /**
        * EPOC default constructor.
        * @param aRect Frame rectangle for container.
        */
        void ConstructL(const TRect& aRect);

        /**
        * Destructor.
        */
        ~CFileBrowserContainer();

    public: // New functions
        void HandleCommandL(TInt aCommand);
    public: // Functions from base classes
        void HandleListBoxEventL(CEikListBox* aListBox, TListBoxEvent aEventType );
    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;

           TKeyResponse OfferKeyEventL(const TKeyEvent& aKeyEvent,
                                    TEventCode aType);

        void UpdateFileDataL();
        void UpdateDriveDataL();

        void UpdateTitleL();
        
    private: //data        
        CAknSingleGraphicStyleListBox* iListBox; 
        //CAknSingleStyleListBox* iListBox; 
        TBuf<KMaxFileName> iPath;
        CDir* iDirList;
        CDir* iFileList;
    };

#endif

// End of File

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?