# Path: epymc/modules.py
# class EmcModule(object):
#     name = ''
#     label = ''
#     icon = ''
#     info = ''
# 
#     def __init__(self):
#         pass
# 
#     def __shutdown__(self):
#         pass
# 
#     def __restart__(self):
#         self.__shutdown__()
#         self.__init__()


import os
import threading
import queue
import epymc.input_events as input_events
import epymc.ini as ini
from http.server import BaseHTTPRequestHandler, HTTPServer
from efl import ecore
from epymc.modules import EmcModule
# This file is part of EpyMC, an EFL based Media Center written in Python.
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program.  If not, see <http://www.gnu.org/licenses/>.

from __future__ import absolute_import, print_function





def DBG(msg):
    # print('WEBSERVER: %s' % msg)
    pass


# msgs from thread to core, items are the input_event (ex. 'UP')
input_queue = queue.Queue()



# Path: epymc/modules.py
# class EmcModule(object):
#     name = ''
#     label = ''
#     icon = ''
#     info = ''
# 
#     def __init__(self):
#         pass
# 
#     def __shutdown__(self):
#         pass
# 
#     def __restart__(self):
#         self.__shutdown__()
#         self.__init__()


# Path: epymc/plugins/input_webserver/webserver.py
import os
import threading
import queue
import epymc.input_events as input_events
import epymc.ini as ini
from http.server import BaseHTTPRequestHandler, HTTPServer
from efl import ecore
from epymc.modules import EmcModule

# This file is part of EpyMC, an EFL based Media Center written in Python.
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program.  If not, see <http://www.gnu.org/licenses/>.

from __future__ import absolute_import, print_function





def DBG(msg):
    # print('WEBSERVER: %s' % msg)
    pass


# msgs from thread to core, items are the input_event (ex. 'UP')
input_queue = queue.Queue()



class WebserverModule(EmcModule):