chxavfilesystemwatcher.h
来自「symbian 下的helix player源代码」· C头文件 代码 · 共 69 行
H
69 行
/************************************************************************
* chxavfilesystemwatcher.h
* -------------------------
*
* Synopsis:
* Encapsulates active object file system monitoring; watches a directory and
* its children and executes an event handler when an event under that path
* occurs
*
* Intended to be used by a single class client (multiple client support should
* be implemented by the event handler)
*
* Target:
* Symbian OS
*
*
* (c) 1995-2003 RealNetworks, Inc. Patents pending. All rights reserved.
*
************************************************************************/
#ifndef _chxavfilesystemwatcher_h_
#define _chxavfilesystemwatcher_h_
// Include from this project...
#include "chxavactivewatcher.h"
#include "chxavrefptr.h"
// class CHXAvFileSystemWatcher
class CHXAvFileSystemWatcher
: public CHXAvActiveWatcher
{
public:
CHXAvFileSystemWatcher(RFs& fs = CCoeEnv::Static()->FsSession());
~CHXAvFileSystemWatcher();
void ConstructL();
void SetWatchPathL(const TDesC& path);
void SetNotifyType(TNotifyType type);
protected:
// epActiveWatcher implementation
void DoIssueRequest(const CHXAvActiveCmplPtr& spActive);
void DoCancelRequest(const CHXAvActiveCmplPtr& spActive);
private:
refptr<HBufC> m_spWatchPath;
RFs& m_fs;
TNotifyType m_notifyType;
};
////////////////////////////////////////////////////////
// see f32file.h
//
// ENotifyEntry, ENotifyAll, ENotifyFile, ENotifyDir, ENotifyAttributes, ENotifyWrite, ENotifyDisk
//
// not sure if we can OR these; ENotifyWrite, ENotifyAttributes may only work if file is given as path
//
inline
void CHXAvFileSystemWatcher::SetNotifyType(TNotifyType type)
{
m_notifyType = type;
}
#endif // _chxavfilesystemwatcher_h_
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?