]> cgit.babelmonkeys.de Git - jubjub.git/blobdiff - src/core/main.m
Prefix ivars with an underscore
[jubjub.git] / src / core / main.m
index 659414bf349d4d2e886d0eb793b2956cbac51668..459a15c9a898f0ab126b50aad6a81019a97e8a46 100644 (file)
@@ -7,8 +7,8 @@
 
 @interface AppDelegate: OFObject <OFApplicationDelegate, XMPPConnectionDelegate>
 {
-       JubChatClient *client;
-       id<JubUI> ui;
+       JubChatClient *_client;
+       id<JubUI> _ui;
 }
 @end
 
@@ -20,25 +20,31 @@ 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
+  didThrowException: (id)e
+{
+       @throw e;
+}
 @end