aboutsummaryrefslogtreecommitdiffstats
path: root/src/native/addrbook/msoutlook/com/MsOutlookAddrBookServer.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'src/native/addrbook/msoutlook/com/MsOutlookAddrBookServer.cxx')
-rw-r--r--src/native/addrbook/msoutlook/com/MsOutlookAddrBookServer.cxx12
1 files changed, 11 insertions, 1 deletions
diff --git a/src/native/addrbook/msoutlook/com/MsOutlookAddrBookServer.cxx b/src/native/addrbook/msoutlook/com/MsOutlookAddrBookServer.cxx
index 6a7300e..07f7d0b 100644
--- a/src/native/addrbook/msoutlook/com/MsOutlookAddrBookServer.cxx
+++ b/src/native/addrbook/msoutlook/com/MsOutlookAddrBookServer.cxx
@@ -15,7 +15,7 @@
#include "../StringUtils.h"
#include "../MsOutlookAddrBookContactQuery.h"
#include "../MsOutlookCalendar.h"
-
+#include "../MsOutlookUtils.h"
/**
* Instanciates a new MsOutlookAddrBookServer.
*/
@@ -113,6 +113,7 @@ HRESULT STDMETHODCALLTYPE MsOutlookAddrBookServer::foreachMailUser(
HRESULT hr = E_FAIL;
+ MsOutlookUtils_log("Executing query.");
IMsOutlookAddrBookClient * msOutlookAddrBookClient = NULL;
if((hr = CoCreateInstance(
CLSID_MsOutlookAddrBookClient,
@@ -129,6 +130,10 @@ HRESULT STDMETHODCALLTYPE MsOutlookAddrBookServer::foreachMailUser(
msOutlookAddrBookClient->Release();
}
+ else
+ {
+ MsOutlookUtils_log("Error can't access the COM client.");
+ }
free(charQuery);
@@ -217,6 +222,7 @@ boolean MsOutlookAddrBookServer::foreachMailUserCallback(
if(callbackClient)
{
+ MsOutlookUtils_log("Contact received. The contact will be send to the client.");
LPWSTR iUnknownW = StringUtils::MultiByteToWideChar(iUnknown);
BSTR res = SysAllocString(iUnknownW);
@@ -226,6 +232,10 @@ boolean MsOutlookAddrBookServer::foreachMailUserCallback(
SysFreeString(res);
free(iUnknownW);
}
+ else
+ {
+ MsOutlookUtils_log("No callback client");
+ }
return (hr == S_OK);
}