⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 filelistengine.h

📁 symbian video 的 实现
💻 H
字号:
/*
* ============================================================================
*  Name     : FileListEngine.h
*  Part of  : FileList project from Forum Nokia sample code
*  Created  : 18.12.2002 by Forum Nokia
*  Description:
*     Engine for constructing filelist.
*  Version  : 1.0
*  Copyright: Nokia Corporation, 2003
* ============================================================================
*/

#ifndef FILELISTENGINE_H
#define FILELISTENGINE_H

#include <coecntrl.h>
#include <f32file.h>        // for CDir
#include <documenthandler.h>// for launching
#include <badesca.h>        // for CDesCArray
#include <apmstd.h>         // for TDataType

/**
 *  CFileListEngine  
 *  Used to list all the files in specific directories.
 */
class CFileListEngine : public CCoeControl
    {
    public: // // Constructors and destructor

        /**
        * Symbian default constructor.
        */      
        void ConstructL();

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

    public: // New functions
	    void GetVideoFilePathAndNameAtPositon(TInt aPosition, TDes &aName );

        /**
        * This Method reads the appropriate directory list.
        */      
        TInt StartFileList();

        /**
        * This Method constructs the listbox items with directory 
		* information
        */      
        void GetFileListItems(CDesCArray* iItems);

        /**
        * Sets which directory to list.
		* @param aDirectory directory to set
        */      
        void SetDirectory(TInt aDirectory);

        /**
        * This Method sets whether modification date or file size 
		* is shown. There is also option for toggling the status.
		* @param aSizeDate set size or date
        */      
        void SetSizeDate(TInt aSizeDate);

        /**
        * This Method ends the FileList session
        */      
        void EndFileList();

        /**
        * This Method removes all listbox items when a new list 
		* needs to be shown.
        */      
        TBool RemoveItems(CDesCArray* aItems);

        /**
        * This Method launches selected item with DocumentHandler. 
		* DocumentHandler will launch correct application depending
		* on the file type.
		* Note that all the extensions do not work on emulator.
        */      
        void LaunchCurrent(TInt aPosition);

    private: //Data
        // Define local CDir variable
        CDir* iDirList;

        // Fileserver session
        RFs iFsSession;
  
    private: // variables
        // Which directory to show
        TInt iDirectory;    
        // Show date or size?
        TInt iSizeDate;     

    };

#endif // FILELISTENGINE_H

⌨️ 快捷键说明

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