Join up GUI, by adding 'Hermes' as a wrapper around Syncjob. This will
[hermes] / package / src / org / maemo / hermes / engine / contact.py
index 0b8cbd4..9fee7b2 100644 (file)
@@ -71,6 +71,15 @@ class Contact:
            versions of identifiers for this contact."""
            
         return self._identifiers
+
+
+    # -----------------------------------------------------------------------
+    def get_photo(self):
+        """Return the photo property, or None. The result is of type
+        EContactPhoto."""
+        
+        photo = self._contact.get_property('photo')
+        return cast(c_void_p(hash(photo)), POINTER(EContactPhoto))
     
     
     # -----------------------------------------------------------------------
@@ -110,12 +119,6 @@ class Contact:
         except:
             print "FAILED to get photo from URL %s" % url
             return False
-    
-    
-    # -----------------------------------------------------------------------
-    def has_photo(self):
-        # FIXME
-        return False
       
       
     # -----------------------------------------------------------------------