# Path: modules/generic_remote.py
# class RemoteRessourceHandler:
#     def __init__(self, url, remoteFilename, localFilename = FILEDOWNLOAD_TMPFILE, username = None,  password = None):
#     def download(self):
#     def upload(self):
#     def cleanup(self):
# 
# Path: modules/calendar_ics.py
# FIELD_PISI = "X-PISI-ID"
# class SynchronizationModule(events.AbstractCalendarSynchronizationModule):
#     def __init__( self, modulesString, config, configsection, folder, verbose=False, soft=False):
#     def _guessAmount(self):
#     def load(self):
#     def saveModifications(self):


import sys,  os
import pisiprogress
import urllib2
from modules import generic_remote,  calendar_ics
from pisiconstants import *
"""
Syncronize with a remote iCalendar file

This file is part of Pisi.

This module is based on calendar_ics and generic_remote and is only pulling functionality from these two modules togehter.

Pisi 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.

Pisi 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 Pisi.  If not, see <http://www.gnu.org/licenses/>
"""

# Allows us to import other modules
sys.path.insert(0,os.path.abspath(__file__+"/../.."))


# Path: modules/generic_remote.py
# class RemoteRessourceHandler:
#     def __init__(self, url, remoteFilename, localFilename = FILEDOWNLOAD_TMPFILE, username = None,  password = None):
#     def download(self):
#     def upload(self):
#     def cleanup(self):
# 
# Path: modules/calendar_ics.py
# FIELD_PISI = "X-PISI-ID"
# class SynchronizationModule(events.AbstractCalendarSynchronizationModule):
#     def __init__( self, modulesString, config, configsection, folder, verbose=False, soft=False):
#     def _guessAmount(self):
#     def load(self):
#     def saveModifications(self):


# Path: modules/calendar_remoteics.py
import sys,  os
import pisiprogress
import urllib2
from modules import generic_remote,  calendar_ics
from pisiconstants import *

"""
Syncronize with a remote iCalendar file

This file is part of Pisi.

This module is based on calendar_ics and generic_remote and is only pulling functionality from these two modules togehter.

Pisi 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.

Pisi 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 Pisi.  If not, see <http://www.gnu.org/licenses/>
"""

# Allows us to import other modules
sys.path.insert(0,os.path.abspath(__file__+"/../.."))


class SynchronizationModule(calendar_ics.SynchronizationModule, generic_remote.RemoteRessourceHandler):