diff --git a/Classes/CallHistoryTableViewController.m b/Classes/CallHistoryTableViewController.m
index 3e248bd8a..674bdda6f 100644
--- a/Classes/CallHistoryTableViewController.m
+++ b/Classes/CallHistoryTableViewController.m
@@ -33,15 +33,16 @@
}
*/
-/*
+
- (void)viewDidLoad {
[super viewDidLoad];
-
- // Uncomment the following line to display an Edit button in the navigation bar for this view controller.
- // self.navigationItem.rightBarButtonItem = self.editButtonItem;
+ UIBarButtonItem* clear = [[UIBarButtonItem alloc]
+ initWithBarButtonSystemItem:UIBarButtonSystemItemTrash
+ target:self
+ action:@selector(doAction:)];
+ [self.navigationItem setRightBarButtonItem:clear];
}
-*/
/*
- (void)viewWillAppear:(BOOL)animated {
@@ -87,10 +88,8 @@
-(void) doAction:(id)sender {
- if (sender==clear) {
- linphone_core_clear_call_logs(myLinphoneCore);
- [self.tableView reloadData];
- }
+ linphone_core_clear_call_logs(myLinphoneCore);
+ [self.tableView reloadData];
}
#pragma mark Table view methods
diff --git a/Classes/CallHistoryTableViewController.xib b/Classes/CallHistoryTableViewController.xib
index 816d687b2..ceb06857e 100644
--- a/Classes/CallHistoryTableViewController.xib
+++ b/Classes/CallHistoryTableViewController.xib
@@ -9,7 +9,6 @@
@@ -139,31 +80,6 @@
7
-
-
- header
-
-
-
- 11
-
-
-
- clear
-
-
-
- 12
-
-
-
- doAction:
-
-
- 7
-
- 13
-
@@ -192,27 +108,6 @@
-
- 8
-
-
- YES
-
-
-
-
- Header
-
-
- 9
-
-
-
-
- 10
-
-
-
@@ -221,22 +116,14 @@
YES
-1.CustomClassName
-2.CustomClassName
- 10.IBPluginDependency
4.IBEditorWindowLastContentRect
4.IBPluginDependency
- 8.IBEditorWindowLastContentRect
- 8.IBPluginDependency
- 9.IBPluginDependency
YES
CallHistoryTableViewController
UIResponder
- com.apple.InterfaceBuilder.IBCocoaTouchPlugin
- {{393, 486}, {320, 480}}
- com.apple.InterfaceBuilder.IBCocoaTouchPlugin
- {{625, 616}, {320, 44}}
- com.apple.InterfaceBuilder.IBCocoaTouchPlugin
+ {{163, 500}, {320, 480}}
com.apple.InterfaceBuilder.IBCocoaTouchPlugin
diff --git a/Classes/ConsoleViewController.h b/Classes/ConsoleViewController.h
new file mode 100644
index 000000000..090604fb0
--- /dev/null
+++ b/Classes/ConsoleViewController.h
@@ -0,0 +1,32 @@
+/*
+ * ConsoleViewController.h
+ *
+ * Description:
+ *
+ *
+ * Belledonne Communications (C) 2010
+ *
+ * Copyright: See COPYING file that comes with this distribution
+ *
+ */
+
+
+#import
+
+@protocol LogView
++(void) addLog:(NSString*) log;
+
+@end
+
+@interface ConsoleViewController : UIViewController {
+ UITextView* logs;
+ UIView* logsView;
+
+
+}
+-(void) doAction;
+@property (nonatomic, retain) IBOutlet UITextView* logs;
+@property (nonatomic, retain) IBOutlet UIView* logsView;
+
+
+@end
diff --git a/Classes/ConsoleViewController.m b/Classes/ConsoleViewController.m
new file mode 100644
index 000000000..722b08289
--- /dev/null
+++ b/Classes/ConsoleViewController.m
@@ -0,0 +1,98 @@
+/*
+ * ConsoleViewController.h
+ *
+ * Description:
+ *
+ *
+ * Belledonne Communications (C) 2010
+ *
+ * Copyright: See COPYING file that comes with this distribution
+ *
+ */
+
+
+#import "ConsoleViewController.h"
+
+
+@implementation ConsoleViewController
+NSMutableString* MoreViewController_logs;
+
+@synthesize logs;
+@synthesize logsView;
+
+/*
+ // The designated initializer. Override if you create the controller programmatically and want to perform customization that is not appropriate for viewDidLoad.
+- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil {
+ if (self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil]) {
+ // Custom initialization
+ }
+ return self;
+}
+*/
+
+
+// Implement viewDidLoad to do additional setup after loading the view, typically from a nib.
+- (void)viewDidLoad {
+ [super viewDidLoad];
+ UIBarButtonItem* clear = [[UIBarButtonItem alloc]
+ initWithBarButtonSystemItem:UIBarButtonSystemItemTrash
+ target:self
+ action:@selector(doAction)];
+ [self.navigationItem setRightBarButtonItem:clear];
+}
+
+
+/*
+// Override to allow orientations other than the default portrait orientation.
+- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation {
+ // Return YES for supported orientations
+ return (interfaceOrientation == UIInterfaceOrientationPortrait);
+}
+*/
+
+-(void) viewWillAppear:(BOOL)animated {
+ [logs setText:MoreViewController_logs];
+}
+
+- (void)didReceiveMemoryWarning {
+ // Releases the view if it doesn't have a superview.
+ [super didReceiveMemoryWarning];
+
+ // Release any cached data, images, etc that aren't in use.
+}
+
+- (void)viewDidUnload {
+ // Release any retained subviews of the main view.
+ // e.g. self.myOutlet = nil;
+}
+
+
++(void) addLog:(NSString*) log {
+ @synchronized(self) {
+ if (!MoreViewController_logs) {
+ MoreViewController_logs = [[NSMutableString alloc] init];
+ }
+ [MoreViewController_logs appendString:log];
+ if (MoreViewController_logs.length > 50000) {
+ NSRange range = {0,log.length};
+ [MoreViewController_logs deleteCharactersInRange:range];
+ }
+ }
+}
+-(void) doAction{
+ @synchronized(self) {
+ NSMutableString* oldString = MoreViewController_logs;
+ MoreViewController_logs = [[NSMutableString alloc] init];
+ [oldString release];
+ [logs setText:@""];
+ }
+}
+
+
+
+- (void)dealloc {
+ [super dealloc];
+}
+
+
+@end
diff --git a/Classes/ConsoleViewController.xib b/Classes/ConsoleViewController.xib
new file mode 100644
index 000000000..16846dae6
--- /dev/null
+++ b/Classes/ConsoleViewController.xib
@@ -0,0 +1,228 @@
+
+
+
+ 784
+ 9L31a
+ 680
+ 949.54
+ 353.00
+
+ YES
+
+
+
+ YES
+ com.apple.InterfaceBuilder.IBCocoaTouchPlugin
+
+
+ YES
+
+ YES
+
+
+ YES
+
+
+
+ YES
+
+ IBFilesOwner
+
+
+ IBFirstResponder
+
+
+
+
+ 292
+
+ YES
+
+
+ 274
+ {320, 450}
+
+
+ 1
+ MSAxIDEAA
+
+ YES
+ YES
+ NO
+ NO
+ NO
+ NO
+ NO
+
+
+ 2
+
+
+
+ {320, 460}
+
+
+ 3
+ MQA
+
+ 2
+
+
+ NO
+
+
+
+
+
+
+ YES
+
+
+ logs
+
+
+
+ 9
+
+
+
+ logsView
+
+
+
+ 13
+
+
+
+ view
+
+
+
+ 14
+
+
+
+
+ YES
+
+ 0
+
+ YES
+
+
+
+
+
+ -1
+
+
+ RmlsZSdzIE93bmVyA
+
+
+ -2
+
+
+
+
+ 10
+
+
+ YES
+
+
+
+
+
+ 4
+
+
+ YES
+
+
+
+ logView
+
+
+ 7
+
+
+
+
+
+
+ YES
+
+ YES
+ -1.CustomClassName
+ -2.CustomClassName
+ 10.CustomClassName
+ 10.IBEditorWindowLastContentRect
+ 10.IBPluginDependency
+ 4.IBPluginDependency
+ 7.IBPluginDependency
+
+
+ YES
+ ConsoleViewController
+ UIResponder
+ ConsoleViewController
+ {{807, 300}, {320, 480}}
+ com.apple.InterfaceBuilder.IBCocoaTouchPlugin
+ com.apple.InterfaceBuilder.IBCocoaTouchPlugin
+ com.apple.InterfaceBuilder.IBCocoaTouchPlugin
+
+
+
+ YES
+
+ YES
+
+
+ YES
+
+
+
+
+ YES
+
+ YES
+
+
+ YES
+
+
+
+ 14
+
+
+
+ YES
+
+ ConsoleViewController
+ UIViewController
+
+ YES
+
+ YES
+ logs
+ logsView
+
+
+ YES
+ UITextView
+ UIView
+
+
+
+ IBProjectSource
+ Classes/ConsoleViewController.h
+
+
+
+
+ 0
+ ../linphone.xcodeproj
+ 3
+ 3.1
+
+
diff --git a/Classes/MoreViewController.h b/Classes/MoreViewController.h
new file mode 100644
index 000000000..6ee379440
--- /dev/null
+++ b/Classes/MoreViewController.h
@@ -0,0 +1,46 @@
+/* MoreViewController.h
+ *
+ * Copyright (C) 2009 Belledonne Comunications, Grenoble, France
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU Library General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#import
+#include "linphoneAppDelegate.h"
+
+
+
+
+@class ConsoleViewController;
+@interface MoreViewController : UITableViewController {
+
+ bool isLogViewEnabled;
+
+ UITableViewCell *credit;
+ UITextView *creditText;
+
+ UITableViewCell *web;
+ UITableViewCell *console;
+
+ ConsoleViewController *consoleViewController;
+ bool isDebug;
+}
+
+@property (nonatomic, retain) IBOutlet UITableViewCell* web;
+@property (nonatomic, retain) IBOutlet UITableViewCell* credit;
+@property (nonatomic, retain) IBOutlet UITableViewCell* console;
+@property (nonatomic, retain) IBOutlet UITextView *creditText;
+
+@end
diff --git a/Classes/MoreViewController.m b/Classes/MoreViewController.m
new file mode 100644
index 000000000..70acb4cf4
--- /dev/null
+++ b/Classes/MoreViewController.m
@@ -0,0 +1,140 @@
+/* MoreViewController.m
+ *
+ * Copyright (C) 2009 Belledonne Comunications, Grenoble, France
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU Library General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#import "MoreViewController.h"
+#include "ConsoleViewController.h"
+
+
+
+@implementation MoreViewController
+@synthesize web;
+@synthesize credit;
+@synthesize console;
+@synthesize creditText;
+
+
+//Implement viewDidLoad to do additional setup after loading the view, typically from a nib.
+- (void)viewDidLoad {
+ [super viewDidLoad];
+ [creditText setText: [NSString stringWithFormat:creditText.text,@"3.1.2"]];
+ consoleViewController = [[ConsoleViewController alloc] initWithNibName:@"ConsoleViewController" bundle:[NSBundle mainBundle]];
+ isDebug = [[NSUserDefaults standardUserDefaults] boolForKey:@"debugenable_preference"];
+
+}
+
+
+
+/*
+// Override to allow orientations other than the default portrait orientation.
+- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation {
+ // Return YES for supported orientations
+ return (interfaceOrientation == UIInterfaceOrientationPortrait);
+}
+*/
+
+- (void)didReceiveMemoryWarning {
+ // Releases the view if it doesn't have a superview.
+ [super didReceiveMemoryWarning];
+
+ // Release any cached data, images, etc that aren't in use.
+}
+
+- (void)viewDidUnload {
+ // Release any retained subviews of the main view.
+ // e.g. self.myOutlet = nil;
+}
+
+
+- (void)dealloc {
+ [super dealloc];
+}
+
+
+
+-(void) enableLogView {
+ isLogViewEnabled = true;
+
+}
+
+- (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView {
+ return 2;
+}
+
+- (CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath {
+ if (indexPath.section == 0) {
+ return 230;
+ } else {
+ return 44;
+ }
+}
+
+// Customize the number of rows in the table view.
+- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section {
+ if (section == 0) {
+ return 1;
+ } else {
+ if (isDebug) {
+ return 2;
+ } else {
+ return 1;
+ }
+ }
+}
+
+
+
+
+- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {
+ if (indexPath.section == 0) {
+ return credit;
+ } else {
+ switch (indexPath.row) {
+ case 0: return web;
+ case 1: return console;
+ }
+ }
+ return nil;
+}
+
+- (void)tableView:(UITableView *)tableView accessoryButtonTappedForRowWithIndexPath:(NSIndexPath *)indexPath {
+
+ [self tableView:tableView didSelectRowAtIndexPath:indexPath];
+}
+
+- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath {
+
+
+ [tableView deselectRowAtIndexPath:indexPath animated:NO];
+
+ switch (indexPath.row) {
+ case 0: {
+ NSString *stringURL = @"http://www.linphone.org";
+ NSURL *url = [NSURL URLWithString:stringURL];
+ [[UIApplication sharedApplication] openURL:url];
+ break;
+ };
+ case 1: {
+ [self.navigationController pushViewController:consoleViewController animated:true];
+ break;
+ }
+ }
+
+}
+
+@end
diff --git a/Classes/MoreViewController.xib b/Classes/MoreViewController.xib
new file mode 100644
index 000000000..134dcf6d8
--- /dev/null
+++ b/Classes/MoreViewController.xib
@@ -0,0 +1,445 @@
+
+
+
+ 784
+ 9L31a
+ 680
+ 949.54
+ 353.00
+
+ YES
+
+
+
+
+
+
+ YES
+ com.apple.InterfaceBuilder.IBCocoaTouchPlugin
+
+
+ YES
+
+ YES
+
+
+ YES
+
+
+
+ YES
+
+ IBFilesOwner
+
+
+ IBFirstResponder
+
+
+
+
+ 274
+ {{0, 106}, {320, 247}}
+
+ NO
+ YES
+ NO
+ NO
+ 1
+ 1
+ 0
+ YES
+ 4.400000e+01
+ 1.000000e+01
+ 1.000000e+01
+
+
+
+
+
+ 292
+
+ YES
+
+
+ 256
+
+ YES
+
+
+ 292
+ {{20, 0}, {300, 44}}
+
+ NO
+ YES
+ NO
+ http://www.linphone.org
+
+ 1
+ MCAwLjUwMTk2MDgxIDEAA
+
+
+ 1
+ 1.000000e+01
+
+
+ {300, 43}
+
+
+ 3
+ MCAwAA
+
+ NO
+ YES
+ 4
+ YES
+
+
+ {320, 44}
+
+
+ 1
+ MSAxIDEAA
+
+ NO
+ 1
+ 1
+
+
+
+
+ 292
+
+ YES
+
+
+ 256
+
+ YES
+
+
+ 292
+ {{20, 0}, {300, 44}}
+
+ NO
+ YES
+ NO
+ Console
+
+ 1
+ MCAwIDAAA
+
+
+ 1
+ 1.000000e+01
+
+
+ {300, 43}
+
+
+ NO
+ YES
+ 4
+ YES
+
+
+ {320, 44}
+
+
+ NO
+ 1
+ 1
+
+
+
+
+ 292
+
+ YES
+
+
+ 256
+
+ YES
+
+
+ 292
+ {{23, 7}, {263, 154}}
+
+ NO
+ NO
+ 4
+ NO
+
+ NSImage
+ linphone.png
+
+
+
+
+ 292
+ {{34, 175}, {240, 106}}
+
+ NO
+ YES
+ YES
+ NO
+ NO
+ NO
+ NO
+ TGlucGhvbmUgJUAg4oCoU0lQIChyZmMzMjYxKSBjb21wYXRpYmxlICBJbnRlcm5ldCBwaG9uZSAgIA
+ 1
+
+ 2
+
+
+
+ {322, 229}
+
+
+ NO
+ YES
+ 4
+ YES
+
+
+ {322, 230}
+
+
+ NO
+ NO
+ 1
+
+
+
+
+
+ YES
+
+
+ web
+
+
+
+ 32
+
+
+
+ console
+
+
+
+ 40
+
+
+
+ credit
+
+
+
+ 46
+
+
+
+ view
+
+
+
+ 47
+
+
+
+ creditText
+
+
+
+ 48
+
+
+
+
+ YES
+
+ 0
+
+ YES
+
+
+
+
+
+ -1
+
+
+ RmlsZSdzIE93bmVyA
+
+
+ -2
+
+
+
+
+ 4
+
+
+ YES
+
+
+
+
+
+ 25
+
+
+ YES
+
+
+
+ web
+
+
+ 34
+
+
+
+
+ 38
+
+
+ YES
+
+
+
+ console
+
+
+ 39
+
+
+
+
+ 42
+
+
+ YES
+
+
+
+
+ about
+
+
+ 43
+
+
+
+
+ 45
+
+
+
+
+ 18
+
+
+
+
+
+
+ YES
+
+ YES
+ -1.CustomClassName
+ -2.CustomClassName
+ 18.IBEditorWindowLastContentRect
+ 18.IBPluginDependency
+ 25.IBEditorWindowLastContentRect
+ 25.IBPluginDependency
+ 34.IBPluginDependency
+ 38.IBEditorWindowLastContentRect
+ 38.IBPluginDependency
+ 39.IBPluginDependency
+ 4.IBEditorWindowLastContentRect
+ 4.IBPluginDependency
+ 42.IBEditorWindowLastContentRect
+ 42.IBPluginDependency
+ 43.IBPluginDependency
+ 45.IBPluginDependency
+
+
+ YES
+ MoreViewController
+ UIResponder
+ {{138, 864}, {320, 247}}
+ com.apple.InterfaceBuilder.IBCocoaTouchPlugin
+ {{251, 502}, {320, 44}}
+ com.apple.InterfaceBuilder.IBCocoaTouchPlugin
+ com.apple.InterfaceBuilder.IBCocoaTouchPlugin
+ {{252, 1012}, {320, 44}}
+ com.apple.InterfaceBuilder.IBCocoaTouchPlugin
+ com.apple.InterfaceBuilder.IBCocoaTouchPlugin
+ {{79, 106}, {320, 480}}
+ com.apple.InterfaceBuilder.IBCocoaTouchPlugin
+ {{462, 709}, {322, 230}}
+ com.apple.InterfaceBuilder.IBCocoaTouchPlugin
+ com.apple.InterfaceBuilder.IBCocoaTouchPlugin
+ com.apple.InterfaceBuilder.IBCocoaTouchPlugin
+
+
+
+ YES
+
+ YES
+
+
+ YES
+
+
+
+
+ YES
+
+ YES
+
+
+ YES
+
+
+
+ 48
+
+
+
+ YES
+
+ MoreViewController
+ UITableViewController
+
+ YES
+
+ YES
+ console
+ credit
+ creditText
+ web
+
+
+ YES
+ UITableViewCell
+ UITableViewCell
+ UITextView
+ UITableViewCell
+
+
+
+ IBProjectSource
+ Classes/MoreViewController.h
+
+
+
+
+ 0
+ ../linphone.xcodeproj
+ 3
+ 3.1
+
+
diff --git a/Classes/PhoneViewController.m b/Classes/PhoneViewController.m
index faee724f2..aff6bf662 100644
--- a/Classes/PhoneViewController.m
+++ b/Classes/PhoneViewController.m
@@ -308,6 +308,7 @@
switch (state->new_state) {
case GSTATE_CALL_IN_INVITE:
case GSTATE_CALL_OUT_INVITE: {
+ [hangup setEnabled:true];
break;
}
@@ -358,6 +359,7 @@
[address setHidden:false];
[incallView setHidden:true];
[call setEnabled:true];
+ [hangup setEnabled:false];
if (durationRefreasher != nil) {
[ durationRefreasher invalidate];
diff --git a/Classes/PhoneViewController.xib b/Classes/PhoneViewController.xib
index 3812cea78..bfcacf847 100644
--- a/Classes/PhoneViewController.xib
+++ b/Classes/PhoneViewController.xib
@@ -8,7 +8,7 @@
353.00
YES
-
+
YES
@@ -411,6 +411,7 @@
NO
NO
+ NO
0
0
@@ -446,12 +447,15 @@
Helvetica
- 1.800000e+01
+ 2.400000e+01
16
YES
1.700000e+01
-
+
+ 1
+ 3
+
3
diff --git a/Classes/linphoneAppDelegate.m b/Classes/linphoneAppDelegate.m
index 7dfa67470..3f79607fa 100644
--- a/Classes/linphoneAppDelegate.m
+++ b/Classes/linphoneAppDelegate.m
@@ -24,18 +24,27 @@
#import
#import
#import "osip2/osip.h"
+#import "ConsoleViewController.h"
+#import "MoreViewController.h"
+
extern void ms_au_register_card();
//generic log handler for debug version
-void linphone_iphone_log_handler(OrtpLogLevel lev, const char *fmt, va_list args){
+void linphone_iphone_log_handler(int lev, const char *fmt, va_list args){
NSString* format = [[NSString alloc] initWithCString:fmt encoding:[NSString defaultCStringEncoding]];
NSLogv(format,args);
+ NSString* formatedString = [[NSString alloc] initWithFormat:format arguments:args];
+ [ConsoleViewController addLog:formatedString];
[format release];
+ [formatedString release];
}
//Error/warning log handler
void linphone_iphone_log(struct _LinphoneCore * lc, const char * message) {
- NSLog([NSString stringWithCString:message length:strlen(message)]);
+ NSString* log = [NSString stringWithCString:message length:strlen(message)];
+ NSLog(log);
+ [ConsoleViewController addLog:log];
}
+
//status
void linphone_iphone_display_status(struct _LinphoneCore * lc, const char * message) {
PhoneViewController* lPhone = ((linphoneAppDelegate*) linphone_core_get_user_data(lc)).myPhoneViewController;
@@ -96,7 +105,10 @@ LinphoneCoreVTable linphonec_vtable = {
myPhoneViewController = (PhoneViewController*) [myTabBarController.viewControllers objectAtIndex: DIALER_TAB_INDEX];
- myCallHistoryTableViewController = (CallHistoryTableViewController*)[myTabBarController.viewControllers objectAtIndex: HISTORY_TAB_INDEX];
+ //Call history
+ myCallHistoryTableViewController = [[CallHistoryTableViewController alloc] initWithNibName:@"CallHistoryTableViewController" bundle:[NSBundle mainBundle]];
+ UINavigationController *aCallHistNavigationController = [[UINavigationController alloc] initWithRootViewController:myCallHistoryTableViewController];
+ aCallHistNavigationController.tabBarItem = [(UIViewController*)[myTabBarController.viewControllers objectAtIndex:HISTORY_TAB_INDEX] tabBarItem];
[myCallHistoryTableViewController setPhoneControllerDelegate:myPhoneViewController];
[myCallHistoryTableViewController setLinphoneDelegate:self];
@@ -111,9 +123,20 @@ LinphoneCoreVTable linphonec_vtable = {
[myPeoplePickerController setPeoplePickerDelegate:myContactPickerDelegate];
//copy tab bar item
myPeoplePickerController.tabBarItem = [(UIViewController*)[myTabBarController.viewControllers objectAtIndex:CONTACTS_TAB_INDEX] tabBarItem];
+
+ //more tab
+ MoreViewController *moreViewController = [[MoreViewController alloc] initWithNibName:@"MoreViewController" bundle:[NSBundle mainBundle]];
+ UINavigationController *aNavigationController = [[UINavigationController alloc] initWithRootViewController:moreViewController];
+ //copy tab bar item
+ aNavigationController.tabBarItem = [(UIViewController*)[myTabBarController.viewControllers objectAtIndex:MORE_TAB_INDEX] tabBarItem];
+
+
+
//insert contact controller
NSMutableArray* newArray = [NSMutableArray arrayWithArray:self.myTabBarController.viewControllers];
[newArray replaceObjectAtIndex:CONTACTS_TAB_INDEX withObject:myPeoplePickerController];
+ [newArray replaceObjectAtIndex:MORE_TAB_INDEX withObject:aNavigationController];
+ [newArray replaceObjectAtIndex:HISTORY_TAB_INDEX withObject:aCallHistNavigationController];
[myTabBarController setSelectedIndex:DIALER_TAB_INDEX];
[myTabBarController setViewControllers:newArray animated:NO];
diff --git a/PhoneMainView.xib b/PhoneMainView.xib
index 7f9a4bd9a..d894009cd 100644
--- a/PhoneMainView.xib
+++ b/PhoneMainView.xib
@@ -8,7 +8,7 @@
353.00
YES
-
+
YES
@@ -51,11 +51,10 @@
History
- History
+ 6
- CallHistoryTableViewController
@@ -79,8 +78,9 @@
- About
+
+ 0
@@ -258,6 +258,7 @@
4.IBPluginDependency
41.CustomClassName
41.IBPluginDependency
+ 43.CustomClassName
43.IBPluginDependency
8.IBEditorWindowLastContentRect
8.IBPluginDependency
@@ -288,8 +289,9 @@
com.apple.InterfaceBuilder.IBCocoaTouchPlugin
CallHistoryTableViewController
com.apple.InterfaceBuilder.IBCocoaTouchPlugin
+ MoreViewController
com.apple.InterfaceBuilder.IBCocoaTouchPlugin
- {{11, 205}, {320, 480}}
+ {{227, 205}, {320, 480}}
com.apple.InterfaceBuilder.IBCocoaTouchPlugin
com.apple.InterfaceBuilder.IBCocoaTouchPlugin
@@ -358,6 +360,31 @@
Classes/GenericTabViewController.h
+
+ MoreViewController
+ UITableViewController
+
+ YES
+
+ YES
+ console
+ credit
+ creditText
+ web
+
+
+ YES
+ UITableViewCell
+ UITableViewCell
+ UITextView
+ UITableViewCell
+
+
+
+ IBProjectSource
+ Classes/MoreViewController.h
+
+
PhoneViewController
UIViewController
diff --git a/linphone-Info.plist b/linphone-Info.plist
index 1418f3cba..31b172911 100644
--- a/linphone-Info.plist
+++ b/linphone-Info.plist
@@ -22,6 +22,8 @@
????
CFBundleVersion
1.0
+ CFBundleShortVersionString
+ 3.1.2
LSRequiresIPhoneOS
NSMainNibFile
diff --git a/linphone.xcodeproj/project.pbxproj b/linphone.xcodeproj/project.pbxproj
index 4dd4b9267..8fc98bd8a 100755
--- a/linphone.xcodeproj/project.pbxproj
+++ b/linphone.xcodeproj/project.pbxproj
@@ -43,6 +43,10 @@
22B5F03510CE6B2F00777D97 /* AddressBook.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 22B5F03410CE6B2F00777D97 /* AddressBook.framework */; };
22E0A785111C1BA800B04932 /* Speaker-32-on.png in Resources */ = {isa = PBXBuildFile; fileRef = 22E0A783111C1BA800B04932 /* Speaker-32-on.png */; };
22E0A786111C1BA800B04932 /* Speaker-32-off.png in Resources */ = {isa = PBXBuildFile; fileRef = 22E0A784111C1BA800B04932 /* Speaker-32-off.png */; };
+ 22E0A821111C44E100B04932 /* MoreViewController.xib in Resources */ = {isa = PBXBuildFile; fileRef = 22E0A81B111C44E100B04932 /* MoreViewController.xib */; };
+ 22E0A822111C44E100B04932 /* MoreViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 22E0A81C111C44E100B04932 /* MoreViewController.m */; };
+ 22E0A823111C44E100B04932 /* ConsoleViewController.xib in Resources */ = {isa = PBXBuildFile; fileRef = 22E0A81E111C44E100B04932 /* ConsoleViewController.xib */; };
+ 22E0A824111C44E100B04932 /* ConsoleViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 22E0A81F111C44E100B04932 /* ConsoleViewController.m */; };
22F2508E107141E100AC9B3F /* PhoneViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 22F2508C107141E100AC9B3F /* PhoneViewController.m */; };
22F2508F107141E100AC9B3F /* PhoneViewController.xib in Resources */ = {isa = PBXBuildFile; fileRef = 22F2508D107141E100AC9B3F /* PhoneViewController.xib */; };
22F254811073D99800AC9B3F /* ringback.wav in Resources */ = {isa = PBXBuildFile; fileRef = 22F254801073D99800AC9B3F /* ringback.wav */; };
@@ -212,6 +216,12 @@
22B5F03410CE6B2F00777D97 /* AddressBook.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = AddressBook.framework; path = System/Library/Frameworks/AddressBook.framework; sourceTree = SDKROOT; };
22E0A783111C1BA800B04932 /* Speaker-32-on.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; name = "Speaker-32-on.png"; path = "Resources/Speaker-32-on.png"; sourceTree = ""; };
22E0A784111C1BA800B04932 /* Speaker-32-off.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; name = "Speaker-32-off.png"; path = "Resources/Speaker-32-off.png"; sourceTree = ""; };
+ 22E0A81B111C44E100B04932 /* MoreViewController.xib */ = {isa = PBXFileReference; lastKnownFileType = file.xib; path = MoreViewController.xib; sourceTree = ""; };
+ 22E0A81C111C44E100B04932 /* MoreViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = MoreViewController.m; sourceTree = ""; };
+ 22E0A81D111C44E100B04932 /* MoreViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = MoreViewController.h; sourceTree = ""; };
+ 22E0A81E111C44E100B04932 /* ConsoleViewController.xib */ = {isa = PBXFileReference; lastKnownFileType = file.xib; path = ConsoleViewController.xib; sourceTree = ""; };
+ 22E0A81F111C44E100B04932 /* ConsoleViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = ConsoleViewController.m; sourceTree = ""; };
+ 22E0A820111C44E100B04932 /* ConsoleViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ConsoleViewController.h; sourceTree = ""; };
22F2508B107141E100AC9B3F /* PhoneViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = PhoneViewController.h; sourceTree = ""; };
22F2508C107141E100AC9B3F /* PhoneViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = PhoneViewController.m; sourceTree = ""; };
22F2508D107141E100AC9B3F /* PhoneViewController.xib */ = {isa = PBXFileReference; lastKnownFileType = file.xib; path = PhoneViewController.xib; sourceTree = ""; };
@@ -257,6 +267,12 @@
080E96DDFE201D6D7F000001 /* Classes */ = {
isa = PBXGroup;
children = (
+ 22E0A81B111C44E100B04932 /* MoreViewController.xib */,
+ 22E0A81C111C44E100B04932 /* MoreViewController.m */,
+ 22E0A81D111C44E100B04932 /* MoreViewController.h */,
+ 22E0A81E111C44E100B04932 /* ConsoleViewController.xib */,
+ 22E0A81F111C44E100B04932 /* ConsoleViewController.m */,
+ 22E0A820111C44E100B04932 /* ConsoleViewController.h */,
1D3623240D0F684500981E51 /* linphoneAppDelegate.h */,
1D3623250D0F684500981E51 /* linphoneAppDelegate.m */,
22F2508B107141E100AC9B3F /* PhoneViewController.h */,
@@ -622,6 +638,8 @@
2242D91B10D66C2100E9963F /* mic_muted.png in Resources */,
22E0A785111C1BA800B04932 /* Speaker-32-on.png in Resources */,
22E0A786111C1BA800B04932 /* Speaker-32-off.png in Resources */,
+ 22E0A821111C44E100B04932 /* MoreViewController.xib in Resources */,
+ 22E0A823111C44E100B04932 /* ConsoleViewController.xib in Resources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
@@ -638,6 +656,8 @@
22B5EFE510CE5E5800777D97 /* ContactPickerDelegate.m in Sources */,
227BCDC210D4004600FBFD76 /* CallHistoryTableViewController.m in Sources */,
2242D9C910D691F900E9963F /* GenericTabViewController.m in Sources */,
+ 22E0A822111C44E100B04932 /* MoreViewController.m in Sources */,
+ 22E0A824111C44E100B04932 /* ConsoleViewController.m in Sources */,
);
runOnlyForDeploymentPostprocessing = 0;
};