Handler.Handler Class Reference

provides functions to treat events notification More...

List of all members.

Public Member Functions

def __init__
 obtains the blacklist and the whitelist
def process_default
 fills the queue with events attemping to whitelist and blacklist info
def process_IN_DELETE_SELF
 processes deleted events
def process_IN_MODIFY
 processes modified events
def process_IN_CREATE
 processes creation events
def process_IN_DELETE
 processes deleted events
def extractEvent
 extract the first event on the top of the queue

Static Private Attributes

list __eventQueue = []
 __blacklist = None
 __whitelist = None
 __reBlacklist = None
int __rfd = 0
 file descriptor to read from the pipe
int __wfd = 0
 file descruptor to write on the pipe
 __text = None
 text for the GUI


Detailed Description

provides functions to treat events notification

Handler inherits from ProcessEvent and overrides the process of the super class to bring the desired functionality to this module

Author:
Jorge

Member Function Documentation

def Handler.Handler.__init__ (   self,
  whitelist,
  blacklist,
  reBlacklist,
  rfd,
  wfd,
  text 
)

obtains the blacklist and the whitelist

This constructor adds the necesary list of watched and not watched elements

Parameters:
source list of strings a list of directories to watch
whitelist the set of watched directories
blacklist the set of ignored files or directories
Author:
Jorge

def Handler.Handler.process_default (   self,
  event 
)

fills the queue with events attemping to whitelist and blacklist info

If an event is raised on a blacklisted file or directory, the event is not queued

Author:
Jorge

def Handler.Handler.process_IN_DELETE_SELF (   self,
  event 
)

processes deleted events

Informs of a delete event on a directly watched file or dir and calls the default process

See also:
process_default
Parameters:
event obect that contains the relevant information about the raised event
Author:
Jorge

def Handler.Handler.process_IN_MODIFY (   self,
  event 
)

processes modified events

Informs of a modify event and calls the default process

See also:
process_default
Parameters:
event obect that contains the relevant information about the raised event
Author:
Jorge

def Handler.Handler.process_IN_CREATE (   self,
  event 
)

processes creation events

Informs of a creation event and calls the default process

See also:
process_default
Parameters:
event obect that contains the relevant information about the raised event
Author:
Jorge

def Handler.Handler.process_IN_DELETE (   self,
  event 
)

processes deleted events

Informs of a delete event into a watched directory and calls the default process

See also:
process_default
Parameters:
event obect that contains the relevant information about the raised event
Author:
Jorge

def Handler.Handler.extractEvent (   self  ) 

extract the first event on the top of the queue

Returns:
the first event object on the queue if the queue is not empty, None otherwise
Author:
Jorge


Member Data Documentation

list Handler.Handler.__eventQueue = [] [static, private]

Handler.Handler.__blacklist = None [static, private]

Handler.Handler.__whitelist = None [static, private]

Handler.Handler.__reBlacklist = None [static, private]

int Handler.Handler.__rfd = 0 [static, private]

file descriptor to read from the pipe

int Handler.Handler.__wfd = 0 [static, private]

file descruptor to write on the pipe

Handler.Handler.__text = None [static, private]

text for the GUI


Generated on Wed Dec 19 19:25:04 2007 for HdLorean by  doxygen 1.5.4