Bug 957918 - Port chat/ changes from Instantbird to comm-central - 7 - Bug 955587 - Remove VKontakte protocol, r=fqueze.

This commit is contained in:
Patrick Cloke 2013-11-28 08:03:15 -05:00
Родитель c5206115f3
Коммит 3a56bf9636
9 изменённых файлов: 0 добавлений и 87 удалений

Просмотреть файл

@ -76,7 +76,6 @@ options.connectPort=Port
# LOCALIZATION NOTE (*.protocolName)
# This name is used whenever the name of the protocol is shown.
gtalk.protocolName=Google Talk
vkontakte.protocolName=VK
odnoklassniki.protocolName=Odnoklassniki
# LOCALIZATION NOTE (gtalk.usernameHint):
@ -85,12 +84,6 @@ odnoklassniki.protocolName=Odnoklassniki
# configuring a Google Talk account.
gtalk.usernameHint=email address
# LOCALIZATION NOTE (vkontakte.usernameHint):
# This is displayed inside the accountUsernameInfoWithDescription
# string defined in imAccounts.properties when the user is
# configuring a Vkontakte account.
vkontakte.usernameHint=Profile ID
# LOCALIZATION NOTE (odnoklassniki.usernameHint):
# This is displayed inside the accountUsernameInfoWithDescription
# string defined in imAccounts.properties when the user is

Просмотреть файл

@ -15,7 +15,6 @@ PARALLEL_DIRS += [
'protocols/irc',
'protocols/odnoklassniki',
'protocols/twitter',
'protocols/vkontakte',
'protocols/xmpp',
'protocols/yahoo',
]

Двоичный файл не отображается.

До

Ширина:  |  Высота:  |  Размер: 1.3 KiB

Двоичный файл не отображается.

До

Ширина:  |  Высота:  |  Размер: 2.1 KiB

Двоичный файл не отображается.

До

Ширина:  |  Высота:  |  Размер: 627 B

Просмотреть файл

@ -1,9 +0,0 @@
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
chat.jar:
% skin prpl-vkontakte classic/1.0 %skin/classic/prpl/vkontakte/
skin/classic/prpl/vkontakte/icon32.png (icons/prpl-vkontakte-32.png)
skin/classic/prpl/vkontakte/icon48.png (icons/prpl-vkontakte-48.png)
skin/classic/prpl/vkontakte/icon.png (icons/prpl-vkontakte.png)

Просмотреть файл

@ -1,11 +0,0 @@
# vim: set filetype=python:
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
EXTRA_COMPONENTS += [
'vkontakte.js',
'vkontakte.manifest',
]
JAR_MANIFESTS += ['jar.mn']

Просмотреть файл

@ -1,56 +0,0 @@
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
const {interfaces: Ci, utils: Cu} = Components;
Cu.import("resource:///modules/imXPCOMUtils.jsm");
Cu.import("resource:///modules/jsProtoHelper.jsm");
Cu.import("resource:///modules/xmpp.jsm");
Cu.import("resource:///modules/xmpp-session.jsm");
XPCOMUtils.defineLazyGetter(this, "_", function()
l10nHelper("chrome://chat/locale/xmpp.properties")
);
function VkontakteAccount(aProtoInstance, aImAccount) {
this._init(aProtoInstance, aImAccount);
}
VkontakteAccount.prototype = {
__proto__: XMPPAccountPrototype,
get canJoinChat() false,
connect: function() {
if (!this.name.contains("@")) {
let jid = this.name + "@vk.com/" + XMPPDefaultResource;
this._jid = this._parseJID(jid);
}
else {
this._jid = this._parseJID(this.name);
if (this._jid.domain != "vk.com") {
// We can't use this.onError because this._connection doesn't exist.
this.reportDisconnecting(Ci.prplIAccount.ERROR_INVALID_USERNAME,
_("connection.error.invalidUsername"));
this.reportDisconnected();
return;
}
}
this._connection = new XMPPSession("vkmessenger.com", 5222,
"require_tls", this._jid,
this.imAccount.password, this);
}
};
function VkontakteProtocol() {
}
VkontakteProtocol.prototype = {
__proto__: GenericProtocolPrototype,
get normalizedName() "vkontakte",
get name() _("vkontakte.protocolName"),
get iconBaseURI() "chrome://prpl-vkontakte/skin/",
get usernameEmptyText() _("vkontakte.usernameHint"),
getAccount: function(aImAccount) new VkontakteAccount(this, aImAccount),
classID: Components.ID("{0743ab81-8963-1743-7abc-9874823acd56}")
};
const NSGetFactory = XPCOMUtils.generateNSGetFactory([VkontakteProtocol]);

Просмотреть файл

@ -1,3 +0,0 @@
component {0743ab81-8963-1743-7abc-9874823acd56} vkontakte.js
contract @mozilla.org/chat/vkontakte;1 {0743ab81-8963-1743-7abc-9874823acd56}
category im-protocol-plugin prpl-vkontakte @mozilla.org/chat/vkontakte;1