diff options
Diffstat (limited to 'src/net/java/sip/communicator/plugin/addrbook/msoutlook/MsOutlookAddrBookContactSourceService.java')
-rw-r--r-- | src/net/java/sip/communicator/plugin/addrbook/msoutlook/MsOutlookAddrBookContactSourceService.java | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/src/net/java/sip/communicator/plugin/addrbook/msoutlook/MsOutlookAddrBookContactSourceService.java b/src/net/java/sip/communicator/plugin/addrbook/msoutlook/MsOutlookAddrBookContactSourceService.java index 59bbcb8..bbe6110 100644 --- a/src/net/java/sip/communicator/plugin/addrbook/msoutlook/MsOutlookAddrBookContactSourceService.java +++ b/src/net/java/sip/communicator/plugin/addrbook/msoutlook/MsOutlookAddrBookContactSourceService.java @@ -95,6 +95,14 @@ public class MsOutlookAddrBookContactSourceService { throw new RuntimeException(cnfe); } + + int bitness = getOutlookBitnessVersion(); + int version = getOutlookVersion(); + if(bitness != -1 && version != -1) + { + logger.info( + "Outlook " + version + "-x" + bitness + " is installed."); + } } /** @@ -148,6 +156,10 @@ public class MsOutlookAddrBookContactSourceService private static native void MAPIUninitialize(); + public static native int getOutlookBitnessVersion(); + + public static native int getOutlookVersion(); + /** * Queries this <tt>ContactSourceService</tt> for <tt>SourceContact</tt>s * which match a specific <tt>query</tt> <tt>Pattern</tt>. @@ -487,4 +499,24 @@ public class MsOutlookAddrBookContactSourceService return this.id.hashCode(); } } + + /** + * Returns the bitness of this contact source service. + * + * @return The bitness of this contact source service. + */ + public int getBitness() + { + return getOutlookBitnessVersion(); + } + + /** + * Returns the version of this contact source service. + * + * @return The version of this contact source service. + */ + public int getVersion() + { + return getOutlookVersion(); + } } |