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

📄 m3directory.h

📁 symbian uiq 例子代码,功能包括文件断点续传、编辑通讯录、后台短信回复等
💻 H
字号:
/*
 * Copyright (c) 2007,苏州丰达
 * All rights reserved.
 * 版权所有(C)2007-2008 苏州丰达 
 * 公司地址:中国,江苏省苏州市 
 * 网址:http://www.
 *
 * 文件名称:M3Directory.cpp
 * 摘 要:
 *
 * 产品版本:彩视 1.0
 *
 * 作 者:xxxx
 * 创建日期:xxxxx
 * 负责人:xxxxx
 *
 * 修改者:司治国
 * 修改日期:2008.1.17
 *
 * 编译器或环境等描述:uiqsdk2.1
 * 适用于VC2003+symbian 7.x的环境开发。
 *
 **/

#ifndef M3DIRECTORY_H
#define M3DIRECTORY_H

#include <badesca.h>
#include <f32file.h>
#include <apgcli.h>
#include <zipfile.h>
#include <M3uiq2.rsg>

#define KMaxDirSize 256

class RFs;
class TParse;
class CFileMan;
class M3ScanObject;
class CZipFile;

class M3Directory
{
  private: 
    M3Directory();
    void ConstructL();
  public:
	/*
	 *	二步构造
	 */
	static M3Directory* newL();
	~M3Directory();
    void GetList(CDesCArray *txtArray);
    TInt EnterItem(TInt idx);
    TInt StartDocument(TInt idx);
    void UpDir();
    TPtrC GetPath();
    TPtrC GetFile(TInt idx);
    TBool HasDrive();
    TBool InZipFile();
    TInt FindPath(TPtrC path);
    TBool IsDir(TPtrC file);
    TBool SetPath(TPtrC path);

    //selection funtion
    TBool IsSelected(TInt idx);
    void ClearSelection();
    TInt SelectedCount();
    //File manipulation functions
    TInt DeleteFile(TInt idx, TBool rec = EFalse);
    TInt MkDir(TPtrC newDir);
    void DelTemporary();
    //void Debug_msg(TPtrC txt);
    TInt GetFileSizeL(TPtrC fname);
    TParse *GetParse();
  private:
	/*
	 *	得到盘符列表
	 *  @param aTxtArray
	 */
    void GetDriveList(CDesCArray *txtArray);
	/*
	 *	得到目录列表
	 */
    void GetDirList(CDesCArray *txtArray);
    void GetZipList(CDesCArray *txtArray);
    void FileDfs(M3ScanObject *fo, TPtrC path);
    void OpenZip(TPtrC zip);
    void CloseZip();
    void CopyZip(TPtrC src, TPtrC trg);

  private:
    RFs *iFs;
    TParse *iParse;
    TBool iHasDrive;
    CDesCArray *iTxtArray;
    CArrayFix<TInt> *iSelected;
    TInt iNumSelected;
    CFileMan *iFmgr;
    CZipFile *iZip;
    CDesCArray *iTemporary;
};

#endif// end M3DIRECTORY_H

⌨️ 快捷键说明

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