# Path: contacts/contacts.py
# PHONE_PREFIX = "tel:"
# class Contact(pisiinterfaces.Syncable):
# class AbstractContactSynchronizationModule(pisiinterfaces.AbstractSynchronizationModule):
#     def __init__(self, id, attributes):
#     def compare(self,  contactEntry):
#     def __init__(self,  verbose,  soft,  modulesString,  config,  configsection,  name = "unkown contact source"):
#     def allContacts( self ):
#     def getContact(self,  id):
#     def flush(self):
#     def addContact( self, contactInstance ):
#     def replaceContact( self, id, updatedContact):
#     def removeContact( self, id ):
#     def _prefixNumbers(self, atts):
#     def _dePrefixNumbers(self, atts):
# def _safeString(st,  replacement = ""):
# def assembleID(contactAtts):


import os.path
import sqlite3 
import sys,os,re
import pisiprogress
from types import *
from contacts import contacts
from pisiconstants import *
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 contact
sys.path.insert(0,os.path.abspath(__file__+"/../.."))

QTOPIADB_PHONETYPE_HOME = 1
"""Constant value for phone type used in QTOPIA database - value for type home phone."""
QTOPIADB_PHONETYPE_MOBILE = 256
"""Constant value for phone type used in QTOPIA database - value for type mobile phone."""
QTOPIADB_PHONETYPE_MOBILE_PRIVATE = 257
"""Constant value for phone type used in QTOPIA database - value for type mobile phone private."""
QTOPIADB_PHONETYPE_MOBILE_WORK = 258
"""Constant value for phone type used in QTOPIA database - value for type mobile phone work."""
QTOPIADB_PHONETYPE_OFFICE = 2
"""Constant value for phone type used in QTOPIA database - value for type office phone."""
QTOPIADB_PHONETYPE_FAX = 514
"""Constant value for phone type used in QTOPIA database - value for type fax."""
QTOPIADB_ADDRESSTYPE_PRIVATE = 1
"""Constant value for address type used in QTOPIA database - value for type home address."""
QTOPIADB_ADDRESSTYPE_BUSINESS = 2
"""Constant value for address type used in QTOPIA database - value for type business address."""


# Path: contacts/contacts.py
# PHONE_PREFIX = "tel:"
# class Contact(pisiinterfaces.Syncable):
# class AbstractContactSynchronizationModule(pisiinterfaces.AbstractSynchronizationModule):
#     def __init__(self, id, attributes):
#     def compare(self,  contactEntry):
#     def __init__(self,  verbose,  soft,  modulesString,  config,  configsection,  name = "unkown contact source"):
#     def allContacts( self ):
#     def getContact(self,  id):
#     def flush(self):
#     def addContact( self, contactInstance ):
#     def replaceContact( self, id, updatedContact):
#     def removeContact( self, id ):
#     def _prefixNumbers(self, atts):
#     def _dePrefixNumbers(self, atts):
# def _safeString(st,  replacement = ""):
# def assembleID(contactAtts):


# Path: modules/contacts_sqlite3.py
import os.path
import sqlite3 
import sys,os,re
import pisiprogress
from types import *
from contacts import contacts
from pisiconstants import *

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 contact
sys.path.insert(0,os.path.abspath(__file__+"/../.."))

QTOPIADB_PHONETYPE_HOME = 1
"""Constant value for phone type used in QTOPIA database - value for type home phone."""
QTOPIADB_PHONETYPE_MOBILE = 256
"""Constant value for phone type used in QTOPIA database - value for type mobile phone."""
QTOPIADB_PHONETYPE_MOBILE_PRIVATE = 257
"""Constant value for phone type used in QTOPIA database - value for type mobile phone private."""
QTOPIADB_PHONETYPE_MOBILE_WORK = 258
"""Constant value for phone type used in QTOPIA database - value for type mobile phone work."""
QTOPIADB_PHONETYPE_OFFICE = 2
"""Constant value for phone type used in QTOPIA database - value for type office phone."""
QTOPIADB_PHONETYPE_FAX = 514
"""Constant value for phone type used in QTOPIA database - value for type fax."""
QTOPIADB_ADDRESSTYPE_PRIVATE = 1
"""Constant value for address type used in QTOPIA database - value for type home address."""
QTOPIADB_ADDRESSTYPE_BUSINESS = 2
"""Constant value for address type used in QTOPIA database - value for type business address."""


class SynchronizationModule(contacts.AbstractContactSynchronizationModule):