# Path: pyrikura/ipyrikura.py
# class IPyrikuraPlugin(Interface):
# class ITrigger(Interface):
# class IImageProcessor(Interface):
# class IFileOp(Interface):
# class ICamera(Interface):
#     def trigger(self):
#     def process(self):
#     def process(self):


import os
from twisted.plugin import IPlugin
from twisted.internet import threads
from zope.interface import implements
from pyrikura import ipyrikura




class FileDelete(object):
    implements(ipyrikura.IFileOp)

    def process(self, msg, sender=None):
        return threads.deferToThread(os.unlink, msg)


class FileDeleteFactory(object):

# Path: pyrikura/ipyrikura.py
# class IPyrikuraPlugin(Interface):
# class ITrigger(Interface):
# class IImageProcessor(Interface):
# class IFileOp(Interface):
# class ICamera(Interface):
#     def trigger(self):
#     def process(self):
#     def process(self):


# Path: pyrikura/twisted/plugins/filedelete.py
import os
from twisted.plugin import IPlugin
from twisted.internet import threads
from zope.interface import implements
from pyrikura import ipyrikura





class FileDelete(object):
    implements(ipyrikura.IFileOp)

    def process(self, msg, sender=None):
        return threads.deferToThread(os.unlink, msg)


class FileDeleteFactory(object):

    implements(IPlugin, ipyrikura.IPyrikuraPlugin)