D:/develop/v65/clients/outlook/install/output/export/funambol/clients/outlook/mainclientDll/src/include/outlook/defs.h

00001 /*
00002  * Funambol is a mobile platform developed by Funambol, Inc. 
00003  * Copyright (C) 2003 - 2007 Funambol, Inc.
00004  * 
00005  * This program is free software; you can redistribute it and/or modify it under
00006  * the terms of the GNU Affero General Public License version 3 as published by
00007  * the Free Software Foundation with the addition of the following permission 
00008  * added to Section 15 as permitted in Section 7(a): FOR ANY PART OF THE COVERED
00009  * WORK IN WHICH THE COPYRIGHT IS OWNED BY FUNAMBOL, FUNAMBOL DISCLAIMS THE 
00010  * WARRANTY OF NON INFRINGEMENT  OF THIRD PARTY RIGHTS.
00011  * 
00012  * This program is distributed in the hope that it will be useful, but WITHOUT
00013  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
00014  * FOR A PARTICULAR PURPOSE.  See the GNU General Public License for more
00015  * details.
00016  * 
00017  * You should have received a copy of the GNU Affero General Public License 
00018  * along with this program; if not, see http://www.gnu.org/licenses or write to
00019  * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
00020  * MA 02110-1301 USA.
00021  * 
00022  * You can contact Funambol, Inc. headquarters at 643 Bair Island Road, Suite 
00023  * 305, Redwood City, CA 94063, USA, or at email address info@funambol.com.
00024  * 
00025  * The interactive user interfaces in modified source and object code versions
00026  * of this program must display Appropriate Legal Notices, as required under
00027  * Section 5 of the GNU Affero General Public License version 3.
00028  * 
00029  * In accordance with Section 7(b) of the GNU Affero General Public License
00030  * version 3, these Appropriate Legal Notices must retain the display of the
00031  * "Powered by Funambol" logo. If the display of the logo is not reasonably 
00032  * feasible for technical reasons, the Appropriate Legal Notices must display
00033  * the words "Powered by Funambol".
00034  */
00035 
00036 #ifndef INCL_OUTLOOKDEFS
00037 #define INCL_OUTLOOKDEFS
00038 
00044 // Outlook parameters
00045 #define OL_APPLICATION                     L"Outlook.Application"
00046 #define OL_PROFILE                         L""                              
00047 #define OL_PASSWORD                        L""                              
00048 #define OL_SHOW_DIALOG                      true                            
00049 #define OL_NEW_SESSION                      false                           
00050 #define MAPI                               L"MAPI"
00051 
00052 // Date/time definitions
00053 #define USE_UTC                             TRUE                            
00054 #define USE_CHANGE_DAY                      TRUE                            
00055 #define REFERRED_MAX_DATE                   949998.000000                   
00056 #define LIMIT_MAX_DATE                      767011.000000                   
00059 // Redemption parameters
00060 
00061 #define RED_SAFEMAIL                        "Redemption.SafeMailItem"
00062 #define RED_SAFEAPPOINTMENT                 "Redemption.SafeAppointmentItem"
00063 #define RED_SAFECONTACT                     "Redemption.SafeContactItem"
00064 #define RED_SAFETASK                        "Redemption.SafeTaskItem"
00065 #define RED_SAFENOTE                        "Redemption.SafeNoteItem"
00066 
00067 #define OUTLOOK_2007                       L"Outlook 2007"
00068 #define OUTLOOK_2003                       L"Outlook 2003"
00069 #define OUTLOOK_XP                         L"Outlook XP (2002)"
00070 #define OUTLOOK_2000                       L"Outlook 2000"
00071 #define OUTLOOK_98                         L"Outlook 98"
00072 #define OUTLOOK_97                         L"Outlook 97"
00073 
00074 
00075 // Error messages for Outlook
00076 #define ERR_OUTLOOK                         "Outlook Error."
00077 #define ERR_OUTLOOK_OPEN                    "Unable to instantiate Microsoft Outlook.\nPlease check if Outlook is installed and correctly configured."
00078 #define ERR_OUTLOOK_LOGOFF                  "Outlook Error: unable to log off."
00079 #define ERR_OUTLOOK_CLEANUP                 "Outlook Error cleaning up."
00080 #define ERR_OUTLOOK_RELEASE_COMOBJECTS      "Error releasing COM pointers."
00081 #define ERR_OUTLOOK_FOLDER_ASSIGN           "Unable to initialize Outlook Folder."
00082 #define ERR_OUTLOOK_ITEM_ASSIGN             "Unable to initialize Outlook Item."
00083 #define ERR_OUTLOOK_SAFEITEM                "Unable to initialize Redemption safe item."
00084 #define ERR_OUTLOOK_MAPIUTILS               "Error accessing Redemption.MAPIUtils object"
00085 #define ERR_OUTLOOK_MAPIUTILS_BODY          "Could not get 'body' value from Redemption.MAPIUtils"
00086 #define ERR_OUTLOOK_RDOSESSION              "Error accessing Redemption.RDOSession object"
00087 #define ERR_OUTLOOK_RDOSESSION_ADDRESS      "Error retrieving address from Redemption.RDOSession AddressList"
00088 #define ERR_OUTLOOK_CONTACT_NOT_SET         "ClientContact not correctly initialized"
00089 #define ERR_OUTLOOK_APPOINTMENT_NOT_SET     "ClientAppointment not correctly initialized"
00090 #define ERR_OUTLOOK_TASK_NOT_SET            "ClientTask not correctly initialized"
00091 #define ERR_OUTLOOK_NOTE_NOT_SET            "ClientNote not correctly initialized"
00092 #define ERR_OUTLOOK_MAIL_NOT_SET            "ClientMail not correctly initialized"
00093 #define ERR_OUTLOOK_NOT_LOGGED              "Not yet logged on Outlook application."
00094 #define ERR_OUTLOOK_GET_PROFILENAME         "Could not retrieve name associated to current Outlook profile."
00095 #define ERR_OUTLOOK_BAD_ITEM                "Item #%d in folder \"%ls\" is not a %ls item. Please check if Outlook is working properly!"
00096 #define ERR_OUTLOOK_BAD_ITEM_MSG            "Outlook is not responding correctly. Please reboot your machine and retry."
00097 
00098 
00099 #define ERR_OUTLOOK_DEFFOLDER_NOT_FOUND     "Could not find default %ls folder."
00100 #define ERR_OUTLOOK_IDFOLDER_NOT_FOUND      "Could not find folder: ID = %ls."
00101 #define ERR_OUTLOOK_SUBFOLDER_NOT_FOUND     "Subfolder not found (index %d) inside folder %ls."
00102 #define ERR_OUTLOOK_SUBFOLDER_NAME          "Subfolder not found: %ls inside folder %ls."
00103 #define ERR_OUTLOOK_SUBFOLDER_CREATE        "Could not create subfolder %ls of type %ls inside folder %ls: type mismatch."
00104 #define ERR_OUTLOOK_SUBFOLDER_COUNT         "Error retrieving the number of Subfolders from folder %ls."
00105 #define ERR_OUTLOOK_NO_ROOTFOLDER           "Could not find any root folder: please create at least one Outlook data file."
00106 #define ERR_OUTLOOK_ROOTFOLDER_NAME         "Folder not found: '%ls' under root folder."
00107 #define ERR_OUTLOOK_ROOTFOLDER_NOT_FOUND    "Folder not found (index %d) under root folder."
00108 
00109 #define ERR_OUTLOOK_ITEM_NOT_FOUND          "Item not found (index %d) inside folder %ls."
00110 #define ERR_OUTLOOK_ITEM_CREATE             "Could not create item (index %d) inside folder %ls."
00111 #define ERR_OUTLOOK_ITEM_SAVE               "Could not save %ls item."
00112 #define ERR_OUTLOOK_ITEM_DELETE             "Could not delete %ls item: %ls."
00113 #define ERR_OUTLOOK_IDITEM_NOT_FOUND        "Could not find item: ID = %ls."
00114 #define ERR_OUTLOOK_ITEMS_COUNT             "Error retrieving the number of Items from folder %ls."
00115 
00116 #define ERR_OUTLOOK_INVALID_VERSION         "Outlook version not supported: %ls"
00117 #define ERR_OUTLOOK_BAD_FOLDER_TYPE         "Selected folder is not a %ls folder."
00118 #define ERR_OUTLOOK_BAD_ITEMTYPE            "Invalid item type: %ls."
00119 #define ERR_OUTLOOK_BAD_OLTYPE              "Invalid Outlook item type: %d."
00120 #define ERR_OUTLOOK_BAD_PATH                "Invalid Folder path: %ls."
00121 #define ERR_OUTLOOK_PATH_TYPE_MISMATCH      "Folder %ls is not a %ls folder: type mismatch."
00122 
00123 #define ERR_OUTLOOK_PROP_MAP                "Error creating %ls propertyMap - stopped at property #%d."
00124 #define ERR_OUTLOOK_PROP_VALUE              "Error retrieving %ls item property: %ls."
00125 #define ERR_OUTLOOK_PROP_VALUE_SET          "Error setting property %ls = %ls for item %ls."
00126 #define ERR_OUTLOOK_PROP_NOT_FOUND          "Property '%ls' not found for item %ls."
00127 #define ERR_OUTLOOK_PROP_VALUE_REQUIRED     "Property '%ls' cannot be empty for %ls."
00128 #define ERR_OUTLOOK_REC_PROP_NOT_FOUND      "Recurrence property '%ls' not found."
00129 
00130 #define ERR_OUTLOOK_REC_SAVE                "Could not save recurrence property '%ls': wrong format."
00131 #define ERR_OUTLOOK_REC_NOT_SET             "Could not %ls recurrence pattern: recurrence not yet set."
00132 #define ERR_OUTLOOK_EXC_PROP_VALUE          "Error retrieving appointment exception property: %ls."
00133 #define ERR_OUTLOOK_CLEAR_REC               "Clould not clear the recurrence pattern of %ls item \"%ls\""
00134 
00135 #define ERR_OUTLOOK_EXAPP_INIT              "Error getting appointment item pointer from appointment exception."
00136 #define ERR_OUTLOOK_EXAPP_SAVE              "Error saving the occurrence of appointment exception."
00137 #define ERR_OUTLOOK_EXAPP_DELETE            "Error deleting the occurrence of appointment exception."
00138 #define ERR_OUTLOOK_EXAPP_PROP_SET          "Error setting appointment exception property \"%ls\"."
00139 
00140 #define ERR_OUTLOOK_EXCEPTION               "Outlook Exception. - %s"
00141 #define ERR_OUTLOOK_FATAL_EXCEPTION         "Outlook Fatal Exception! - %s"
00142 #define ERR_COM_POINTER                     "COM Pointer Error. Code = %08lx: %ls"
00143 
00144 // Other messages:
00145 #define INFO_OUTLOOK_OPENED                 "Outlook session opened successfully! Using: %ls."
00146 #define INFO_OUTLOOK_CLOSED                 "Outlook session closed successfully."
00147 #define INFO_OUTLOOK_REMINDER_RESET         "Cannot save reminder time for task NOT in the default folder! Reminder has been reset on item '%ls'."
00148 #define DBG_OUTLOOK_FOLDER_NOT_SELECTED     "Folder not correctly selected."
00149 #define DBG_OUTLOOK_DLIST_ITEM              "Found a Distribution_list item in %ls folder \"%ls\" (index #%d) -> Item ignored."
00150 #define DBG_OUTLOOK_BAD_NOTE_ITEM           "Found an item in notes folder \"%ls\" which is not a text note (index #%d) -> Item ignored."
00151 #define DBG_OUTLOOK_NOT_LOGGED              "No Logoff: %ls (COM error %08lx)"
00152      // cond DEV
00153 
00154 
00155 
00156 // Import libraries: Outlook Object Model and Redemption.
00157 // --------------------------------------------------------
00158 // Type Libraries are referenced by their unique LIBIDs.
00159 // Redemption.dll is used to bypass Outlook security patch
00160 // (see www.dimastr.com/redemption for details)
00161 // Note:
00162 // LIBRARIES MUST BE REGISTERED IN THE SYSTEM.
00163 // - mso.dll, msoutl.olb: are registered during Microsoft Outlook installation
00164 // - Redemption.dll: is registered during Funambol Outlook Plugin installation
00165 //                   (or manually launching "regsvr32 Redemption.dll")
00166 
00167 #define outlookNamespace                    no_namespace
00168 #define redemptionNamespace                 rename_namespace("Redemption")
00169 
00170 
00172 #import "libid:2DF8D04C-5BFA-101B-BDE5-00AA0044DE52" outlookNamespace \
00173         rename("DocumentProperties", "OlDocumentProperties") \
00174         rename("RGB", "OlRGB")
00175 
00176 
00177 #import "libid:00062FFF-0000-0000-C000-000000000046" outlookNamespace \
00178         rename("CopyFile", "OlCopyFile")
00179 
00181 #import "libid:2D5E2D34-BED5-4B9F-9793-A31E26E6806E" redemptionNamespace
00182 
00183 
00186 #endif

Generated on Mon Feb 4 09:50:49 2008 for Funambol Outlook Plug-in Library by  doxygen 1.5.2