00001 /* 00002 * OpenMobileIS - a free Java(TM) Framework for mobile applications Java(TM) 00003 * Copyright (C) 2004-2006 Philippe Delrieu 00004 * All rights reserved. 00005 * Contact: pdelrieu@openmobileis.org 00006 * 00007 * This library is free software; you can redistribute it and/or 00008 * modify it under the terms of the GNU Lesser General Public 00009 * License as published by the Free Software Foundation; either 00010 * version 2.1 of the License, or any later version. 00011 * 00012 * This library is distributed in the hope that it will be useful, 00013 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00014 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00015 * Lesser General Public License for more details. 00016 * 00017 * You should have received a copy of the GNU Lesser General Public 00018 * License along with this library; if not, write to the Free Software 00019 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 00020 * USA 00021 * 00022 * Author : Philippe Delrieu 00023 * 00024 * Modifications : 00025 * Creation P.Delrieu 00026 * 00027 */ 00028 package org.openmobileis.synchro.openmsp.client; 00029 00030 import org.openmobileis.common.util.exception.ServiceException; 00031 import org.openmobileis.synchro.client.SynchroDescriptor; 00032 import org.openmobileis.synchro.openmsp.OpenMSPException; 00033 import org.openmobileis.synchro.openmsp.protocol.ContainerMessage; 00034 import org.openmobileis.synchro.openmsp.protocol.Message; 00035 import org.openmobileis.synchro.openmsp.protocol.Status; 00036 import org.openmobileis.synchro.security.auth.Credential; 00037 00042 public abstract class EmptyOpenMSPSyncListener implements OpenMSPSyncListener { 00043 00047 public EmptyOpenMSPSyncListener() { 00048 } 00049 00050 public void initListener() throws OpenMSPException { 00051 } 00052 00053 /* (non-Javadoc) 00054 * @see org.openmobileis.synchro.openmsp.client.OpenMSPSyncListener#endSync() 00055 */ 00056 public void endSync() throws OpenMSPException { 00057 } 00058 00059 /* (non-Javadoc) 00060 * @see org.openmobileis.synchro.openmsp.client.OpenMSPSyncListener#getSynchroStatus() 00061 */ 00062 public int getSynchroStatus() { 00063 return OpenMSPSyncListener.SYNCHRO_OK; 00064 } 00065 00066 /* (non-Javadoc) 00067 * @see org.openmobileis.synchro.openmsp.client.OpenMSPSyncListener#isSyncOK() 00068 */ 00069 public boolean isSyncOK() { 00070 return true; 00071 } 00072 00073 /* (non-Javadoc) 00074 * @see org.openmobileis.synchro.openmsp.client.OpenMSPSyncListener#notifySynchroFailure() 00075 */ 00076 public void notifySynchroFailure() { 00077 } 00078 00079 /* (non-Javadoc) 00080 * @see org.openmobileis.synchro.openmsp.client.OpenMSPSyncListener#receiveMapCommand(org.openmobileis.synchro.openmsp.protocol.ContainerMessage) 00081 */ 00082 public void receiveMapCommand(ContainerMessage mapContainer) throws OpenMSPException { 00083 } 00084 00085 /* (non-Javadoc) 00086 * @see org.openmobileis.synchro.openmsp.client.OpenMSPSyncListener#receiveResultCommand(org.openmobileis.synchro.openmsp.protocol.ContainerMessage, org.openmobileis.synchro.openmsp.protocol.ContainerMessage) 00087 */ 00088 public void receiveResultCommand(ContainerMessage resultContainer, ContainerMessage initialCommand) throws OpenMSPException { 00089 } 00090 00091 /* (non-Javadoc) 00092 * @see org.openmobileis.synchro.openmsp.client.OpenMSPSyncListener#receiveStatusCommand(org.openmobileis.synchro.openmsp.protocol.Status, org.openmobileis.synchro.openmsp.protocol.ContainerMessage) 00093 */ 00094 public void receiveStatusCommand(Status statusCommande, ContainerMessage initialCommand) throws OpenMSPException { 00095 } 00096 00097 /* (non-Javadoc) 00098 * @see org.openmobileis.synchro.openmsp.client.OpenMSPSyncListener#receiveSyncCommand(org.openmobileis.synchro.openmsp.protocol.ContainerMessage, long) 00099 */ 00100 public void receiveSyncCommand(ContainerMessage syncContainer, long newSyncNumber) throws OpenMSPException { 00101 } 00102 00110 public void receiveGetCommand( Credential cred, ContainerMessage replaceContainer, long newSyncNumber) throws OpenMSPException { 00111 00112 } 00113 00114 /* (non-Javadoc) 00115 * @see org.openmobileis.synchro.openmsp.client.OpenMSPSyncListener#sendData(org.openmobileis.synchro.openmsp.protocol.Message) 00116 */ 00117 public void sendData(Message message) throws OpenMSPException { 00118 } 00119 00120 /* (non-Javadoc) 00121 * @see org.openmobileis.synchro.openmsp.client.OpenMSPSyncListener#startSync(org.openmobileis.synchro.security.auth.Credential, org.openmobileis.synchro.client.SynchroDescriptor) 00122 */ 00123 public void startSync(Credential cred, SynchroDescriptor synchrodescriptor) throws OpenMSPException { 00124 } 00125 00126 }