ios version
[wl-mobile.git] / Plugins / NativeControls / NativeControls.h
diff --git a/Plugins/NativeControls/NativeControls.h b/Plugins/NativeControls/NativeControls.h
new file mode 100644 (file)
index 0000000..31976ce
--- /dev/null
@@ -0,0 +1,59 @@
+//
+//  NativeControls.h
+//
+//
+//  Created by Jesse MacFadyen on 10-02-03.
+//  MIT Licensed
+
+//  Originally this code was developed my Michael Nachbaur
+//  Formerly -> PhoneGap :: UIControls.h
+//  Created by Michael Nachbaur on 13/04/09.
+//  Copyright 2009 Decaf Ninja Software. All rights reserved.
+
+#import <Foundation/Foundation.h>
+#import <UIKit/UIKit.h>
+#import <UIKit/UITabBar.h>
+#import <UIKit/UIToolbar.h>
+#ifdef PHONEGAP_FRAMEWORK
+#import <PhoneGap/PGPlugin.h>
+#else
+#import "PGPlugin.h"
+#endif
+
+@interface NativeControls : PGPlugin <UITabBarDelegate, UIActionSheetDelegate> {
+       UITabBar* tabBar;
+       NSMutableDictionary* tabBarItems;
+    
+       UIToolbar* toolBar;
+       UIBarButtonItem* toolBarTitle;
+       NSMutableArray* toolBarItems;
+    
+       CGRect  originalWebViewBounds;
+}
+
+/* Tab Bar methods
+ */
+- (void)createTabBar:(NSArray*)arguments withDict:(NSDictionary*)options;
+- (void)showTabBar:(NSArray*)arguments withDict:(NSDictionary*)options;
+- (void)hideTabBar:(NSArray*)arguments withDict:(NSDictionary*)options;
+- (void)showTabBarItems:(NSArray*)arguments withDict:(NSDictionary*)options;
+- (void)createTabBarItem:(NSArray*)arguments withDict:(NSDictionary*)options;
+- (void)updateTabBarItem:(NSArray*)arguments withDict:(NSDictionary*)options;
+- (void)selectTabBarItem:(NSArray*)arguments withDict:(NSDictionary*)options;
+
+
+
+/* Tool Bar methods
+ */
+- (void)createToolBar:(NSArray*)arguments withDict:(NSDictionary*)options;
+- (void)resetToolBar:(NSArray*)arguments withDict:(NSDictionary*)options;
+- (void)setToolBarTitle:(NSArray*)arguments withDict:(NSDictionary*)options;
+- (void)createToolBarItem:(NSArray*)arguments withDict:(NSDictionary*)options;
+- (void)showToolBar:(NSArray*)arguments withDict:(NSDictionary*)options;
+- (void)hideToolBar:(NSArray*)arguments withDict:(NSDictionary*)options;
+/* ActionSheet
+ */
+- (void)createActionSheet:(NSArray*)arguments withDict:(NSDictionary*)options;
+
+
+@end
\ No newline at end of file