diff options
author | Daniel Gultsch <daniel.gultsch@rwth-aachen.de> | 2014-02-28 18:46:01 +0100 |
---|---|---|
committer | Daniel Gultsch <daniel.gultsch@rwth-aachen.de> | 2014-02-28 18:46:01 +0100 |
commit | acf80bddd07d5579cdb20a888b3f9e99e53030a5 (patch) | |
tree | 034a8e364488c89c8e1997f56313d919019afa65 /src | |
parent | 03d96266f8bbb76e25610e903d74a0afa7dcd03b (diff) |
rebranding
Diffstat (limited to 'src')
-rw-r--r-- | src/eu/siacs/conversations/crypto/OtrEngine.java (renamed from src/de/gultsch/chat/crypto/OtrEngine.java) | 10 | ||||
-rw-r--r-- | src/eu/siacs/conversations/crypto/PgpEngine.java (renamed from src/de/gultsch/chat/crypto/PgpEngine.java) | 2 | ||||
-rw-r--r-- | src/eu/siacs/conversations/entities/AbstractEntity.java (renamed from src/de/gultsch/chat/entities/AbstractEntity.java) | 2 | ||||
-rw-r--r-- | src/eu/siacs/conversations/entities/Account.java (renamed from src/de/gultsch/chat/entities/Account.java) | 6 | ||||
-rw-r--r-- | src/eu/siacs/conversations/entities/Contact.java (renamed from src/de/gultsch/chat/entities/Contact.java) | 4 | ||||
-rw-r--r-- | src/eu/siacs/conversations/entities/Conversation.java (renamed from src/de/gultsch/chat/entities/Conversation.java) | 19 | ||||
-rw-r--r-- | src/eu/siacs/conversations/entities/Message.java (renamed from src/de/gultsch/chat/entities/Message.java) | 2 | ||||
-rw-r--r-- | src/eu/siacs/conversations/entities/MucOptions.java | 5 | ||||
-rw-r--r-- | src/eu/siacs/conversations/entities/Presences.java (renamed from src/de/gultsch/chat/entities/Presences.java) | 2 | ||||
-rw-r--r-- | src/eu/siacs/conversations/persistance/DatabaseBackend.java (renamed from src/de/gultsch/chat/persistance/DatabaseBackend.java) | 12 | ||||
-rw-r--r-- | src/eu/siacs/conversations/persistance/OnPhoneContactsMerged.java (renamed from src/de/gultsch/chat/persistance/OnPhoneContactsMerged.java) | 2 | ||||
-rw-r--r-- | src/eu/siacs/conversations/services/XmppConnectionService.java (renamed from src/de/gultsch/chat/services/XmppConnectionService.java) | 168 | ||||
-rw-r--r-- | src/eu/siacs/conversations/ui/ConversationActivity.java (renamed from src/de/gultsch/chat/ui/ConversationActivity.java) | 43 | ||||
-rw-r--r-- | src/eu/siacs/conversations/ui/ConversationFragment.java (renamed from src/de/gultsch/chat/ui/ConversationFragment.java) | 20 | ||||
-rw-r--r-- | src/eu/siacs/conversations/ui/DialogContactDetails.java (renamed from src/de/gultsch/chat/ui/DialogContactDetails.java) | 11 | ||||
-rw-r--r-- | src/eu/siacs/conversations/ui/EditAccount.java (renamed from src/de/gultsch/chat/ui/EditAccount.java) | 11 | ||||
-rw-r--r-- | src/eu/siacs/conversations/ui/ManageAccountActivity.java (renamed from src/de/gultsch/chat/ui/ManageAccountActivity.java) | 12 | ||||
-rw-r--r-- | src/eu/siacs/conversations/ui/NewConversationActivity.java (renamed from src/de/gultsch/chat/ui/NewConversationActivity.java) | 20 | ||||
-rw-r--r-- | src/eu/siacs/conversations/ui/OnAccountListChangedListener.java (renamed from src/de/gultsch/chat/ui/OnAccountListChangedListener.java) | 2 | ||||
-rw-r--r-- | src/eu/siacs/conversations/ui/OnConversationListChangedListener.java (renamed from src/de/gultsch/chat/ui/OnConversationListChangedListener.java) | 2 | ||||
-rw-r--r-- | src/eu/siacs/conversations/ui/OnRosterFetchedListener.java (renamed from src/de/gultsch/chat/ui/OnRosterFetchedListener.java) | 5 | ||||
-rw-r--r-- | src/eu/siacs/conversations/ui/SettingsActivity.java (renamed from src/de/gultsch/chat/ui/SettingsActivity.java) | 2 | ||||
-rw-r--r-- | src/eu/siacs/conversations/ui/SettingsFragment.java (renamed from src/de/gultsch/chat/ui/SettingsFragment.java) | 4 | ||||
-rw-r--r-- | src/eu/siacs/conversations/ui/XmppActivity.java (renamed from src/de/gultsch/chat/ui/XmppActivity.java) | 6 | ||||
-rw-r--r-- | src/eu/siacs/conversations/utils/DNSHelper.java (renamed from src/de/gultsch/chat/utils/DNSHelper.java) | 2 | ||||
-rw-r--r-- | src/eu/siacs/conversations/utils/MessageParser.java (renamed from src/de/gultsch/chat/utils/MessageParser.java) | 14 | ||||
-rw-r--r-- | src/eu/siacs/conversations/utils/OnPhoneContactsLoadedListener.java (renamed from src/de/gultsch/chat/utils/OnPhoneContactsLoadedListener.java) | 2 | ||||
-rw-r--r-- | src/eu/siacs/conversations/utils/PhoneHelper.java (renamed from src/de/gultsch/chat/utils/PhoneHelper.java) | 2 | ||||
-rw-r--r-- | src/eu/siacs/conversations/utils/SASL.java (renamed from src/de/gultsch/chat/utils/SASL.java) | 2 | ||||
-rw-r--r-- | src/eu/siacs/conversations/utils/UIHelper.java (renamed from src/de/gultsch/chat/utils/UIHelper.java) | 17 | ||||
-rw-r--r-- | src/eu/siacs/conversations/utils/Validator.java (renamed from src/de/gultsch/chat/utils/Validator.java) | 2 | ||||
-rw-r--r-- | src/eu/siacs/conversations/xml/Element.java (renamed from src/de/gultsch/chat/xml/Element.java) | 2 | ||||
-rw-r--r-- | src/eu/siacs/conversations/xml/Tag.java (renamed from src/de/gultsch/chat/xml/Tag.java) | 2 | ||||
-rw-r--r-- | src/eu/siacs/conversations/xml/TagWriter.java (renamed from src/de/gultsch/chat/xml/TagWriter.java) | 2 | ||||
-rw-r--r-- | src/eu/siacs/conversations/xml/XmlReader.java (renamed from src/de/gultsch/chat/xml/XmlReader.java) | 2 | ||||
-rw-r--r-- | src/eu/siacs/conversations/xmpp/IqPacket.java (renamed from src/de/gultsch/chat/xmpp/IqPacket.java) | 4 | ||||
-rw-r--r-- | src/eu/siacs/conversations/xmpp/MessagePacket.java (renamed from src/de/gultsch/chat/xmpp/MessagePacket.java) | 4 | ||||
-rw-r--r-- | src/eu/siacs/conversations/xmpp/OnIqPacketReceived.java (renamed from src/de/gultsch/chat/xmpp/OnIqPacketReceived.java) | 4 | ||||
-rw-r--r-- | src/eu/siacs/conversations/xmpp/OnMessagePacketReceived.java (renamed from src/de/gultsch/chat/xmpp/OnMessagePacketReceived.java) | 4 | ||||
-rw-r--r-- | src/eu/siacs/conversations/xmpp/OnPresencePacketReceived.java (renamed from src/de/gultsch/chat/xmpp/OnPresencePacketReceived.java) | 4 | ||||
-rw-r--r-- | src/eu/siacs/conversations/xmpp/OnStatusChanged.java (renamed from src/de/gultsch/chat/xmpp/OnStatusChanged.java) | 4 | ||||
-rw-r--r-- | src/eu/siacs/conversations/xmpp/PresencePacket.java (renamed from src/de/gultsch/chat/xmpp/PresencePacket.java) | 4 | ||||
-rw-r--r-- | src/eu/siacs/conversations/xmpp/XmppConnection.java (renamed from src/de/gultsch/chat/xmpp/XmppConnection.java) | 16 |
43 files changed, 235 insertions, 230 deletions
diff --git a/src/de/gultsch/chat/crypto/OtrEngine.java b/src/eu/siacs/conversations/crypto/OtrEngine.java index cdd71d61b..eca01a736 100644 --- a/src/de/gultsch/chat/crypto/OtrEngine.java +++ b/src/eu/siacs/conversations/crypto/OtrEngine.java @@ -1,4 +1,4 @@ -package de.gultsch.chat.crypto; +package eu.siacs.conversations.crypto; import java.math.BigInteger; import java.security.KeyFactory; @@ -17,10 +17,10 @@ import org.json.JSONObject; import android.content.Context; import android.util.Log; -import de.gultsch.chat.entities.Account; -import de.gultsch.chat.persistance.DatabaseBackend; -import de.gultsch.chat.xml.Element; -import de.gultsch.chat.xmpp.MessagePacket; +import eu.siacs.conversations.entities.Account; +import eu.siacs.conversations.persistance.DatabaseBackend; +import eu.siacs.conversations.xml.Element; +import eu.siacs.conversations.xmpp.MessagePacket; import net.java.otr4j.OtrEngineHost; import net.java.otr4j.OtrException; diff --git a/src/de/gultsch/chat/crypto/PgpEngine.java b/src/eu/siacs/conversations/crypto/PgpEngine.java index 6d94e577f..ba000c045 100644 --- a/src/de/gultsch/chat/crypto/PgpEngine.java +++ b/src/eu/siacs/conversations/crypto/PgpEngine.java @@ -1,4 +1,4 @@ -package de.gultsch.chat.crypto; +package eu.siacs.conversations.crypto; import java.io.ByteArrayInputStream; import java.io.ByteArrayOutputStream; diff --git a/src/de/gultsch/chat/entities/AbstractEntity.java b/src/eu/siacs/conversations/entities/AbstractEntity.java index 31a19fc0b..0297fa662 100644 --- a/src/de/gultsch/chat/entities/AbstractEntity.java +++ b/src/eu/siacs/conversations/entities/AbstractEntity.java @@ -1,4 +1,4 @@ -package de.gultsch.chat.entities; +package eu.siacs.conversations.entities; import java.io.Serializable; diff --git a/src/de/gultsch/chat/entities/Account.java b/src/eu/siacs/conversations/entities/Account.java index c8f6d0639..a596aba15 100644 --- a/src/de/gultsch/chat/entities/Account.java +++ b/src/eu/siacs/conversations/entities/Account.java @@ -1,4 +1,4 @@ -package de.gultsch.chat.entities; +package eu.siacs.conversations.entities; import java.security.interfaces.DSAPublicKey; @@ -8,8 +8,8 @@ import net.java.otr4j.crypto.OtrCryptoException; import org.json.JSONException; import org.json.JSONObject; -import de.gultsch.chat.crypto.OtrEngine; -import de.gultsch.chat.xmpp.XmppConnection; +import eu.siacs.conversations.crypto.OtrEngine; +import eu.siacs.conversations.xmpp.XmppConnection; import android.content.ContentValues; import android.content.Context; import android.database.Cursor; diff --git a/src/de/gultsch/chat/entities/Contact.java b/src/eu/siacs/conversations/entities/Contact.java index a8c9fa621..0eed39ed2 100644 --- a/src/de/gultsch/chat/entities/Contact.java +++ b/src/eu/siacs/conversations/entities/Contact.java @@ -1,4 +1,4 @@ -package de.gultsch.chat.entities; +package eu.siacs.conversations.entities; import java.io.Serializable; import java.util.HashSet; @@ -9,7 +9,7 @@ import org.json.JSONArray; import org.json.JSONException; import org.json.JSONObject; -import de.gultsch.chat.xml.Element; +import eu.siacs.conversations.xml.Element; import android.content.ContentValues; import android.database.Cursor; diff --git a/src/de/gultsch/chat/entities/Conversation.java b/src/eu/siacs/conversations/entities/Conversation.java index 3f83010ce..d1186a7d2 100644 --- a/src/de/gultsch/chat/entities/Conversation.java +++ b/src/eu/siacs/conversations/entities/Conversation.java @@ -1,11 +1,11 @@ -package de.gultsch.chat.entities; +package eu.siacs.conversations.entities; import java.security.interfaces.DSAPublicKey; import java.util.ArrayList; import java.util.List; -import de.gultsch.chat.crypto.OtrEngine; -import de.gultsch.chat.xmpp.XmppConnection; +import eu.siacs.conversations.crypto.OtrEngine; +import eu.siacs.conversations.xmpp.XmppConnection; import net.java.otr4j.OtrException; import net.java.otr4j.crypto.OtrCryptoEngineImpl; @@ -59,6 +59,8 @@ public class Conversation extends AbstractEntity { public int nextMessageEncryption = Message.ENCRYPTION_NONE; + private transient MucOptions mucOptions = null; + public Conversation(String name, Account account, String contactJid, int mode) { this(java.util.UUID.randomUUID().toString(), name, null, account.getUuid(), contactJid, System @@ -268,4 +270,15 @@ public class Conversation extends AbstractEntity { } return this.otrFingerprint; } + + public MucOptions getMucOptions() { + if (this.mucOptions == null) { + this.mucOptions = new MucOptions(); + } + return this.mucOptions ; + } + + public void resetMucOptions() { + this.mucOptions = null; + } } diff --git a/src/de/gultsch/chat/entities/Message.java b/src/eu/siacs/conversations/entities/Message.java index 58e4ef63a..0fce2a5b6 100644 --- a/src/de/gultsch/chat/entities/Message.java +++ b/src/eu/siacs/conversations/entities/Message.java @@ -1,4 +1,4 @@ -package de.gultsch.chat.entities; +package eu.siacs.conversations.entities; import android.content.ContentValues; import android.database.Cursor; diff --git a/src/eu/siacs/conversations/entities/MucOptions.java b/src/eu/siacs/conversations/entities/MucOptions.java new file mode 100644 index 000000000..4a738e65c --- /dev/null +++ b/src/eu/siacs/conversations/entities/MucOptions.java @@ -0,0 +1,5 @@ +package eu.siacs.conversations.entities; + +public class MucOptions { + +} diff --git a/src/de/gultsch/chat/entities/Presences.java b/src/eu/siacs/conversations/entities/Presences.java index aabc84404..af7926a8b 100644 --- a/src/de/gultsch/chat/entities/Presences.java +++ b/src/eu/siacs/conversations/entities/Presences.java @@ -1,4 +1,4 @@ -package de.gultsch.chat.entities; +package eu.siacs.conversations.entities; import java.util.Hashtable; import java.util.Iterator; diff --git a/src/de/gultsch/chat/persistance/DatabaseBackend.java b/src/eu/siacs/conversations/persistance/DatabaseBackend.java index 18fad7c42..1a6f934a7 100644 --- a/src/de/gultsch/chat/persistance/DatabaseBackend.java +++ b/src/eu/siacs/conversations/persistance/DatabaseBackend.java @@ -1,14 +1,14 @@ -package de.gultsch.chat.persistance; +package eu.siacs.conversations.persistance; import java.util.ArrayList; import java.util.List; import java.util.UUID; -import de.gultsch.chat.entities.Account; -import de.gultsch.chat.entities.Contact; -import de.gultsch.chat.entities.Conversation; -import de.gultsch.chat.entities.Message; -import de.gultsch.chat.entities.Presences; +import eu.siacs.conversations.entities.Account; +import eu.siacs.conversations.entities.Contact; +import eu.siacs.conversations.entities.Conversation; +import eu.siacs.conversations.entities.Message; +import eu.siacs.conversations.entities.Presences; import android.content.ContentValues; import android.content.Context; import android.database.Cursor; diff --git a/src/de/gultsch/chat/persistance/OnPhoneContactsMerged.java b/src/eu/siacs/conversations/persistance/OnPhoneContactsMerged.java index a7918efb9..6a457b17f 100644 --- a/src/de/gultsch/chat/persistance/OnPhoneContactsMerged.java +++ b/src/eu/siacs/conversations/persistance/OnPhoneContactsMerged.java @@ -1,4 +1,4 @@ -package de.gultsch.chat.persistance; +package eu.siacs.conversations.persistance; public interface OnPhoneContactsMerged { public void phoneContactsMerged(); diff --git a/src/de/gultsch/chat/services/XmppConnectionService.java b/src/eu/siacs/conversations/services/XmppConnectionService.java index 7ff099573..218d5088b 100644 --- a/src/de/gultsch/chat/services/XmppConnectionService.java +++ b/src/eu/siacs/conversations/services/XmppConnectionService.java @@ -1,4 +1,4 @@ -package de.gultsch.chat.services; +package eu.siacs.conversations.services; import java.text.ParseException; import java.text.SimpleDateFormat; @@ -14,31 +14,31 @@ import net.java.otr4j.OtrException; import net.java.otr4j.session.Session; import net.java.otr4j.session.SessionStatus; -import de.gultsch.chat.crypto.PgpEngine; -import de.gultsch.chat.crypto.PgpEngine.OpenPgpException; -import de.gultsch.chat.entities.Account; -import de.gultsch.chat.entities.Contact; -import de.gultsch.chat.entities.Conversation; -import de.gultsch.chat.entities.Message; -import de.gultsch.chat.entities.Presences; -import de.gultsch.chat.persistance.DatabaseBackend; -import de.gultsch.chat.persistance.OnPhoneContactsMerged; -import de.gultsch.chat.ui.OnAccountListChangedListener; -import de.gultsch.chat.ui.OnConversationListChangedListener; -import de.gultsch.chat.ui.OnRosterFetchedListener; -import de.gultsch.chat.utils.MessageParser; -import de.gultsch.chat.utils.OnPhoneContactsLoadedListener; -import de.gultsch.chat.utils.PhoneHelper; -import de.gultsch.chat.utils.UIHelper; -import de.gultsch.chat.xml.Element; -import de.gultsch.chat.xmpp.IqPacket; -import de.gultsch.chat.xmpp.MessagePacket; -import de.gultsch.chat.xmpp.OnIqPacketReceived; -import de.gultsch.chat.xmpp.OnMessagePacketReceived; -import de.gultsch.chat.xmpp.OnPresencePacketReceived; -import de.gultsch.chat.xmpp.OnStatusChanged; -import de.gultsch.chat.xmpp.PresencePacket; -import de.gultsch.chat.xmpp.XmppConnection; +import eu.siacs.conversations.crypto.PgpEngine; +import eu.siacs.conversations.crypto.PgpEngine.OpenPgpException; +import eu.siacs.conversations.entities.Account; +import eu.siacs.conversations.entities.Contact; +import eu.siacs.conversations.entities.Conversation; +import eu.siacs.conversations.entities.Message; +import eu.siacs.conversations.entities.Presences; +import eu.siacs.conversations.persistance.DatabaseBackend; +import eu.siacs.conversations.persistance.OnPhoneContactsMerged; +import eu.siacs.conversations.ui.OnAccountListChangedListener; +import eu.siacs.conversations.ui.OnConversationListChangedListener; +import eu.siacs.conversations.ui.OnRosterFetchedListener; +import eu.siacs.conversations.utils.MessageParser; +import eu.siacs.conversations.utils.OnPhoneContactsLoadedListener; +import eu.siacs.conversations.utils.PhoneHelper; +import eu.siacs.conversations.utils.UIHelper; +import eu.siacs.conversations.xml.Element; +import eu.siacs.conversations.xmpp.IqPacket; +import eu.siacs.conversations.xmpp.MessagePacket; +import eu.siacs.conversations.xmpp.OnIqPacketReceived; +import eu.siacs.conversations.xmpp.OnMessagePacketReceived; +import eu.siacs.conversations.xmpp.OnPresencePacketReceived; +import eu.siacs.conversations.xmpp.OnStatusChanged; +import eu.siacs.conversations.xmpp.PresencePacket; +import eu.siacs.conversations.xmpp.XmppConnection; import android.app.NotificationManager; import android.app.Service; import android.content.Context; @@ -188,71 +188,73 @@ public class XmppConnectionService extends Service { @Override public void onPresencePacketReceived(Account account, PresencePacket packet) { - String[] fromParts = packet.getAttribute("from").split("/"); - Contact contact = findContact(account, fromParts[0]); - if (contact == null) { - // most likely muc, self or roster not synced - Log.d(LOGTAG, - "got presence for non contact " + packet.toString()); - return; - } - String type = packet.getAttribute("type"); - if (type == null) { - Element show = packet.findChild("show"); - if (show == null) { - contact.updatePresence(fromParts[1], Presences.ONLINE); - } else if (show.getContent().equals("away")) { - contact.updatePresence(fromParts[1], Presences.AWAY); - } else if (show.getContent().equals("xa")) { - contact.updatePresence(fromParts[1], Presences.XA); - } else if (show.getContent().equals("chat")) { - contact.updatePresence(fromParts[1], Presences.CHAT); - } else if (show.getContent().equals("dnd")) { - contact.updatePresence(fromParts[1], Presences.DND); + if (packet.hasChild("x")&&(packet.findChild("x").getAttribute("xmlns").startsWith("http://jabber.org/protocol/muc"))) { + Log.d(LOGTAG,"got muc presence "+packet.toString()); + } else { + String[] fromParts = packet.getAttribute("from").split("/"); + Contact contact = findContact(account, fromParts[0]); + if (contact == null) { + // most likely self or roster not synced + return; } - PgpEngine pgp = getPgpEngine(); - if (pgp!=null) { - Element x = packet.findChild("x"); - if ((x != null) - && (x.getAttribute("xmlns").equals("jabber:x:signed"))) { - try { - Log.d(LOGTAG,"pgp signature for contact" +packet.getAttribute("from")); - contact.setPgpKeyId(pgp.fetchKeyId(packet.findChild("status") - .getContent(), x.getContent())); - } catch (OpenPgpException e) { - Log.d(LOGTAG,"faulty pgp. just ignore"); + String type = packet.getAttribute("type"); + if (type == null) { + Element show = packet.findChild("show"); + if (show == null) { + contact.updatePresence(fromParts[1], Presences.ONLINE); + } else if (show.getContent().equals("away")) { + contact.updatePresence(fromParts[1], Presences.AWAY); + } else if (show.getContent().equals("xa")) { + contact.updatePresence(fromParts[1], Presences.XA); + } else if (show.getContent().equals("chat")) { + contact.updatePresence(fromParts[1], Presences.CHAT); + } else if (show.getContent().equals("dnd")) { + contact.updatePresence(fromParts[1], Presences.DND); + } + PgpEngine pgp = getPgpEngine(); + if (pgp!=null) { + Element x = packet.findChild("x"); + if ((x != null) + && (x.getAttribute("xmlns").equals("jabber:x:signed"))) { + try { + Log.d(LOGTAG,"pgp signature for contact" +packet.getAttribute("from")); + contact.setPgpKeyId(pgp.fetchKeyId(packet.findChild("status") + .getContent(), x.getContent())); + } catch (OpenPgpException e) { + Log.d(LOGTAG,"faulty pgp. just ignore"); + } } } - } - databaseBackend.updateContact(contact); - } else if (type.equals("unavailable")) { - if (fromParts.length != 2) { - // Log.d(LOGTAG,"received presence with no resource "+packet.toString()); - } else { - contact.removePresence(fromParts[1]); databaseBackend.updateContact(contact); - } - } else if (type.equals("subscribe")) { - if (contact - .getSubscriptionOption(Contact.Subscription.PREEMPTIVE_GRANT)) { - sendPresenceUpdatesTo(contact); - contact.setSubscriptionOption(Contact.Subscription.FROM); - contact.resetSubscriptionOption(Contact.Subscription.PREEMPTIVE_GRANT); - replaceContactInConversation(contact.getJid(), contact); - databaseBackend.updateContact(contact); - if ((contact - .getSubscriptionOption(Contact.Subscription.ASKING)) - && (!contact - .getSubscriptionOption(Contact.Subscription.TO))) { - requestPresenceUpdatesFrom(contact); + } else if (type.equals("unavailable")) { + if (fromParts.length != 2) { + // Log.d(LOGTAG,"received presence with no resource "+packet.toString()); + } else { + contact.removePresence(fromParts[1]); + databaseBackend.updateContact(contact); + } + } else if (type.equals("subscribe")) { + if (contact + .getSubscriptionOption(Contact.Subscription.PREEMPTIVE_GRANT)) { + sendPresenceUpdatesTo(contact); + contact.setSubscriptionOption(Contact.Subscription.FROM); + contact.resetSubscriptionOption(Contact.Subscription.PREEMPTIVE_GRANT); + replaceContactInConversation(contact.getJid(), contact); + databaseBackend.updateContact(contact); + if ((contact + .getSubscriptionOption(Contact.Subscription.ASKING)) + && (!contact + .getSubscriptionOption(Contact.Subscription.TO))) { + requestPresenceUpdatesFrom(contact); + } + } else { + // TODO: ask user to handle it maybe } } else { - // TODO: ask user to handle it maybe + //Log.d(LOGTAG, packet.toString()); } - } else { - Log.d(LOGTAG, packet.toString()); + replaceContactInConversation(contact.getJid(), contact); } - replaceContactInConversation(contact.getJid(), contact); } }; diff --git a/src/de/gultsch/chat/ui/ConversationActivity.java b/src/eu/siacs/conversations/ui/ConversationActivity.java index 88d30bc52..7660b8fd9 100644 --- a/src/de/gultsch/chat/ui/ConversationActivity.java +++ b/src/eu/siacs/conversations/ui/ConversationActivity.java @@ -1,22 +1,16 @@ -package de.gultsch.chat.ui; +package eu.siacs.conversations.ui; import java.util.ArrayList; import java.util.Collections; import java.util.Comparator; import java.util.List; -import org.openintents.openpgp.OpenPgpSignatureResult; -import org.openintents.openpgp.util.OpenPgpConstants; - -import de.gultsch.chat.R; -import de.gultsch.chat.R.id; -import de.gultsch.chat.crypto.PgpEngine; -import de.gultsch.chat.crypto.PgpEngine.UserInputRequiredException; -import de.gultsch.chat.entities.Account; -import de.gultsch.chat.entities.Contact; -import de.gultsch.chat.entities.Conversation; -import de.gultsch.chat.entities.Message; -import de.gultsch.chat.utils.UIHelper; +import eu.siacs.conversations.R; +import eu.siacs.conversations.entities.Account; +import eu.siacs.conversations.entities.Contact; +import eu.siacs.conversations.entities.Conversation; +import eu.siacs.conversations.entities.Message; +import eu.siacs.conversations.utils.UIHelper; import android.net.Uri; import android.os.Bundle; import android.app.AlertDialog; @@ -25,7 +19,6 @@ import android.app.NotificationManager; import android.content.Context; import android.content.DialogInterface; import android.content.Intent; -import android.content.IntentSender.SendIntentException; import android.graphics.Typeface; import android.support.v4.widget.SlidingPaneLayout; import android.support.v4.widget.SlidingPaneLayout.PanelSlideListener; @@ -67,7 +60,6 @@ public class ConversationActivity extends XmppActivity { @Override public void onConversationListChanged() { - final Conversation currentConv = getSelectedConversation(); conversationList.clear(); conversationList.addAll(xmppConnectionService .getConversations()); @@ -104,8 +96,6 @@ public class ConversationActivity extends XmppActivity { xmppConnectionService.createContact(contact); } }; - private boolean contactInserted = false; - public List<Conversation> getConversationList() { return this.conversationList; @@ -206,7 +196,7 @@ public class ConversationActivity extends XmppActivity { } } }); - spl = (SlidingPaneLayout) findViewById(id.slidingpanelayout); + spl = (SlidingPaneLayout) findViewById(R.id.slidingpanelayout); spl.setParallaxDistance(150); spl.setShadowResource(R.drawable.es_slidingpane_shadow); spl.setSliderFadeColor(0); @@ -257,19 +247,26 @@ public class ConversationActivity extends XmppActivity { public boolean onCreateOptionsMenu(Menu menu) { getMenuInflater().inflate(R.menu.conversations, menu); MenuItem menuSecure = (MenuItem) menu.findItem(R.id.action_security); + MenuItem menuArchive = (MenuItem) menu.findItem(R.id.action_archive); + MenuItem menuMucDetails = (MenuItem) menu.findItem(R.id.action_muc_details); + MenuItem menuContactDetails = (MenuItem) menu.findItem(R.id.action_contact_details); if (spl.isOpen()) { - ((MenuItem) menu.findItem(R.id.action_archive)).setVisible(false); - ((MenuItem) menu.findItem(R.id.action_details)).setVisible(false); + menuArchive.setVisible(false); + menuMucDetails.setVisible(false); + menuContactDetails.setVisible(false); menuSecure.setVisible(false); } else { ((MenuItem) menu.findItem(R.id.action_add)).setVisible(false); if (this.getSelectedConversation()!=null) { if (this.getSelectedConversation().getMode() == Conversation.MODE_MULTI) { - ((MenuItem) menu.findItem(R.id.action_security)).setVisible(false); + menuMucDetails.setVisible(true); + menuContactDetails.setVisible(false); menuSecure.setVisible(false); - ((MenuItem) menu.findItem(R.id.action_archive)).setTitle("Leave conference"); + menuArchive.setTitle("Leave conference"); } else { + menuContactDetails.setVisible(true); + menuMucDetails.setVisible(false); if (this.getSelectedConversation().getLatestMessage().getEncryption() != Message.ENCRYPTION_NONE) { menuSecure.setIcon(R.drawable.ic_action_secure); } @@ -302,7 +299,7 @@ public class ConversationActivity extends XmppActivity { xmppConnectionService.archiveConversation(conv); selectedConversation = conversationList.get(0); break; - case R.id.action_details: + case R.id.action_contact_details: DialogContactDetails details = new DialogContactDetails(); Contact contact = this.getSelectedConversation().getContact(); if (contact != null) { diff --git a/src/de/gultsch/chat/ui/ConversationFragment.java b/src/eu/siacs/conversations/ui/ConversationFragment.java index af07fdbb8..ff06fafcc 100644 --- a/src/de/gultsch/chat/ui/ConversationFragment.java +++ b/src/eu/siacs/conversations/ui/ConversationFragment.java @@ -1,4 +1,4 @@ -package de.gultsch.chat.ui; +package eu.siacs.conversations.ui; import java.io.FileNotFoundException; import java.util.ArrayList; @@ -10,15 +10,15 @@ import java.util.Set; import net.java.otr4j.session.SessionStatus; -import de.gultsch.chat.R; -import de.gultsch.chat.crypto.PgpEngine.OpenPgpException; -import de.gultsch.chat.crypto.PgpEngine.UserInputRequiredException; -import de.gultsch.chat.entities.Contact; -import de.gultsch.chat.entities.Conversation; -import de.gultsch.chat.entities.Message; -import de.gultsch.chat.services.XmppConnectionService; -import de.gultsch.chat.utils.PhoneHelper; -import de.gultsch.chat.utils.UIHelper; +import eu.siacs.conversations.R; +import eu.siacs.conversations.crypto.PgpEngine.OpenPgpException; +import eu.siacs.conversations.crypto.PgpEngine.UserInputRequiredException; +import eu.siacs.conversations.entities.Contact; +import eu.siacs.conversations.entities.Conversation; +import eu.siacs.conversations.entities.Message; +import eu.siacs.conversations.services.XmppConnectionService; +import eu.siacs.conversations.utils.PhoneHelper; +import eu.siacs.conversations.utils.UIHelper; import android.app.AlertDialog; import android.app.Fragment; import android.content.DialogInterface; diff --git a/src/de/gultsch/chat/ui/DialogContactDetails.java b/src/eu/siacs/conversations/ui/DialogContactDetails.java index 324a7aacd..1210bc3cb 100644 --- a/src/de/gultsch/chat/ui/DialogContactDetails.java +++ b/src/eu/siacs/conversations/ui/DialogContactDetails.java @@ -1,9 +1,9 @@ -package de.gultsch.chat.ui; +package eu.siacs.conversations.ui; -import de.gultsch.chat.R; -import de.gultsch.chat.entities.Contact; -import de.gultsch.chat.entities.Presences; -import de.gultsch.chat.utils.UIHelper; +import eu.siacs.conversations.R; +import eu.siacs.conversations.entities.Contact; +import eu.siacs.conversations.entities.Presences; +import eu.siacs.conversations.utils.UIHelper; import android.app.AlertDialog; import android.app.Dialog; import android.app.DialogFragment; @@ -13,7 +13,6 @@ import android.os.Bundle; import android.provider.ContactsContract.CommonDataKinds; import android.provider.ContactsContract.Contacts; import android.provider.ContactsContract.Intents; -import android.util.Log; import android.view.LayoutInflater; import android.view.View; import android.view.View.OnClickListener; diff --git a/src/de/gultsch/chat/ui/EditAccount.java b/src/eu/siacs/conversations/ui/EditAccount.java index 88aa76f55..3ec741742 100644 --- a/src/de/gultsch/chat/ui/EditAccount.java +++ b/src/eu/siacs/conversations/ui/EditAccount.java @@ -1,13 +1,11 @@ -package de.gultsch.chat.ui; +package eu.siacs.conversations.ui; -import de.gultsch.chat.R; -import de.gultsch.chat.entities.Account; -import de.gultsch.chat.utils.Validator; +import eu.siacs.conversations.R; +import eu.siacs.conversations.entities.Account; +import eu.siacs.conversations.utils.Validator; import android.app.AlertDialog; import android.app.Dialog; import android.app.DialogFragment; -import android.content.DialogInterface; -import android.content.DialogInterface.OnClickListener; import android.os.Bundle; import android.view.LayoutInflater; import android.view.View; @@ -16,7 +14,6 @@ import android.widget.CheckBox; import android.widget.CompoundButton; import android.widget.CompoundButton.OnCheckedChangeListener; import android.widget.EditText; -import android.widget.RelativeLayout; import android.widget.TextView; public class EditAccount extends DialogFragment { diff --git a/src/de/gultsch/chat/ui/ManageAccountActivity.java b/src/eu/siacs/conversations/ui/ManageAccountActivity.java index bcc5306d8..22b82e77f 100644 --- a/src/de/gultsch/chat/ui/ManageAccountActivity.java +++ b/src/eu/siacs/conversations/ui/ManageAccountActivity.java @@ -1,13 +1,13 @@ -package de.gultsch.chat.ui; +package eu.siacs.conversations.ui; import java.util.ArrayList; import java.util.List; -import de.gultsch.chat.R; -import de.gultsch.chat.crypto.PgpEngine; -import de.gultsch.chat.crypto.PgpEngine.UserInputRequiredException; -import de.gultsch.chat.entities.Account; -import de.gultsch.chat.ui.EditAccount.EditAccountListener; +import eu.siacs.conversations.R; +import eu.siacs.conversations.crypto.PgpEngine; +import eu.siacs.conversations.crypto.PgpEngine.UserInputRequiredException; +import eu.siacs.conversations.entities.Account; +import eu.siacs.conversations.ui.EditAccount.EditAccountListener; import android.app.Activity; import android.app.AlertDialog; import android.content.Context; diff --git a/src/de/gultsch/chat/ui/NewConversationActivity.java b/src/eu/siacs/conversations/ui/NewConversationActivity.java index ac178fad7..628a30479 100644 --- a/src/de/gultsch/chat/ui/NewConversationActivity.java +++ b/src/eu/siacs/conversations/ui/NewConversationActivity.java @@ -1,22 +1,20 @@ -package de.gultsch.chat.ui; +package eu.siacs.conversations.ui; import java.util.ArrayList; import java.util.Collections; import java.util.Comparator; import java.util.List; -import de.gultsch.chat.R; -import de.gultsch.chat.entities.Account; -import de.gultsch.chat.entities.Contact; -import de.gultsch.chat.entities.Conversation; -import de.gultsch.chat.utils.UIHelper; -import de.gultsch.chat.utils.Validator; +import eu.siacs.conversations.R; +import eu.siacs.conversations.entities.Account; +import eu.siacs.conversations.entities.Contact; +import eu.siacs.conversations.entities.Conversation; +import eu.siacs.conversations.utils.UIHelper; +import eu.siacs.conversations.utils.Validator; import android.net.Uri; import android.os.Bundle; -import android.provider.ContactsContract; import android.text.Editable; import android.text.TextWatcher; -import android.util.Log; import android.view.LayoutInflater; import android.view.Menu; import android.view.MenuItem; @@ -35,13 +33,9 @@ import android.annotation.SuppressLint; import android.app.Activity; import android.app.AlertDialog; import android.content.Context; -import android.content.CursorLoader; import android.content.DialogInterface; import android.content.DialogInterface.OnClickListener; import android.content.Intent; -import android.content.Loader; -import android.content.Loader.OnLoadCompleteListener; -import android.database.Cursor; public class NewConversationActivity extends XmppActivity { diff --git a/src/de/gultsch/chat/ui/OnAccountListChangedListener.java b/src/eu/siacs/conversations/ui/OnAccountListChangedListener.java index 4af5ac9bc..98ef445ec 100644 --- a/src/de/gultsch/chat/ui/OnAccountListChangedListener.java +++ b/src/eu/siacs/conversations/ui/OnAccountListChangedListener.java @@ -1,4 +1,4 @@ -package de.gultsch.chat.ui; +package eu.siacs.conversations.ui; public interface OnAccountListChangedListener { public void onAccountListChangedListener(); diff --git a/src/de/gultsch/chat/ui/OnConversationListChangedListener.java b/src/eu/siacs/conversations/ui/OnConversationListChangedListener.java index 08b2bfb13..2a922e218 100644 --- a/src/de/gultsch/chat/ui/OnConversationListChangedListener.java +++ b/src/eu/siacs/conversations/ui/OnConversationListChangedListener.java @@ -1,4 +1,4 @@ -package de.gultsch.chat.ui; +package eu.siacs.conversations.ui; public interface OnConversationListChangedListener { public void onConversationListChanged(); diff --git a/src/de/gultsch/chat/ui/OnRosterFetchedListener.java b/src/eu/siacs/conversations/ui/OnRosterFetchedListener.java index ad3f6592b..d69ce35b7 100644 --- a/src/de/gultsch/chat/ui/OnRosterFetchedListener.java +++ b/src/eu/siacs/conversations/ui/OnRosterFetchedListener.java @@ -1,7 +1,8 @@ -package de.gultsch.chat.ui; +package eu.siacs.conversations.ui; import java.util.List; -import de.gultsch.chat.entities.Contact; + +import eu.siacs.conversations.entities.Contact; public interface OnRosterFetchedListener { public void onRosterFetched(List<Contact> roster); diff --git a/src/de/gultsch/chat/ui/SettingsActivity.java b/src/eu/siacs/conversations/ui/SettingsActivity.java index 886c05cca..abaf8c687 100644 --- a/src/de/gultsch/chat/ui/SettingsActivity.java +++ b/src/eu/siacs/conversations/ui/SettingsActivity.java @@ -1,4 +1,4 @@ -package de.gultsch.chat.ui; +package eu.siacs.conversations.ui; import android.app.Activity; import android.os.Bundle; diff --git a/src/de/gultsch/chat/ui/SettingsFragment.java b/src/eu/siacs/conversations/ui/SettingsFragment.java index 3ca4841af..7e1c36989 100644 --- a/src/de/gultsch/chat/ui/SettingsFragment.java +++ b/src/eu/siacs/conversations/ui/SettingsFragment.java @@ -1,6 +1,6 @@ -package de.gultsch.chat.ui; +package eu.siacs.conversations.ui; -import de.gultsch.chat.R; +import eu.siacs.conversations.R; import android.os.Bundle; import android.preference.PreferenceFragment; diff --git a/src/de/gultsch/chat/ui/XmppActivity.java b/src/eu/siacs/conversations/ui/XmppActivity.java index 66c92b72e..5114e640c 100644 --- a/src/de/gultsch/chat/ui/XmppActivity.java +++ b/src/eu/siacs/conversations/ui/XmppActivity.java @@ -1,7 +1,7 @@ -package de.gultsch.chat.ui; +package eu.siacs.conversations.ui; -import de.gultsch.chat.services.XmppConnectionService; -import de.gultsch.chat.services.XmppConnectionService.XmppConnectionBinder; +import eu.siacs.conversations.services.XmppConnectionService; +import eu.siacs.conversations.services.XmppConnectionService.XmppConnectionBinder; import android.app.Activity; import android.content.ComponentName; import android.content.Context; diff --git a/src/de/gultsch/chat/utils/DNSHelper.java b/src/eu/siacs/conversations/utils/DNSHelper.java index f19b1b6f0..46fd69286 100644 --- a/src/de/gultsch/chat/utils/DNSHelper.java +++ b/src/eu/siacs/conversations/utils/DNSHelper.java @@ -1,4 +1,4 @@ -package de.gultsch.chat.utils; +package eu.siacs.conversations.utils; import java.io.ByteArrayOutputStream; import java.io.IOException; diff --git a/src/de/gultsch/chat/utils/MessageParser.java b/src/eu/siacs/conversations/utils/MessageParser.java index a12ef58c9..dc0cd35cf 100644 --- a/src/de/gultsch/chat/utils/MessageParser.java +++ b/src/eu/siacs/conversations/utils/MessageParser.java @@ -1,16 +1,16 @@ -package de.gultsch.chat.utils; +package eu.siacs.conversations.utils; import java.util.List; import net.java.otr4j.session.Session; import net.java.otr4j.session.SessionStatus; import android.util.Log; -import de.gultsch.chat.entities.Account; -import de.gultsch.chat.entities.Conversation; -import de.gultsch.chat.entities.Message; -import de.gultsch.chat.services.XmppConnectionService; -import de.gultsch.chat.xml.Element; -import de.gultsch.chat.xmpp.MessagePacket; +import eu.siacs.conversations.entities.Account; +import eu.siacs.conversations.entities.Conversation; +import eu.siacs.conversations.entities.Message; +import eu.siacs.conversations.services.XmppConnectionService; +import eu.siacs.conversations.xml.Element; +import eu.siacs.conversations.xmpp.MessagePacket; public class MessageParser { diff --git a/src/de/gultsch/chat/utils/OnPhoneContactsLoadedListener.java b/src/eu/siacs/conversations/utils/OnPhoneContactsLoadedListener.java index c4df4ac30..fa8cea04c 100644 --- a/src/de/gultsch/chat/utils/OnPhoneContactsLoadedListener.java +++ b/src/eu/siacs/conversations/utils/OnPhoneContactsLoadedListener.java @@ -1,4 +1,4 @@ -package de.gultsch.chat.utils; +package eu.siacs.conversations.utils; import java.util.Hashtable; diff --git a/src/de/gultsch/chat/utils/PhoneHelper.java b/src/eu/siacs/conversations/utils/PhoneHelper.java index 14773caa4..e28f817e7 100644 --- a/src/de/gultsch/chat/utils/PhoneHelper.java +++ b/src/eu/siacs/conversations/utils/PhoneHelper.java @@ -1,4 +1,4 @@ -package de.gultsch.chat.utils; +package eu.siacs.conversations.utils; import java.util.Hashtable; diff --git a/src/de/gultsch/chat/utils/SASL.java b/src/eu/siacs/conversations/utils/SASL.java index 266f0cb29..cda1f97be 100644 --- a/src/de/gultsch/chat/utils/SASL.java +++ b/src/eu/siacs/conversations/utils/SASL.java @@ -1,4 +1,4 @@ -package de.gultsch.chat.utils; +package eu.siacs.conversations.utils; import android.util.Base64; diff --git a/src/de/gultsch/chat/utils/UIHelper.java b/src/eu/siacs/conversations/utils/UIHelper.java index 5e81f0990..f79fe14cf 100644 --- a/src/de/gultsch/chat/utils/UIHelper.java +++ b/src/eu/siacs/conversations/utils/UIHelper.java @@ -1,17 +1,15 @@ -package de.gultsch.chat.utils; +package eu.siacs.conversations.utils; -import java.io.FileDescriptor; -import java.io.FileNotFoundException; import java.text.SimpleDateFormat; import java.util.Date; import java.util.List; -import de.gultsch.chat.R; -import de.gultsch.chat.entities.Account; -import de.gultsch.chat.entities.Contact; -import de.gultsch.chat.entities.Conversation; -import de.gultsch.chat.entities.Message; -import de.gultsch.chat.ui.ConversationActivity; +import eu.siacs.conversations.R; +import eu.siacs.conversations.entities.Account; +import eu.siacs.conversations.entities.Contact; +import eu.siacs.conversations.entities.Conversation; +import eu.siacs.conversations.entities.Message; +import eu.siacs.conversations.ui.ConversationActivity; import android.app.Activity; import android.app.AlertDialog; @@ -32,7 +30,6 @@ import android.preference.PreferenceManager; import android.provider.ContactsContract.Contacts; import android.support.v4.app.NotificationCompat; import android.support.v4.app.TaskStackBuilder; -import android.util.Log; import android.view.LayoutInflater; import android.view.View; import android.widget.LinearLayout; diff --git a/src/de/gultsch/chat/utils/Validator.java b/src/eu/siacs/conversations/utils/Validator.java index a29ffa0ae..fce953aef 100644 --- a/src/de/gultsch/chat/utils/Validator.java +++ b/src/eu/siacs/conversations/utils/Validator.java @@ -1,4 +1,4 @@ -package de.gultsch.chat.utils; +package eu.siacs.conversations.utils; import java.util.regex.Matcher; import java.util.regex.Pattern; diff --git a/src/de/gultsch/chat/xml/Element.java b/src/eu/siacs/conversations/xml/Element.java index 01deb1d20..ad95ef9ce 100644 --- a/src/de/gultsch/chat/xml/Element.java +++ b/src/eu/siacs/conversations/xml/Element.java @@ -1,4 +1,4 @@ -package de.gultsch.chat.xml; +package eu.siacs.conversations.xml; import java.util.ArrayList; import java.util.Hashtable; diff --git a/src/de/gultsch/chat/xml/Tag.java b/src/eu/siacs/conversations/xml/Tag.java index 275229cf4..970cf0aed 100644 --- a/src/de/gultsch/chat/xml/Tag.java +++ b/src/eu/siacs/conversations/xml/Tag.java @@ -1,4 +1,4 @@ -package de.gultsch.chat.xml; +package eu.siacs.conversations.xml; import java.util.Hashtable; import java.util.Iterator; diff --git a/src/de/gultsch/chat/xml/TagWriter.java b/src/eu/siacs/conversations/xml/TagWriter.java index 844f5253e..109078ca1 100644 --- a/src/de/gultsch/chat/xml/TagWriter.java +++ b/src/eu/siacs/conversations/xml/TagWriter.java @@ -1,4 +1,4 @@ -package de.gultsch.chat.xml; +package eu.siacs.conversations.xml; import java.io.IOException; import java.io.OutputStream; diff --git a/src/de/gultsch/chat/xml/XmlReader.java b/src/eu/siacs/conversations/xml/XmlReader.java index 0ff2e7858..131141ddd 100644 --- a/src/de/gultsch/chat/xml/XmlReader.java +++ b/src/eu/siacs/conversations/xml/XmlReader.java @@ -1,4 +1,4 @@ -package de.gultsch.chat.xml; +package eu.siacs.conversations.xml; import java.io.IOException; import java.io.InputStream; diff --git a/src/de/gultsch/chat/xmpp/IqPacket.java b/src/eu/siacs/conversations/xmpp/IqPacket.java index d7672540d..2319fd28b 100644 --- a/src/de/gultsch/chat/xmpp/IqPacket.java +++ b/src/eu/siacs/conversations/xmpp/IqPacket.java @@ -1,6 +1,6 @@ -package de.gultsch.chat.xmpp; +package eu.siacs.conversations.xmpp; -import de.gultsch.chat.xml.Element; +import eu.siacs.conversations.xml.Element; public class IqPacket extends Element { diff --git a/src/de/gultsch/chat/xmpp/MessagePacket.java b/src/eu/siacs/conversations/xmpp/MessagePacket.java index 160a8c0ad..a014155fc 100644 --- a/src/de/gultsch/chat/xmpp/MessagePacket.java +++ b/src/eu/siacs/conversations/xmpp/MessagePacket.java @@ -1,6 +1,6 @@ -package de.gultsch.chat.xmpp; +package eu.siacs.conversations.xmpp; -import de.gultsch.chat.xml.Element; +import eu.siacs.conversations.xml.Element; public class MessagePacket extends Element { public static final int TYPE_CHAT = 0; diff --git a/src/de/gultsch/chat/xmpp/OnIqPacketReceived.java b/src/eu/siacs/conversations/xmpp/OnIqPacketReceived.java index 0a2e0361d..4e09282c3 100644 --- a/src/de/gultsch/chat/xmpp/OnIqPacketReceived.java +++ b/src/eu/siacs/conversations/xmpp/OnIqPacketReceived.java @@ -1,6 +1,6 @@ -package de.gultsch.chat.xmpp; +package eu.siacs.conversations.xmpp; -import de.gultsch.chat.entities.Account; +import eu.siacs.conversations.entities.Account; public interface OnIqPacketReceived { public void onIqPacketReceived(Account account, IqPacket packet); diff --git a/src/de/gultsch/chat/xmpp/OnMessagePacketReceived.java b/src/eu/siacs/conversations/xmpp/OnMessagePacketReceived.java index 30f6c29bd..3d169300d 100644 --- a/src/de/gultsch/chat/xmpp/OnMessagePacketReceived.java +++ b/src/eu/siacs/conversations/xmpp/OnMessagePacketReceived.java @@ -1,6 +1,6 @@ -package de.gultsch.chat.xmpp; +package eu.siacs.conversations.xmpp; -import de.gultsch.chat.entities.Account; +import eu.siacs.conversations.entities.Account; public interface OnMessagePacketReceived { public void onMessagePacketReceived(Account account, MessagePacket packet); diff --git a/src/de/gultsch/chat/xmpp/OnPresencePacketReceived.java b/src/eu/siacs/conversations/xmpp/OnPresencePacketReceived.java index 4c9767791..058d8be91 100644 --- a/src/de/gultsch/chat/xmpp/OnPresencePacketReceived.java +++ b/src/eu/siacs/conversations/xmpp/OnPresencePacketReceived.java @@ -1,6 +1,6 @@ -package de.gultsch.chat.xmpp; +package eu.siacs.conversations.xmpp; -import de.gultsch.chat.entities.Account; +import eu.siacs.conversations.entities.Account; public interface OnPresencePacketReceived { public void onPresencePacketReceived(Account account, PresencePacket packet); diff --git a/src/de/gultsch/chat/xmpp/OnStatusChanged.java b/src/eu/siacs/conversations/xmpp/OnStatusChanged.java index f79305e35..ad1d98cb9 100644 --- a/src/de/gultsch/chat/xmpp/OnStatusChanged.java +++ b/src/eu/siacs/conversations/xmpp/OnStatusChanged.java @@ -1,6 +1,6 @@ -package de.gultsch.chat.xmpp; +package eu.siacs.conversations.xmpp; -import de.gultsch.chat.entities.Account; +import eu.siacs.conversations.entities.Account; public interface OnStatusChanged { public void onStatusChanged(Account account); diff --git a/src/de/gultsch/chat/xmpp/PresencePacket.java b/src/eu/siacs/conversations/xmpp/PresencePacket.java index 947afe7af..3d77ce151 100644 --- a/src/de/gultsch/chat/xmpp/PresencePacket.java +++ b/src/eu/siacs/conversations/xmpp/PresencePacket.java @@ -1,6 +1,6 @@ -package de.gultsch.chat.xmpp; +package eu.siacs.conversations.xmpp; -import de.gultsch.chat.xml.Element; +import eu.siacs.conversations.xml.Element; public class PresencePacket extends Element { private PresencePacket(String name) { diff --git a/src/de/gultsch/chat/xmpp/XmppConnection.java b/src/eu/siacs/conversations/xmpp/XmppConnection.java index 1b9aa0c3a..4583c145b 100644 --- a/src/de/gultsch/chat/xmpp/XmppConnection.java +++ b/src/eu/siacs/conversations/xmpp/XmppConnection.java @@ -1,4 +1,4 @@ -package de.gultsch.chat.xmpp; +package eu.siacs.conversations.xmpp; import java.io.IOException; import java.io.InputStream; @@ -19,13 +19,13 @@ import org.xmlpull.v1.XmlPullParserException; import android.os.Bundle; import android.os.PowerManager; import android.util.Log; -import de.gultsch.chat.entities.Account; -import de.gultsch.chat.utils.DNSHelper; -import de.gultsch.chat.utils.SASL; -import de.gultsch.chat.xml.Element; -import de.gultsch.chat.xml.Tag; -import de.gultsch.chat.xml.XmlReader; -import de.gultsch.chat.xml.TagWriter; +import eu.siacs.conversations.entities.Account; +import eu.siacs.conversations.utils.DNSHelper; +import eu.siacs.conversations.utils.SASL; +import eu.siacs.conversations.xml.Element; +import eu.siacs.conversations.xml.Tag; +import eu.siacs.conversations.xml.TagWriter; +import eu.siacs.conversations.xml.XmlReader; public class XmppConnection implements Runnable { |