00001 /* 00002 * Copyright (C) 2003-2007 Funambol 00003 * 00004 * This program is free software; you can redistribute it and/or modify 00005 * it under the terms of the GNU General Public License as published by 00006 * the Free Software Foundation; either version 2 of the License, or 00007 * (at your option) any later version. 00008 * 00009 * This program is distributed in the hope that it will be useful, 00010 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00011 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00012 * GNU General Public License for more details. 00013 * 00014 * You should have received a copy of the GNU General Public License 00015 * along with this program; if not, write to the Free Software 00016 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 00017 */ 00018 00019 #ifndef INCL_SET_LISTENER 00020 #define INCL_SET_LISTENER 00021 00023 #include "event/SyncListener.h" 00024 #include "event/SyncSourceListener.h" 00025 #include "event/SyncItemListener.h" 00026 #include "event/SyncStatusListener.h" 00027 #include "event/TransportListener.h" 00028 00029 /* 00030 * A set of global functions to either set or unset Listeners 00031 * for various events. 00032 */ 00033 00034 // Set the SyncEvent Listener 00035 void setSyncListener(SyncListener* listener); 00036 00037 // Set the TransportEvent Listener 00038 void setTransportListener(TransportListener* listener); 00039 00040 // Set the SyncSourceEvent Listener 00041 void setSyncSourceListener(SyncSourceListener* listener); 00042 00043 // Set the SyncItemEvent Listener 00044 void setSyncItemListener(SyncItemListener* listener); 00045 00046 // Set the SyncStatusEvent Listener 00047 void setSyncStatusListener(SyncStatusListener* listener); 00048 00049 00050 //removes the SyncEvent Listener 00051 void unsetSyncListener(); 00052 00053 // Removes the TransportEvent Listener 00054 void unsetTransportListener(); 00055 00056 // Removes the SyncSourceEvent Listener 00057 void unsetSyncSourceListener(); 00058 00059 // Removes the SyncItemEvent Listener 00060 void unsetSyncItemListener(); 00061 00062 // Removes the SyncStatusEvent Listener 00063 void unsetSyncStatusListener(); 00064 00065 00067 #endif