StropheCappuccino API 1.0.0
/tmp/tempDoc.doc/Build/StropheCappuccino.build/Debug/Browser.environment/Sources/TNStropheIMClient.j
Go to the documentation of this file.
00001 @STATIC;1.0;I;23;Foundation/Foundation.ji;17;TNStropheClient.ji;21;TNStropheConnection.ji;14;TNStropheJID.ji;17;TNStropheRoster.ji;17;TNStropheStanza.jt;6592;objj_executeFile("Foundation/Foundation.j", NO);objj_executeFile("TNStropheClient.j", YES);objj_executeFile("TNStropheConnection.j", YES);objj_executeFile("TNStropheJID.j", YES);objj_executeFile("TNStropheRoster.j", YES);objj_executeFile("TNStropheStanza.j", YES);{var the_class = objj_allocateClassPair(TNStropheClient, "TNStropheIMClient"),
00002 meta_class = the_class.isa;class_addIvars(the_class, [new objj_ivar("_roster")]);objj_registerClassPair(the_class);
00003 class_addMethods(the_class, [new objj_method(sel_getUid("roster"), function $TNStropheIMClient__roster(self, _cmd)
00004 {
00005     return self._roster;
00006 }
00007 ,["TNStropheRoster"]), new objj_method(sel_getUid("_setRoster:"), function $TNStropheIMClient___setRoster_(self, _cmd, newValue)
00008 {
00009     self._roster = newValue;
00010 }
00011 ,["void","TNStropheRoster"]), new objj_method(sel_getUid("initWithService:rosterClass:"), function $TNStropheIMClient__initWithService_rosterClass_(self, _cmd, aService, aRosterClass)
00012 {
00013     if (self = objj_msgSendSuper({ receiver:self, super_class:objj_getClass("TNStropheIMClient").super_class }, "initWithService:", aService))
00014     {
00015         if (!aRosterClass)
00016             aRosterClass = TNStropheRoster;
00017         self._roster = (aRosterClass == null ? null : aRosterClass.isa.objj_msgSend1(aRosterClass, "rosterWithConnection:", self._connection));
00018     }
00019     return self;
00020 }
00021 ,["id","CPString","id"]), new objj_method(sel_getUid("initWithService:JID:password:rosterClass:"), function $TNStropheIMClient__initWithService_JID_password_rosterClass_(self, _cmd, aService, aJID, aPassword, aRosterClass)
00022 {
00023     if (self = (self == null ? null : self.isa.objj_msgSend2(self, "initWithService:rosterClass:", aService, aRosterClass)))
00024     {
00025         self._JID = aJID;
00026         self._password = aPassword;
00027         ((___r1 = CPNotificationCenter.isa.objj_msgSend0(CPNotificationCenter, "defaultCenter")), ___r1 == null ? null : ___r1.isa.objj_msgSend(___r1, "addObserver:selector:name:object:", self, sel_getUid("_didReceiveRoster:"), TNStropheRosterRetrievedNotification, nil));
00028     }
00029     return self;
00030     var ___r1;
00031 }
00032 ,["id","CPString","TNStropheJID","CPString","id"]), new objj_method(sel_getUid("_didReceiveRoster:"), function $TNStropheIMClient___didReceiveRoster_(self, _cmd, aNotification)
00033 {
00034     self.isa.objj_msgSend0(self, "_sendInitialPresence");
00035     objj_msgSendSuper({ receiver:self, super_class:objj_getClass("TNStropheIMClient").super_class }, "onStropheConnected:", self._connection);
00036 }
00037 ,["void","CPNotification"]), new objj_method(sel_getUid("onStropheConnected:"), function $TNStropheIMClient__onStropheConnected_(self, _cmd, aConnection)
00038 {
00039     ((___r1 = self._roster), ___r1 == null ? null : ___r1.isa.objj_msgSend0(___r1, "getSubGroupDelimiter"));
00040     var ___r1;
00041 }
00042 ,["void","TNStropheConnection"]), new objj_method(sel_getUid("onStropheConnectFail:"), function $TNStropheIMClient__onStropheConnectFail_(self, _cmd, aConnection)
00043 {
00044     ((___r1 = self._roster), ___r1 == null ? null : ___r1.isa.objj_msgSend0(___r1, "clear"));
00045     objj_msgSendSuper({ receiver:self, super_class:objj_getClass("TNStropheIMClient").super_class }, "onStropheConnectFail:", aConnection);
00046     var ___r1;
00047 }
00048 ,["void","TNStropheConnection"]), new objj_method(sel_getUid("onStropheDisconnected:"), function $TNStropheIMClient__onStropheDisconnected_(self, _cmd, aConnection)
00049 {
00050     ((___r1 = self._roster), ___r1 == null ? null : ___r1.isa.objj_msgSend0(___r1, "clear"));
00051     objj_msgSendSuper({ receiver:self, super_class:objj_getClass("TNStropheIMClient").super_class }, "onStropheDisconnected:", aConnection);
00052     var ___r1;
00053 }
00054 ,["void","TNStropheConnection"]), new objj_method(sel_getUid("onStropheError:"), function $TNStropheIMClient__onStropheError_(self, _cmd, aConnection)
00055 {
00056     ((___r1 = self._roster), ___r1 == null ? null : ___r1.isa.objj_msgSend0(___r1, "clear"));
00057     objj_msgSendSuper({ receiver:self, super_class:objj_getClass("TNStropheIMClient").super_class }, "onStropheError:", aConnection);
00058     var ___r1;
00059 }
00060 ,["void","TNStropheConnection"]), new objj_method(sel_getUid("initWithCoder:"), function $TNStropheIMClient__initWithCoder_(self, _cmd, aCoder)
00061 {
00062     self = objj_msgSendSuper({ receiver:self, super_class:objj_getClass("TNStropheIMClient").super_class }, "initWithCoder:", aCoder);
00063     if (self)
00064     {
00065         self._roster = (aCoder == null ? null : aCoder.isa.objj_msgSend1(aCoder, "decodeObjectForKey:", "_roster"));
00066     }
00067     return self;
00068 }
00069 ,["id","CPCoder"]), new objj_method(sel_getUid("encodeWithCoder:"), function $TNStropheIMClient__encodeWithCoder_(self, _cmd, aCoder)
00070 {
00071     objj_msgSendSuper({ receiver:self, super_class:objj_getClass("TNStropheIMClient").super_class }, "encodeWithCoder:", aCoder);
00072     (aCoder == null ? null : aCoder.isa.objj_msgSend2(aCoder, "encodeObject:forKey:", self._roster, "_roster"));
00073 }
00074 ,["void","CPCoder"])]);
00075 class_addMethods(meta_class, [new objj_method(sel_getUid("IMClientWithService:"), function $TNStropheIMClient__IMClientWithService_(self, _cmd, aService)
00076 {
00077     return ((___r1 = TNStropheIMClient.isa.objj_msgSend0(TNStropheIMClient, "alloc")), ___r1 == null ? null : ___r1.isa.objj_msgSend1(___r1, "initWithService:", aService));
00078     var ___r1;
00079 }
00080 ,["TNStropheIMClient","CPString"]), new objj_method(sel_getUid("IMClientWithService:rosterClass:"), function $TNStropheIMClient__IMClientWithService_rosterClass_(self, _cmd, aService, aRosterClass)
00081 {
00082     return ((___r1 = TNStropheIMClient.isa.objj_msgSend0(TNStropheIMClient, "alloc")), ___r1 == null ? null : ___r1.isa.objj_msgSend2(___r1, "initWithService:rosterClass:", aService, aRosterClass));
00083     var ___r1;
00084 }
00085 ,["TNStropheIMClient","CPString","id"]), new objj_method(sel_getUid("IMClientWithService:JID:password:"), function $TNStropheIMClient__IMClientWithService_JID_password_(self, _cmd, aService, aJID, aPassword)
00086 {
00087     return ((___r1 = TNStropheIMClient.isa.objj_msgSend0(TNStropheIMClient, "alloc")), ___r1 == null ? null : ___r1.isa.objj_msgSend3(___r1, "initWithService:JID:password:", aService, aJID, aPassword));
00088     var ___r1;
00089 }
00090 ,["TNStropheIMClient","CPString","TNStropheJID","CPString"]), new objj_method(sel_getUid("IMClientWithService:JID:password:rosterClass:"), function $TNStropheIMClient__IMClientWithService_JID_password_rosterClass_(self, _cmd, aService, aJID, aPassword, aRosterClass)
00091 {
00092     return ((___r1 = TNStropheIMClient.isa.objj_msgSend0(TNStropheIMClient, "alloc")), ___r1 == null ? null : ___r1.isa.objj_msgSend(___r1, "initWithService:JID:password:rosterClass:", aService, aJID, aPassword, aRosterClass));
00093     var ___r1;
00094 }
00095 ,["TNStropheIMClient","CPString","TNStropheJID","CPString","id"])]);
00096 }
 All Classes Namespaces Files Functions Variables