src/include/common/base/messages.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_BASE_MESSAGES
00020 #define INCL_BASE_MESSAGES
00021 
00023 #include "base/fscapi.h"
00024 
00025 //
00026 // NOTE: these messages are client specific and targeted to the users (for
00027 // example to being displayed to the user). They may replace corresponding
00028 // ERRMSG_*** messages which are instead log-oriented
00029 //
00030 
00031 #define MSG_CONFIG_SUCCESSFULLY_READ    "Configuration successfully read"
00032 #define MSG_INITIALIZATATION_MESSAGE    "Initialization message:"
00033 #define MSG_UNKNOWN                     "Unknown"
00034 #define MSG_PREPARING_SYNC              "Preparing synchronization of %s..."
00035 #define MSG_SYNC_URL                    "Synchronization URL: %s"
00036 #define MSG_NOT_AUTHORIZED              "Sorry, you are not authorized to synchronize. Check the username/password settings."
00037 #define MSG_DB_NOT_FOUND                "Remote database %s not found. Check the remote settings."
00038 #define MSG_INVALID_URL                 "Invalid synchronization URL. Check the connection settings."
00039 #define MSG_MODIFICATION_MESSAGE        "Modification message:"
00040 #define MSG_OUT_OF_MEMORY               "Out of memory!"
00041 #define MSG_APPLYING_MODIFICATIONS      "Applying server modifications: %ld new item(s), %ld updated item(s), %ld deleted item(s)"
00042 #define MSG_ADDING_ITEMS                "Adding %ld item(s)"
00043 #define MSG_UPDATING_ITEMS              "Updating %ld item(s)"
00044 #define MSG_DELETING_ITEMS              "Deleting %ld item(s)"
00045 #define MSG_SYNCHRONIZING               "Synchronizing..."
00046 #define MSG_SLOW_SYNC                   "Performing slow synchronization"
00047 #define MSG_TWOWAY_SYNC                 "Performing two-way synchronization"
00048 #define MSG_SYNC_FAIL                   "Synchronization failed"
00049 #define MSG_COMMITTING_CHANGES          "Committing changes"
00050 #define MSG_SYNC_SUCCESS                "Synchronization successful"
00051 #define MSG_FULL_DATE_TIME              "%s, %s, %s"
00052 
00053 
00054 // messages for the logging
00055 #define INITIALIZING                            "Initializing"
00056 #define INITIALIZATION_DONE                     "Initialization done"
00057 #define SERVER_ALERT_CODE                       "The server alert code for %s is %i"
00058 #define SYNCHRONIZING                           "Synchronizing %s"
00059 #define PREPARING_FAST_SYNC                     "Preparing fast sync for %s"
00060 #define PREPARING_SLOW_SYNC                     "Preparing slow sync for %s"
00061 #define PREPARING_SYNC_REFRESH_FROM_SERVER      "Preparing refresh from server sync for %s"
00062 #define PREPARING_SYNC_ONE_WAY_FROM_SERVER      "Preparing one way from server sync for %s"
00063 #define DETECTED_SLOW                           "Detected %i items"
00064 #define DETECTED_FAST                           "Detected %i new items, %i updated items, %i deleted items"
00065 #define SENDING_MODIFICATION                    "Sending modifications"
00066 #define SENDING_ALERT                           "Sending alert to get server modifications"
00067 #define RETURNED_NUM_ITEMS                      "Returned %i new items, %i updated items, %i deleted items for %s"
00068 #define MODIFICATION_DONE                       "Modification done"
00069 #define SENDING_MAPPING                         "Sending mapping"
00070 #define SYNCHRONIZATION_DONE                    "Synchronization done"
00071 #define RESPURI                                 "url from response to inizialization-message: %s"
00072 #define MESSAGE_SENT                            "Message sent"
00073 #define READING_RESPONSE                        "Reading response..."   
00074 
00076 #endif

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