diff options
author | Daniel Gultsch <daniel.gultsch@rwth-aachen.de> | 2014-04-22 18:46:40 +0200 |
---|---|---|
committer | Daniel Gultsch <daniel.gultsch@rwth-aachen.de> | 2014-04-22 18:46:40 +0200 |
commit | 9a8e55acd16c10335f74eea5b7ad4e2a864e2ec4 (patch) | |
tree | 2387267b082c4eecf76dc37c761138af66cd6682 /src/eu/siacs/conversations/entities/Message.java | |
parent | aa5f775fc79ca7b1912c9d7fba759e7efb09fa2b (diff) |
added download button for images not accepted automatically
Diffstat (limited to 'src/eu/siacs/conversations/entities/Message.java')
-rw-r--r-- | src/eu/siacs/conversations/entities/Message.java | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/eu/siacs/conversations/entities/Message.java b/src/eu/siacs/conversations/entities/Message.java index e2b039670..6acc59391 100644 --- a/src/eu/siacs/conversations/entities/Message.java +++ b/src/eu/siacs/conversations/entities/Message.java @@ -1,5 +1,6 @@ package eu.siacs.conversations.entities; +import eu.siacs.conversations.xmpp.jingle.JingleConnection; import android.content.ContentValues; import android.database.Cursor; @@ -9,6 +10,7 @@ public class Message extends AbstractEntity { public static final String TABLENAME = "messages"; + public static final int STATUS_RECEIVED_OFFER = -2; public static final int STATUS_RECIEVING = -1; public static final int STATUS_RECIEVED = 0; public static final int STATUS_UNSEND = 1; @@ -16,6 +18,7 @@ public class Message extends AbstractEntity { public static final int STATUS_SEND_FAILED = 3; public static final int STATUS_SEND_REJECTED = 4; public static final int STATUS_PREPARING = 5; + public static final int STATUS_OFFERED = 6; public static final int ENCRYPTION_NONE = 0; public static final int ENCRYPTION_PGP = 1; @@ -44,6 +47,8 @@ public class Message extends AbstractEntity { protected boolean read = true; protected transient Conversation conversation = null; + + protected transient JingleConnection jingleConnection = null; public Message(Conversation conversation, String body, int encryption) { this(java.util.UUID.randomUUID().toString(), conversation.getUuid(), @@ -173,4 +178,12 @@ public class Message extends AbstractEntity { public void setPresence(String presence) { this.counterpart = this.counterpart.split("/")[0] + "/" + presence; } + + public void setJingleConnection(JingleConnection connection) { + this.jingleConnection = connection; + } + + public JingleConnection getJingleConnection() { + return this.jingleConnection; + } } |