diff options
Diffstat (limited to 'src/net/java/sip/communicator/plugin/addrbook/AddrBookSourceContact.java')
-rw-r--r-- | src/net/java/sip/communicator/plugin/addrbook/AddrBookSourceContact.java | 18 |
1 files changed, 16 insertions, 2 deletions
diff --git a/src/net/java/sip/communicator/plugin/addrbook/AddrBookSourceContact.java b/src/net/java/sip/communicator/plugin/addrbook/AddrBookSourceContact.java index 8808d7d..73fbe0e 100644 --- a/src/net/java/sip/communicator/plugin/addrbook/AddrBookSourceContact.java +++ b/src/net/java/sip/communicator/plugin/addrbook/AddrBookSourceContact.java @@ -37,6 +37,11 @@ public class AddrBookSourceContact private final String displayName;
/**
+ * The image/avatar of this <tt>SourceContact</tt>
+ */
+ private byte[] image;
+
+ /**
* Initializes a new <tt>AddrBookSourceContact</tt> instance.
*
* @param contactSource the <tt>ContactSourceService</tt> which is creating
@@ -136,8 +141,7 @@ public class AddrBookSourceContact */
public byte[] getImage()
{
- // TODO Auto-generated method stub
- return null;
+ return image;
}
/**
@@ -157,4 +161,14 @@ public class AddrBookSourceContact return contactDetails.isEmpty() ? null : contactDetails.get(0);
}
+
+ /**
+ * Sets the image/avatar of this <tt>SourceContact</tt>.
+ *
+ * @param image the image/avatar to be set on this <tt>SourceContact</tt>
+ */
+ public void setImage(byte[] image)
+ {
+ this.image = image;
+ }
}
|