# Path: wildfind/harrier/events.py
# SCAN_START, SCAN_DONE, \
#     GPS_OPEN, GPS_LOC, GPS_SATS, GPS_ERR, \
#     STATUS_IDLE, STATUS_WAIT, STATUS_CAPTURE, STATUS_PROCESS, \
#     INFO, WARN, ERR = range(13)
# class Event(object):
# class Post(object):
#     def __init__(self, eventType, **kwargs):
#     def get_type(self):
#     def get_arg(self, arg):
#     def get_args(self):
#     def __init__(self, queue):
#     def __post(self, event, delay=0):
#     def status(self, eventType):
#     def scan_start(self, delay=0):
#     def scan_done(self, collars=None, timeStamp=None):
#     def gps_open(self, delay):
#     def gps_location(self, location):
#     def gps_satellites(self, satellites):
#     def gps_error(self, error):
#     def error(self, error):
#     def warning(self, warning):
#     def info(self, info):


from collections import OrderedDict
from wildfind.harrier import events
import json
                                'canSet': canSet,
                                'canRun': canRun,
                                'valSet': valSet}

    def __execute(self, command, method, value):
        if method == Parse.SCAN:
            if command == Parse.RUN:
                events.Post(self._queue).scan_start()

        elif method == Parse.SCANS:
            self._database.get_scans(self.result_scans)

        elif method == Parse.SIGNALS:
            self._database.get_signals(self.result_signals)

        elif method == Parse.LOG:
            return self.result(method, self._database.get_log(self.result_log))

        elif method == Parse.PORTS:
            if command == Parse.GET:
                ports = [port.device for port in self._settings.gps.get_ports()]
                return self.result(method, ports)

        elif method == Parse.SETTINGS:
            if command == Parse.GET:
                return self.result(method, self._settings.get())

        elif method == Parse.PORT:
            if command == Parse.SET:
                self._settings.gps.port = value

# Path: wildfind/harrier/events.py
# SCAN_START, SCAN_DONE, \
#     GPS_OPEN, GPS_LOC, GPS_SATS, GPS_ERR, \
#     STATUS_IDLE, STATUS_WAIT, STATUS_CAPTURE, STATUS_PROCESS, \
#     INFO, WARN, ERR = range(13)
# class Event(object):
# class Post(object):
#     def __init__(self, eventType, **kwargs):
#     def get_type(self):
#     def get_arg(self, arg):
#     def get_args(self):
#     def __init__(self, queue):
#     def __post(self, event, delay=0):
#     def status(self, eventType):
#     def scan_start(self, delay=0):
#     def scan_done(self, collars=None, timeStamp=None):
#     def gps_open(self, delay):
#     def gps_location(self, location):
#     def gps_satellites(self, satellites):
#     def gps_error(self, error):
#     def error(self, error):
#     def warning(self, warning):
#     def info(self, info):


# Path: wildfind/harrier/parse.py
from collections import OrderedDict
from wildfind.harrier import events
import json

                                'canSet': canSet,
                                'canRun': canRun,
                                'valSet': valSet}

    def __execute(self, command, method, value):
        if method == Parse.SCAN:
            if command == Parse.RUN:
                events.Post(self._queue).scan_start()

        elif method == Parse.SCANS:
            self._database.get_scans(self.result_scans)

        elif method == Parse.SIGNALS:
            self._database.get_signals(self.result_signals)

        elif method == Parse.LOG:
            return self.result(method, self._database.get_log(self.result_log))

        elif method == Parse.PORTS:
            if command == Parse.GET:
                ports = [port.device for port in self._settings.gps.get_ports()]
                return self.result(method, ports)

        elif method == Parse.SETTINGS:
            if command == Parse.GET:
                return self.result(method, self._settings.get())

        elif method == Parse.PORT:
            if command == Parse.SET:
                self._settings.gps.port = value

                events.Post(self._queue).gps_open(0)