//
//  ViewController.m
//  StoryboardExample
//
//  Copyright (c) 2013 Cisco Systems. All rights reserved.
//

#import "ViewController.h"

@interface ViewController ()

@end

@implementation ViewController

- (void)viewDidLoad
{
    [super viewDidLoad];
	// Do any additional setup after loading the view, typically from a nib.
}

- (void)didReceiveMemoryWarning
{
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender
{
    // Make sure your segue name in the storyboard is the same as this line
    if ([[segue identifier] isEqualToString:@"StartJabberGuest"])
    {
        // Get reference to the destination view controller
        CJGuestCallViewController *cc = [segue destinationViewController];
        
        // Pass any objects to the view controller here, like ...
        cc.serverName = @"jabberguestsandbox.cisco.com";
        cc.toURI = @"5555";
        cc.delegate = self;
    }
}

- (void) callFinishedForCallController:(CJGuestCallViewController *)callController
{
    callController.navigationController.navigationBarHidden = NO;
    [callController.navigationController popViewControllerAnimated:YES];
}
@end
