ZFFramework
 
Loading...
Searching...
No Matches
ZFIOUtil.h File Reference

debug server More...

#include "ZFAppUtilDef.h"

Go to the source code of this file.

Classes

class  ZFStyleLoadAsyncTask
 util to perform ZFStyleLoadAsync More...
 

Functions

zfautoT< ZFTaskIdZFIORemoveOutdate (const ZFPathInfo &pathInfo, const ZFListener &filter=(zft_zfnull), zftimet outdate=(zftimetOneWeek()))
 remove outdated files
 
zfautoT< ZFTaskIdZFIORemoveEmptyDir (const ZFPathInfo &pathInfo, const ZFListener &filter=(zft_zfnull))
 remove empty dir, excluding the pathInfo itself
 
zfautoT< ZFTaskIdZFIOForEachAsync (const ZFPathInfo &pathInfo, const ZFListener &fileCallback, const ZFListener &finishCallback=(zft_zfnull), zfbool isRecursive=(_ZFT_t_zftrue))
 async version for ZFIOForEach to prevent blocking UI update when performing heavy task
 
zfautoT< ZFTaskIdZFIOForEachFileAsync (const ZFPathInfo &pathInfo, const ZFListener &fileCallback, const ZFListener &finishCallback=(zft_zfnull), zfbool isRecursive=(_ZFT_t_zftrue))
 see ZFIOForEachAsync
 
zfautoT< ZFTaskIdZFIOForEachDirAsync (const ZFPathInfo &pathInfo, const ZFListener &fileCallback, const ZFListener &finishCallback=(zft_zfnull), zfbool isRecursive=(_ZFT_t_zftrue))
 see ZFIOForEachAsync
 
zfautoT< ZFTaskIdZFStyleLoadAsync (const ZFPathInfo &pathInfo, const ZFListener &finishCallback=(zft_zfnull))
 async version of ZFStyleLoad
 

Detailed Description

debug server

Function Documentation

◆ ZFIORemoveOutdate()

zfautoT< ZFTaskId > ZFIORemoveOutdate ( const ZFPathInfo & pathInfo,
const ZFListener & filter = (zft_zfnull),
zftimet outdate = (zftimetOneWeek()) )
extern

remove outdated files

filter would be called before removing each file, param0 is v_ZFPathInfo that describe the child file, and param1 is a v_zfstring stores the relative path to source pathInfo
impl can:

◆ ZFIORemoveEmptyDir()

zfautoT< ZFTaskId > ZFIORemoveEmptyDir ( const ZFPathInfo & pathInfo,
const ZFListener & filter = (zft_zfnull) )
extern

remove empty dir, excluding the pathInfo itself

filter would be called before removing each dir, param0 is v_ZFPathInfo that describe the child file or dir, and param1 is a v_zfstring stores the relative path to source pathInfo
impl can:

◆ ZFIOForEachAsync()

zfautoT< ZFTaskId > ZFIOForEachAsync ( const ZFPathInfo & pathInfo,
const ZFListener & fileCallback,
const ZFListener & finishCallback = (zft_zfnull),
zfbool isRecursive = (_ZFT_t_zftrue) )
extern

async version for ZFIOForEach to prevent blocking UI update when performing heavy task

fileCallback is same as ZFIOForEach, but would be called with some delay between each call for each file/dir

fileCallback's sender would be the v_ZFIOFindData (may be null if pathInfo already points to a file), param0 is v_ZFPathInfo that describe the child file or dir, and param1 is a v_zfstring stores the relative path to source pathInfo (may be empty string if pathInfo already points to a file)
impl can:

finishCallback's param0 would be a v_ZFResultType indicates result type, param1 would be the result passed from fileCallback

◆ ZFStyleLoadAsync()

zfautoT< ZFTaskId > ZFStyleLoadAsync ( const ZFPathInfo & pathInfo,
const ZFListener & finishCallback = (zft_zfnull) )
extern

async version of ZFStyleLoad

all items would still be loaded in main thread, but would wait some time between each load task, so that it's possible to update your UI during heavy load task, item load events:

finishCallback's param0 would be a v_ZFResultType indicates result type