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

📄 filelistengine.h

📁 Source codes and documents for how to find files in phone memory or mmc card in Symbian OS. Compatib
💻 H
字号:
/*
* ============================================================================
*  Name     : CFileListEngine from FileListEngine.h
*  Part of  : FileList
*  Created  : 18.12.2002 by Forum Nokia
*  Description:
*     Engine for constructing filelist.
*  Version  : 1.0
*  Copyright: Nokia Corporation
* ============================================================================
*/

#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

class CFileListEngine : public CCoeControl
    {
    public: // // Constructors and destructor

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

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

    public: // New functions

// ---------------------------------------------------------
// CFileListEngine::StartFileList()
// This Method reads the appropriate directory list.
// ---------------------------------------------------------
//
        TInt StartFileList();

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

// ---------------------------------------------------------
// CFileListEngine::SetDirectory(TInt aDirectory)
// This Method sets which directory to list.
// ---------------------------------------------------------
//
        void SetDirectory(TInt aDirectory);

// ---------------------------------------------------------
// CFileListEngine::SetSizeDate(TInt aSizeDate)
// This Method sets whether modification date or file size 
// is shown. There is also option for toggling the status.
// ---------------------------------------------------------
//
        void SetSizeDate(TInt aSizeDate);

// ---------------------------------------------------------
// CFileListEngine::EndFileList()
// This Method ends the FileList session
// ---------------------------------------------------------
//
        void EndFileList();

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

// ---------------------------------------------------------
// CFileListEngine::LaunchCurrent(TInt aPosition)
// 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

// End of File

⌨️ 快捷键说明

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