EmptyOpenMSPSyncListener.java

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.synchro.client.SynchroDescriptor;
00031 import org.openmobileis.synchro.openmsp.OpenMSPException;
00032 import org.openmobileis.synchro.openmsp.protocol.ContainerMessage;
00033 import org.openmobileis.synchro.openmsp.protocol.Message;
00034 import org.openmobileis.synchro.openmsp.protocol.Status;
00035 import org.openmobileis.synchro.security.auth.Credential;
00036 
00041 public abstract class EmptyOpenMSPSyncListener implements OpenMSPSyncListener {
00042 
00046         public EmptyOpenMSPSyncListener() {
00047         }
00048  
00049         public void initListener() throws OpenMSPException      {
00050   }
00051 
00052         /* (non-Javadoc)
00053          * @see org.openmobileis.synchro.openmsp.client.OpenMSPSyncListener#endSync()
00054          */
00055         public void endSync() throws OpenMSPException {
00056         }
00057 
00058         /* (non-Javadoc)
00059          * @see org.openmobileis.synchro.openmsp.client.OpenMSPSyncListener#getSynchroStatus()
00060          */
00061         public int getSynchroStatus() {
00062                 return OpenMSPSyncListener.SYNCHRO_OK;
00063         }
00064 
00065         /* (non-Javadoc)
00066          * @see org.openmobileis.synchro.openmsp.client.OpenMSPSyncListener#isSyncOK()
00067          */
00068         public boolean isSyncOK() {
00069                 return true;
00070         }
00071 
00072         /* (non-Javadoc)
00073          * @see org.openmobileis.synchro.openmsp.client.OpenMSPSyncListener#notifySynchroFailure()
00074          */
00075         public void notifySynchroFailure() {
00076         }
00077 
00078         /* (non-Javadoc)
00079          * @see org.openmobileis.synchro.openmsp.client.OpenMSPSyncListener#receiveMapCommand(org.openmobileis.synchro.openmsp.protocol.ContainerMessage)
00080          */
00081         public void receiveMapCommand(ContainerMessage mapContainer) throws OpenMSPException {
00082         }
00083 
00084         /* (non-Javadoc)
00085          * @see org.openmobileis.synchro.openmsp.client.OpenMSPSyncListener#receiveResultCommand(org.openmobileis.synchro.openmsp.protocol.ContainerMessage, org.openmobileis.synchro.openmsp.protocol.ContainerMessage)
00086          */
00087         public void receiveResultCommand(ContainerMessage resultContainer, ContainerMessage initialCommand) throws OpenMSPException {
00088         }
00089 
00090         /* (non-Javadoc)
00091          * @see org.openmobileis.synchro.openmsp.client.OpenMSPSyncListener#receiveStatusCommand(org.openmobileis.synchro.openmsp.protocol.Status, org.openmobileis.synchro.openmsp.protocol.ContainerMessage)
00092          */
00093         public void receiveStatusCommand(Status statusCommande, ContainerMessage initialCommand) throws OpenMSPException {
00094         }
00095 
00096         /* (non-Javadoc)
00097          * @see org.openmobileis.synchro.openmsp.client.OpenMSPSyncListener#receiveSyncCommand(org.openmobileis.synchro.openmsp.protocol.ContainerMessage, long)
00098          */
00099         public void receiveSyncCommand(ContainerMessage syncContainer, long newSyncNumber) throws OpenMSPException {
00100         }
00101 
00109         public void receiveGetCommand( Credential cred, ContainerMessage replaceContainer, long newSyncNumber)  throws OpenMSPException {
00110                 
00111         }
00112 
00113         /* (non-Javadoc)
00114          * @see org.openmobileis.synchro.openmsp.client.OpenMSPSyncListener#sendData(org.openmobileis.synchro.openmsp.protocol.Message)
00115          */
00116         public void sendData(Message message) throws OpenMSPException {
00117         }
00118 
00119         /* (non-Javadoc)
00120          * @see org.openmobileis.synchro.openmsp.client.OpenMSPSyncListener#startSync(org.openmobileis.synchro.security.auth.Credential, org.openmobileis.synchro.client.SynchroDescriptor)
00121          */
00122         public void startSync(Credential cred, SynchroDescriptor synchrodescriptor) throws OpenMSPException {
00123         }
00124 
00125 }

Generated on Mon Jan 11 21:19:14 2010 for OpenMobileIS by  doxygen 1.5.4