X-Git-Url: http://cgit.babelmonkeys.de/?a=blobdiff_plain;f=src%2Fcore%2Fmain.m;fp=src%2Fcore%2Fmain.m;h=459a15c9a898f0ab126b50aad6a81019a97e8a46;hb=62fb875be3885fcecbed4f614f01975cd200c9c8;hp=229e6c5aa502fe2624725beaaa08d9709d14d24a;hpb=f2af67c5eefd2239f7c3cc7688896bd3258bb7ec;p=jubjub.git diff --git a/src/core/main.m b/src/core/main.m index 229e6c5..459a15c 100644 --- a/src/core/main.m +++ b/src/core/main.m @@ -7,8 +7,8 @@ @interface AppDelegate: OFObject { - JubChatClient *client; - id ui; + JubChatClient *_client; + id _ui; } @end @@ -20,29 +20,29 @@ OF_APPLICATION_DELEGATE(AppDelegate) JubConfig *config = [[[JubConfig alloc] initWithFile: @"config.xml"] autorelease]; - client = [[JubChatClient alloc] initWithConfig: config]; + _client = [[JubChatClient alloc] initWithConfig: config]; - ui = [[JubGtkUI alloc] initWithClient: client]; + _ui = [[JubGtkUI alloc] initWithClient: _client]; - client.ui = ui; - [client.connection addDelegate: self]; + _client.ui = _ui; + [_client.connection addDelegate: self]; - [ui startUIThread]; + [_ui startUIThread]; } -- (void)connection: (XMPPConnection*)conn +- (void)connection: (XMPPConnection*)connection didReceiveElement: (OFXMLElement*)element { of_log(@"In: %@", element); } -- (void)connection: (XMPPConnection*)conn +- (void)connection: (XMPPConnection*)connection didSendElement: (OFXMLElement*)element { of_log(@"Out: %@", element); } -- (void)connection: (XMPPConnection*)connection_ +- (void)connection: (XMPPConnection*)connection didThrowException: (id)e { @throw e;