The 'topic' attribute of purpleIConvChat should be settable.

This commit is contained in:
Florian Quèze 2011-05-19 20:38:17 +02:00
Родитель 7a4007ef4b
Коммит 77933434cd
3 изменённых файлов: 9 добавлений и 2 удалений

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

@ -122,12 +122,16 @@ interface purpleIConvChat: purpleIConversation {
The list of people participating in this chat */
nsISimpleEnumerator getParticipants();
/* The topic of this chat room (FIXME settable?) */
readonly attribute AUTF8String topic;
/* The topic of this chat room */
attribute AUTF8String topic;
/* The name/nick of the person who set the topic */
readonly attribute AUTF8String topicSetter;
/* Whether the protocol plugin can set a topic. Doesn't check that
the user has the necessary rights in the current conversation. */
readonly attribute boolean topicSettable;
/* The nick seen by other people in the room */
readonly attribute AUTF8String nick;

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

@ -270,7 +270,9 @@ UIConversation.prototype = {
// Chat only
getParticipants: function() this.target.getParticipants(),
get topic() this.target.topic,
set topic(aTopic) { this.target.topic = aTopic; },
get topicSetter() this.target.topicSetter,
get topicSettable() this.target.topicSettable,
get nick() this.target.nick,
get left() this.target.left
};

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

@ -554,6 +554,7 @@ const GenericConvChatPrototype = {
get nick() this._nick,
get topic() this._topic,
get topicSetter() this._topicSetter,
get topicSettable() false,
get left() false,
getParticipants: function() {