src/include/common/syncml/core/AlertCode.h

00001 /*
00002  * Copyright (C) 2003-2007 Funambol, Inc
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 version 2 as
00006  * published by the Free Software Foundation.
00007  *
00008  * This program is distributed in the hope that it will be useful,
00009  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00010  * MERCHANTABILITY, TITLE, NONINFRINGEMENT or FITNESS FOR A PARTICULAR
00011  * PURPOSE.  See the GNU General Public License for more details.
00012  *
00013  * You should have received a copy of the GNU General Public License
00014  * along with this program; if not, write to the Free Software
00015  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
00016  * 02111-1307  USA
00017  */
00018 
00019 #ifndef INCL_ALERT_CODE
00020 #define INCL_ALERT_CODE
00021 
00023 #include "base/fscapi.h"
00024 
00025 
00026 #define DISPLAY                        100
00027 #define TWO_WAY                        200
00028 #define SLOW                           201
00029 #define ONE_WAY_FROM_CLIENT            202
00030 #define REFRESH_FROM_CLIENT            203
00031 #define ONE_WAY_FROM_SERVER            204
00032 #define REFRESH_FROM_SERVER            205
00033 #define TWO_WAY_BY_SERVER              206
00034 #define ONE_WAY_FROM_CLIENT_BY_SERVER  207
00035 #define REFRESH_FROM_CLIENT_BY_SERVER  208
00036 #define ONE_WAY_FROM_SERVER_BY_SERVER  209
00037 #define REFRESH_FROM_SERVER_BY_SERVER  210
00038 #define RESULT_ALERT                   221
00039 #define NEXT_MESSAGE                   222
00040 #define NO_END_OF_DATA                 223
00041 
00042 
00043 
00064 BOOL isInitializationCode(int code) {
00065   return (  (code == TWO_WAY                      )
00066          || (code == SLOW                         )
00067          || (code == ONE_WAY_FROM_CLIENT          )
00068          || (code == REFRESH_FROM_CLIENT          )
00069          || (code == ONE_WAY_FROM_SERVER          )
00070          || (code == REFRESH_FROM_SERVER          )
00071          || (code == TWO_WAY_BY_SERVER            )
00072          || (code == ONE_WAY_FROM_CLIENT_BY_SERVER)
00073          || (code == REFRESH_FROM_CLIENT_BY_SERVER)
00074          || (code == ONE_WAY_FROM_SERVER_BY_SERVER)
00075          || (code == REFRESH_FROM_SERVER_BY_SERVER)
00076          );
00077 }
00078 
00079 
00092 BOOL isClientOnlyCode(int code) {
00093   return (  (code == ONE_WAY_FROM_CLIENT)
00094          || (code == REFRESH_FROM_CLIENT)
00095          );
00096 }
00097 
00099 #endif // INCL_ALERT_CODE

Generated on Tue Oct 30 15:11:26 2007 for Funambol C++ Client Library by  doxygen 1.5.2