src/include/common/syncml/core/AlertCode.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_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 Fri Apr 27 12:29:19 2007 for Funambol C++ Client Library by  doxygen 1.5.2