src/include/common/event/constants.h

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_EVENT_CONSTANTS
00020 #define INCL_EVENT_CONSTANTS
00021 
00023 //
00024 // Event Codes
00025 //
00026 
00027 //Sync Events
00028 #define SYNC_BEGIN                  0x0001
00029 #define SYNC_END                    0x0002
00030 #define SYNC_ERROR                  0x0003
00031 #define SEND_INITIALIZATION         0x0004
00032 #define SEND_MODIFICATION           0x0005
00033 #define SEND_FINALIZATION           0x0006
00034 
00035 //Transport Events
00036 #define SEND_DATA_BEGIN             0x0011
00037 #define SEND_DATA_END               0x0012
00038 #define RECEIVE_DATA_BEGIN          0x0013
00039 #define DATA_RECEIVED               0x0014
00040 #define RECEIVE_DATA_END            0x0015
00041 
00042 //Sync Source Events
00043 #define SYNC_SOURCE_BEGIN              0x0021
00044 #define SYNC_SOURCE_END                0x0022
00045 #define SYNC_SOURCE_SYNCMODE_REQUESTED 0x0023
00046 #define SYNC_SOURCE_TOTAL_CLIENT_ITEMS 0x0024
00047 #define SYNC_SOURCE_TOTAL_SERVER_ITEMS 0x0025
00048 
00049 //Sync Item Events
00050 #define ITEM_ADDED_BY_SERVER        0x0031
00051 #define ITEM_DELETED_BY_SERVER      0x0032
00052 #define ITEM_UPDATED_BY_SERVER      0x0033
00053 #define ITEM_ADDED_BY_CLIENT        0x0034
00054 #define ITEM_DELETED_BY_CLIENT      0x0035
00055 #define ITEM_UPDATED_BY_CLIENT      0x0036
00056 
00057 //Sync Status Events
00058 #define CLIENT_STATUS               0x0041
00059 #define SERVER_STATUS               0x0042
00060 
00061 
00062 #define DIM_ERROR_MSG               1024
00063 #define DIM_COMMAND                 128
00064 
00065 //Listener Families
00066 #define SYNC_LISTENER               0
00067 #define SYNC_SOURCE_LISTENER        1
00068 #define SYNC_STATUS_LISTENER        2
00069 #define SYNC_TRANSPORT_LISTENER     3
00070 #define SYNC_ITEM_LISTENER          4
00071 
00072 
00074 #endif

Generated on Fri Apr 27 12:29:18 2007 for Funambol C++ Client Library by  doxygen 1.5.2