FileMonitor Class Reference

#include <filemonitor.h>

Public Types

enum   STATE : Int {
   RESCAN ,
   MODIFIED ,
   DELETED ,
   METADATA ,
   RENAMED ,
   CREATED
}
using  Observer = Delegate < void(const Url &watched, const Url &updated, STATE state)>

公共成员函数

enum maxon::FileMonitor::STATE Int   MAXON_ENUM_FLAGS_CLASS ( STATE )

静态公共成员函数

static MAXON_METHOD Result < FileMonitorItemRef >  WatchFile (const Url &url, Observer &&observer)
static MAXON_METHOD Result < FileMonitorItemRef >  WatchDirectory (const Url &url, Observer &&observer)

私有成员函数

  MAXON_INTERFACE_NONVIRTUAL ( FileMonitor , MAXON_REFERENCE_NONE , "net.maxon.interface.filemonitor")

Member Typedef Documentation

◆  Observer

using Observer = Delegate <void(const Url & watched, const Url & updated, STATE state)>

Member Enumeration Documentation

◆  STATE

enum STATE : Int
strong

Types of CaptureDevices.

Enumerator
RESCAN 

Something in the directory was modified, rescan to find modified files (and check if the directory still exists).

MODIFIED 

The object specified by the URL was modified (write).

DELETED 

The object specified by the URL was deleted.

METADATA 

The attributes and or metadata of the object specified by the URL changed.

RENAMED 

The object specified by the URL was renamed (and possibly moved).

CREATED 

The object specified by the URL was created.

成员函数文档编制

◆  MAXON_INTERFACE_NONVIRTUAL()

MAXON_INTERFACE_NONVIRTUAL ( FileMonitor   ,
MAXON_REFERENCE_NONE   ,
"net.maxon.interface.filemonitor"   
)
private

◆  MAXON_ENUM_FLAGS_CLASS()

enum maxon::FileMonitor::STATE Int MAXON_ENUM_FLAGS_CLASS ( STATE   )

◆  WatchFile()

static MAXON_METHOD Result <FileMonitorItemRef> WatchFile ( const Url url ,
Observer &&  observer  
)
static

◆  WatchDirectory()

static MAXON_METHOD Result <FileMonitorItemRef> WatchDirectory ( const Url url ,
Observer &&  observer  
)
static