org.semanticdesktop.aperture.addressbook.thunderbird
Class ThunderbirdAddressbookDetector
java.lang.Object
  
org.semanticdesktop.aperture.addressbook.thunderbird.ThunderbirdAddressbookDetector
- All Implemented Interfaces: 
 - DataSourceDetector
 
public class ThunderbirdAddressbookDetector
- extends Object
- implements DataSourceDetector
  
Detects if you have Thunderbird installed and searches for the 
 address book file.
- Author:
 
  - grimnes, sauermann
 
 
 
| Methods inherited from class java.lang.Object | 
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
 
ThunderbirdAddressbookDetector
public ThunderbirdAddressbookDetector()
getURI
public String getURI()
 
 
detect
public List<DataSourceDescription> detect()
                                   throws Exception
- Searches inside Returns the path 
 to the users profile directory
- Specified by:
 detect in interface DataSourceDetector
 
- Returns:
 - a list of detected datasources. May be empty, but never 
null
 - Throws:
 Exception - if there is a severe problem when detecting the datasource.
 The method will only throw an Exception, if it can usually detect a datasource,
 but is not able to detect it due to a faulty environment. 
 For example, if the operating system is Apple, but the Address book was removed,
 or if Microsoft Outlook is detected, but in a version that is unknown.
 Error messages must be readable by the end-user and give hints how to 
 add the datasource by hand or how to fix the problem.
 
 
getSupportedType
public URI getSupportedType()
- Description copied from interface: 
DataSourceDetector 
- Returns the URI of the supported DataSource type.
- Specified by:
 getSupportedType in interface DataSourceDetector
 
- See Also:
 DataSourceFactory.getSupportedType()
 
 
Copyright © 2010 Aperture Development Team. All Rights Reserved.