*
  *     class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2007 by Steve Nygard.
  */
-
+#error
 @class UIImage, UIView;
 
 struct $_154 {
 
  *     class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2007 by Steve Nygard.
  */
 
-#import "NSString.h"
+#import "Foundation/NSString.h"
 
 @interface NSString (UIKBExtras)
 + (id)stringWithUnichar:(unsigned short)fp8;
 
 - (BOOL)isSpringboardHandledURL;
 - (BOOL)isWebSafeTelephoneURL;
 - (id)webSafeTelephoneURL;
+#if 1 // iPhoneOS 3.x
+- (id)phobosURL;
+#endif
 @end
 
 
 - (void)_setFirstOtherButtonIndex:(int)fp8;
 - (int)firstOtherButtonIndex;
 - (void)dismissWithClickedButtonIndex:(int)fp8 animated:(BOOL)fp12;
-- (id)initWithTitle:(id)fp8 message:(id)fp12 delegate:(id)fp16 cancelButtonTitle:(id)fp20 otherButtonTitles:(id)fp24;
+- (id)initWithTitle:(id)fp8 message:(id)fp12 delegate:(id)fp16 cancelButtonTitle:(id)fp20 otherButtonTitles:(id)fp24, ...;
 - (id)initWithFrame:(struct CGRect)fp8;
 - (void)show;
 
+#if 1//...
+- (void)setForceHorizontalButtonsLayout:(BOOL)force;
+#endif
+
+#if 1//...
+- (void)setContext:(NSString *)string;
+- (NSString *)context;
+- (void)setNumberOfRows:(int)rows;
+#endif
+
 @end
 
 
 - (BOOL)_isLaunchedSuspended;
 - (unsigned int)_portForEvent:(struct __GSEvent *)fp8;
 - (void)suspendWithAnimation:(BOOL)fp8;
+#if 1 // iPhoneOS 3.x
+- (void)suspend;
+#endif
 - (BOOL)registerForSystemEvents;
 - (BOOL)rendersLocally;
 - (void)applicationStarted:(struct __GSEvent *)fp8;
 - (void)removeStatusBarImageNamed:(id)fp8;
 - (id)applicationBadge;
 - (void)setApplicationBadge:(id)fp8;
+#if 1 // iPhoneOS 3.x
+- (void)setApplicationBadgeString:(id)fp8;
+#endif
 - (void)removeApplicationBadge;
 - (int)applicationIconBadgeNumber;
 - (void)setApplicationIconBadgeNumber:(int)fp8;
 
  *     class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2007 by Steve Nygard.
  */
 
-#import "CALayer.h"
+#import <QuartzCore/CALayer.h>
 
 @interface UICoverFlowLayer : CALayer
 {
 }
 
 - (id)initWithFrame:(struct CGRect)fp8 numberOfCovers:(unsigned int)fp24;
+- (id)initWithFrame:(struct CGRect)fp8 numberOfCovers:(unsigned int)fp24 numberOfPlaceholders:(unsigned int)fp28;
+
 - (unsigned int)numberOfCovers;
+- (unsigned int)numberOfPlaceholders;
+
 - (void)dealloc;
 - (void)setDelegate:(id)fp8;
+
 - (void)setPlaceholderImage:(void *)fp8;
+- (void)setPlaceholderImage:(void *)fp8 atPlaceholderIndex:(unsigned int)fp12;
+- (void)setPlaceholderIndicesForCovers:(unsigned int *)fp8;
+
 - (void)_prefetch:(unsigned int)fp8 atIndex:(unsigned int)fp12;
 - (void)_requestBatch;
 - (void)_requestImageAtIndex:(int)fp8 quality:(unsigned int)fp12;
 
 }
 
 + (void)initialize;
-+ (id)currentDevice;
++ (UIDevice *)currentDevice;
 - (id)name;
 - (id)model;
 - (id)localizedModel;
 - (void)endGeneratingDeviceOrientationNotifications;
 - (BOOL)isGeneratingDeviceOrientationNotifications;
 
+- (BOOL) isWildcat;
+
 @end
 
 
  */
 
 #import <UIKit/UIView.h>
+#import <UIKit/UIFormPeripheral-Protocol.h>
 
-@class NSMutableDictionary, UIButton, UIImageView, UIInformalDelegate, UITransitionView, UIView<UIFormPeripheral>;
+@class NSMutableDictionary, UIButton, UIImageView, UIInformalDelegate, UITransitionView, UIView/*<UIFormPeripheral>*/;
 
 @interface UIFormAssistant : UIView
 {
 
 + (id)imageWithContentsOfFile:(id)fp8;
 + (id)imageWithData:(id)fp8;
 + (id)imageWithCGImage:(struct CGImage *)fp8;
+#if 1 // iOS 4.x
++ (id)imageWithCGImage:(struct CGImage *)fp8 scale:(CGFloat)scale orientation:(UIImageOrientation)orientation;
+#endif
 - (id)initWithContentsOfFile:(id)fp8;
 - (id)initWithData:(id)fp8;
 - (id)initWithCGImage:(struct CGImage *)fp8;
 - (id)stretchableImageWithLeftCapWidth:(int)fp8 topCapHeight:(int)fp12;
 - (id)_automationID;
 
+#if 1 // iOS 4.x?
+- (void) setScale:(CGFloat)scale;
+#endif
+
 @end
 
 
  *     class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2007 by Steve Nygard.
  */
 
-#import "NSObject-Protocol.h"
+//#import "NSObject-Protocol.h"
 
 @protocol UIKeyboardLayoutProtocol <NSObject>
 - (void)showKeyboardType:(int)fp8 withAppearance:(int)fp12;
 
     UIKeyboardReturnKeyView *m_returnKeyView;
     NSMutableArray *m_extraImageViews;
     struct {
-        struct CGRect;
-        struct CGRect;
-        struct CGRect;
-        struct CGRect;
-        struct CGRect;
-        NSString *;
-        NSString *;
-        unsigned int;
-        unsigned int;
-        unsigned int;
-        id;
+        struct CGRect _field1;
+        struct CGRect _field2;
+        struct CGRect _field3;
+        struct CGRect _field4;
+        struct CGRect _field5;
+        NSString * _field6;
+        NSString * _field7;
+        unsigned int _field8;
+        unsigned int _field9;
+        unsigned int _field10;
+        id _field11;
     } *m_keys;
     unsigned int m_keysCount;
     struct __CFDictionary *m_replacementKeys;
 
 
 typedef double UIAccelerationValue;
 
+/*XXX:*/typedef struct {
+    struct CGRect _field1;
+    struct CGRect _field2;
+    struct CGRect _field3;
+    struct CGRect _field4;
+    struct CGRect _field5;
+    id _field6;
+    id _field7;
+    unsigned int _field8;
+    unsigned int _field9;
+    unsigned int _field10;
+    id _field11;
+} CDAnonymousStruct9;
+
 /*XXX:*/typedef struct {
     float top;
     float left;
     UIKeyboardTypeEmailAddress,
 } UIKeyboardType;
 
+typedef enum {
+    UILineBreakModeWordWrap,
+    UILineBreakModeCharacterWrap,
+    UILineBreakModeClip,
+    UILineBreakModeHeadTruncation,
+    UILineBreakModeTailTruncation,
+    UILineBreakModeMiddleTruncation,
+} UILineBreakMode;
+
 typedef enum {
     UINavigationButtonStyleNormal,
     UINavigationButtonStyleBack,
     UITableViewRowAnimationBottom,
 } UITableViewRowAnimation;
 
+typedef enum {
+    UITableViewScrollPositionNone,
+    UITableViewScrollPositionTop,
+    UITableViewScrollPositionMiddle,
+    UITableViewScrollPositionBottom,
+} UITableViewScrollPosition;
+
+typedef enum {
+    UITableViewStylePlain,
+    UITableViewStyleGrouped,
+} UITableViewStyle;
+
 typedef enum {
     UITextAlignmentLeft,
     UITextAlignmentCenter,
 #import <UIKit/UIColor.h>
 #import <UIKit/UIColor-UIColorSystemColors.h>
 #import <UIKit/UIControl-UIControlPrivate.h>
+#import <UIKit/UICoverFlowLayer.h>
+#import <UIKit/UIDefaultKeyboardInput.h>
 #import <UIKit/UIDevice.h>
+#import <UIKit/UIEvent.h>
 #import <UIKit/UIFieldEditor.h>
 #import <UIKit/UIFrameAnimation.h>
 #import <UIKit/UIFont.h>
+#import <UIKit/UIFormAssistant.h>
 #import <UIKit/UIHardware.h>
 #import <UIKit/UIFieldEditor.h>
-#import <UIKit/UIKeyboard.h>
-#import <UIKit/UIKeyboardImpl.h>
 #import <UIKit/UIImage.h>
 #import <UIKit/UIImage-UIImageDeprecated.h>
 #import <UIKit/UIImage-UIImageInternal.h>
 #import <UIKit/UIImageView.h>
 #import <UIKit/UIKeyboard.h>
 #import <UIKit/UIKeyboardImpl.h>
+#import <UIKit/UIKeyboardLayoutRoman.h>
+#import <UIKit/UIKeyboardSublayout.h>
 #import <UIKit/UIModalView.h>
 #import <UIKit/UIModalView-Private.h>
 #import <UIKit/UINavigationBar.h>
 #import <UIKit/UITableColumn.h>
 #import <UIKit/UITableView.h>
 #import <UIKit/UITableViewCell.h>
+#import <UIKit/UITableViewCell-UITableViewCellInternal.h>
+#import <UIKit/UITableViewCell-UITableViewCellStatic.h>
 #import <UIKit/UITableViewController.h>
 #import <UIKit/UITableViewDelegate-Protocol.h>
 #import <UIKit/UITextField.h>
 #import <UIKit/UITextLabel.h>
 #import <UIKit/UITextView.h>
 #import <UIKit/UIThreePartButton.h>
+#import <UIKit/UITabBar.h>
+#import <UIKit/UITabBar-UITabBarPrivate.h>
+#import <UIKit/UITabBarItem.h>
 #import <UIKit/UIToolbar.h>
 #import <UIKit/UIToolbar-UIButtonBarPrivate.h>
 #import <UIKit/UITouch.h>
 #import <UIKit/UIViewController.h>
 #import <UIKit/UIWebDocumentView.h>
 #import <UIKit/UIWebDocumentView-Forms.h>
+#import <UIKit/UIWebDocumentView-Interaction.h>
 #import <UIKit/UIWebDocumentView-Messaging.h>
 #import <UIKit/UIWebView.h>
 #import <UIKit/UIWindow.h>
 
 #import <UIKit/NSIndexPath-UITableView.h>
 
+#import <UIKit/NSString-UIKBExtras.h>
 #import <UIKit/NSString-UIStringDrawing.h>
 #import <UIKit/NSString-UIStringDrawingDeprecated.h>
 
 CGContextRef UIGraphicsGetCurrentContext(void);
 UIWindow *UIWindowFindWithWindowRef(GSWindowRef window);
 
+NSString *UIFormattedPhoneNumberFromString(NSString *string);
+NSString *UIUnformattedPhoneNumberFromString(NSString *string);
+
+void UIRectFill(CGRect rect);
+void UISetColor(CGColorRef color);
+void UISetSystemColor(unsigned color);
+
 GSFontRef UISystemFontCreate(unsigned size, bool bold);
 GSFontRef UISystemFontForSize(unsigned size);
 GSFontRef UISystemFontBoldForSize(unsigned size);
 void UIKeyboardEnableAutomaticAppearance(void);
 void UIKeyboardDisableAutomaticAppearance(void);
 
+BOOL UIKeyboardInputModeUsesKBStar(NSString *);
+
 extern NSString * const kUIButtonBarButtonAction;
 extern NSString * const kUIButtonBarButtonInfo;
 extern NSString * const kUIButtonBarButtonInfoOffset;
 
 - (int)state;
 - (void)drawRect:(struct CGRect)fp8;
 - (void)setAccessoryView:(id)fp8;
+#if 1 // iPhoneOS 3.x
+- (void)setAccessoryView:(id)fp8 animate:(BOOL)fp12;
+#endif
 - (void)setAccessoryView:(id)fp8 animate:(BOOL)fp12 removeOnPop:(BOOL)fp16;
 - (void)pushNavigationItem:(id)fp8 animated:(BOOL)fp12;
 - (void)pushNavigationItem:(id)fp8;
 
 - (id)init;
 - (struct CGRect)applicationFrame;
 - (struct CGRect)bounds;
+#if 1 // iOS 4.x
+- (float) scale;
+#endif
 
 @end
 
 
 @interface UITabBar : UIView
 {
     UIView *_customizeView;
-    id <UITabBarDelegate> _delegate;
+    id /*XXX:<UITabBarDelegate>*/ _delegate;
     NSArray *_items;
     UITabBarItem *_selectedItem;
     NSArray *_customizationItems;
 
 - (void)_setShouldIndentWhileEditing:(BOOL)fp8;
 - (void)_setDrawsTopSeparator:(BOOL)fp8;
 - (void)_drawSeparatorInRect:(struct CGRect)fp8;
+#if 1 // iPhoneOS 1.x
+- (void)_drawContentInRect:(struct CGRect)fp8 selected:(BOOL)fp24;
+#endif
 - (void)_drawBackgroundInRect:(struct CGRect)fp8 withFade:(float)fp24;
 - (id)_removeControl;
 - (void)_grabberBeganReorder:(id)fp8;
 
 - (int)selectionStyle;
 - (void)setSelected:(BOOL)fp8;
 - (BOOL)isSelected;
+#if 1 // iPhoneOS 3.x
+- (BOOL)_isHighlighted;
+- (BOOL)isHighlighted;
+- (float)selectionPercent;
+#endif
 - (void)_deselectAnimationFinished;
 - (void)setSelected:(BOOL)fp8 animated:(BOOL)fp12;
 - (void)setEditingStyle:(int)fp8;
 - (void)setAccessoryAction:(SEL)fp8;
 - (SEL)accessoryAction;
 - (void)drawRect:(struct CGRect)fp8;
+#if 1 // iPhoneOS 3.x
+- (void)setDrawingEnabled:(BOOL)fp8;
+#endif
 - (void)_setIsAncestorOfFirstResponder:(BOOL)fp8;
 - (void)removeFromSuperview;
 - (void)layoutSubviews;
 
 - (void)mouseDown:(struct __GSEvent *)fp8;
 - (void)mouseDragged:(struct __GSEvent *)fp8;
 - (void)mouseUp:(struct __GSEvent *)fp8;
+#if 1 // iPhoneOS 3.x
+- (void)insertText:(id)fp8;
+#endif
 - (void)scrollRectToVisible:(struct CGRect)fp8 animated:(BOOL)fp24;
 - (void)webViewDidChange:(id)fp8;
 - (void)performBecomeEditableTasks;
 
 - (void)setRotationDegrees:(float)fp8 duration:(double)fp12;
 - (float)rotationDegrees;
 - (void)setZoomScale:(float)fp8 duration:(double)fp12;
+#if 1 // iPhoneOS 3.x
+- (void)_setZoomScale:(float)fp8 duration:(double)fp12;
+#endif
 - (float)zoomScale;
 - (int)stateForGestureType:(int)fp8;
 - (void)_resetZoomingWithEvent:(struct __GSEvent *)fp8;
 
 - (id)_doubleTapSpeedFromDefaults;
 - (void)_restoreViewportSettingsWithSize:(struct CGSize)fp8;
 - (id)initWithFrame:(struct CGRect)fp8;
+#if 1 // iPhoneOS 3.x
+- (void)enableReachability;
+#endif
 - (void)dealloc;
 - (void)release;
 - (void)stopLoading:(id)fp8;
 - (void)setUserStyleSheet:(id)fp8;
 - (void)setDetectsPhoneNumbers:(BOOL)fp8;
 - (BOOL)detectsPhoneNumbers;
+#if 1 // iPhoneOS 3.x
+- (void)setDataDetectorTypes:(unsigned int)fp8;
+- (unsigned int)dataDetectorTypes;
+#endif
 - (void)setRespectsBackgroundColorAlpha:(BOOL)fp8;
 - (BOOL)respectsBackgroundColorAlpha;
 - (void)setFrame:(struct CGRect)fp8;
 - (void)forwardInvocation:(id)fp8;
 - (id)methodSignatureForSelector:(SEL)fp8;
 - (void)takeTraitsFrom:(id)fp8;
+#if 1 // iPhoneOS 3.x
+- (void)useSelectionAssistantWithMode:(int)fp8;
+#endif
+
+#if 1 // iPhoneOS 3.2
+- (void)webView:(id)view didFailLoadWithError:(id)error forFrame:(id)frame;
+- (void)webViewDidLayout:(id)webView;
+- (void)webView:(id)view didFirstVisuallyNonEmptyLayoutInFrame:(id)frame;
+- (void)webView:(id)view attachRootLayer:(id)layer;
+- (void)webView:(id)view willAddPlugInView:(id)view2;
+- (void)webViewDidPreventDefaultForEvent:(id)webView;
+#endif
+
+#if 1 // UIWebBrowserView
+- (void)webView:(id)view willCloseFrame:(id)frame;
+- (void)webView:(id)view didFinishDocumentLoadForFrame:(id)frame;
+- (void)webView:(id)view didFirstLayoutInFrame:(id)frame;
+- (void)webViewFormEditedStatusHasChanged:(id)changed;
+- (void)webView:(id)view formStateDidFocusNode:(id)formState;
+- (void)webView:(id)view formStateDidBlurNode:(id)formState;
+#endif
 
 @end