00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034
00035
00036 #ifndef INCL_CUSTOMIZATION
00037 #define INCL_CUSTOMIZATION
00038
00039 #include "vocl/appdefs.h"
00040 #include <string>
00041 #include "winmaincpp.h"
00042
00043
00044 #define APP_NAME "Funambol"
00045
00046
00047 #define PROGRAM_NAME "Funambol Outlook Sync Client"
00048 #define WPROGRAM_NAME TEXT(PROGRAM_NAME)
00049
00050
00051 #define PLUGIN_UI_TITLE PROGRAM_NAME
00052 #define CONFIG_WINDOW_TITLE _T(PROGRAM_NAME) _T(" Options")
00053 #define MSGBOX_ERROR_TITLE PROGRAM_NAME " Error"
00054 #define WMSGBOX_ERROR_TITLE TEXT(PROGRAM_NAME) TEXT(" Error")
00055
00056
00057 #define DEFAULT_URL "http://my.funambol.com/sync"
00058 #define DEFAULT_USERNAME ""
00059 #define DEFAULT_PASSWORD ""
00060
00061
00062
00063 #define ADDIN_MENU_LABEL L"Funa&mbol"
00064 #define LAST_COMPATIBLE_VERSION 80207
00066 // The program folder
00067 #define FUNAMBOL_DIR_NAME TEXT("Funambol")
00068
00069
00070 #define ABOUT_SCREEN_SHOW_COPYRIGHT 1
00071 #define ABOUT_SCREEN_TEXT_COPYRIGHT "Copyright © 2003 - 2010 Funambol, Inc.\nAll rights reserved."
00072
00073 #define ABOUT_SCREEN_SHOW_MAIN_WEB_SITE 1
00074 #define ABOUT_SCREEN_TEXT_MAIN_WEB_SITE "www.funambol.com"
00075
00076 #define ABOUT_SCREEN_SHOW_LICENSE 1
00077 #define ABOUT_SCREEN_SHOW_POWERED_BY 0
00080 // Others
00081 #define VIEW_USER_GUIDE_LINK 0
00082 #define USER_GUIDE_LINK "http://funambol.com/docs/v80/funambol-outlook-sync-client-user-guide.pdf"
00083 #define PROGRAM_NAME_EXE "OutlookPlugin.exe" // The application to run
00084 #define SCHED_COMMENT TEXT(PROGRAM_NAME) TEXT(" scheduler")
00085 #define OL_PLUGIN_LOG_NAME "synclog.txt"
00086 #define ENABLE_ENCRYPTION_SETTINGS 1
00087 #define SHOW_ADVANCED_SETTINGS 1
00088 #define DISPLAY_SLOWSYNC_WARNING 0
00089 #define ASK_SLOW_TIMEOUT 25
00090 #define TIME_OUT_ABORT 8
00091 #define SCHED_DEFAULT_REPEAT_MINS 15
00092 #define SCHED_DURATION_DAYS 1
00093 #define SYNC_TIMEOUT 120
00094 #define MAX_LOG_SIZE 3000000
00095 #define MAX_SYNCML_MSG_SIZE 125000
00096 #define RESPONSE_TIMEOUT 900
00097 #define DYNAMICALLY_SHOW_PICTURES 1
00098 #define SOURCE_ORDER_IN_REGISTRY "contact,appointment,task,note"
00099
00100
00101 #define CONTACT_SOURCE_ENABLED true
00102 #define APPOINTMENT_SOURCE_ENABLED true
00103 #define TASK_SOURCE_ENABLED true
00104 #define NOTE_SOURCE_ENABLED true
00105 #define PICTURE_SOURCE_ENABLED true
00106
00107 #define SCHEDULED_MINUTES_VALUES "5,10,15(default),30,45"
00108 #define SCHEDULED_HOURS_VALUES "1,2,4,6,8,12,24"
00109
00110 #define ENABLE_COMPRESSION true
00111
00112
00113
00114
00115
00116 #define PLUGIN_ROOT_CONTEXT "Funambol/OutlookClient"
00117
00118
00119 #define UP_URL_RESOURCE "/sapi/profile/client?action=get-update-info"
00120 #define CLIENT_PLATFORM "outlook"
00121
00122
00123 #include "base/util/StringBuffer.h"
00124
00125
00126 class DLLCustomization {
00127 public:
00128 static const bool defaultUseSubfolders = true;
00129 static const bool removeFilteredDataOnCleanup = true;
00130 static const bool sendMovedAsNew = false;
00131 static const bool dontSendFilteredItemsAsDeleted = true;
00132 static const bool neverSendPhotos = false;
00133 static const bool saveFileAs = false;
00134 static const bool syncAttendees = true;
00135 static const bool sendTimezone = true;
00136 static const bool continueOnSlowWithOneWay = false;
00137 static const bool warnOnLargeDelete = false;
00139
00140 static bool validateExtraProperty(const std::wstring & name) {
00141 const wchar_t * n = name.c_str();
00142 return
00143 (!wcsncmp(n,X_PREFIX,wcslen(X_PREFIX)) &&
00144 wcsncmp(n,X_FUNAMBOL_PREFIX,wcslen(X_FUNAMBOL_PREFIX)) &&
00145 wcsncmp(n,X_MICROSOFT_PREFIX,wcslen(X_MICROSOFT_PREFIX)) &&
00146 wcscmp(n,X_WM_CLIENT_CONTAINER_ID) && wcscmp(n,X_WM_CLIENT_CONTAINER_NAME))
00147 ;
00148 }
00149
00150
00151 static const char * sourceDefaultEncoding;
00152 static const bool sourceNotesDefaultSif;
00153 static const char * sourceNotesSifUri;
00154 static const char * sourceNotesVnoteUri;
00155 static const char * sourceTasksVcalUri;
00156 static const char * sourceCalendarVcalUri;
00157 static const char * sourceContactsVcardUri;
00158 static const char * sourcePicturesUri;
00160
00161 static const bool shouldFakeOldFunambolSwv = false;
00162 static const int fakeOldFunambolSwv = 80100;
00164 };
00165
00166 #endif