Add history details view

Improve history view
This commit is contained in:
Yann Diorcet 2012-08-24 14:25:43 +02:00
parent c2f542bd79
commit 13dfcd23d1
33 changed files with 1560 additions and 74 deletions

View file

@ -47,8 +47,8 @@
</object>
<bool key="IBUIOpaque">NO</bool>
<bool key="IBUIClearsContextBeforeDrawing">NO</bool>
<object class="IBUISimulatedStatusBarMetrics" key="IBUISimulatedStatusBarMetrics"/>
<string key="targetRuntimeIdentifier">IBCocoaTouchFramework</string>
<bool key="IBUIVisibleAtLaunch">YES</bool>
<bool key="IBUIResizesToFullScreen">YES</bool>
</object>
</array>
@ -116,7 +116,7 @@
<nil key="activeLocalization"/>
<dictionary class="NSMutableDictionary" key="localizations"/>
<nil key="sourceID"/>
<int key="maxID">28</int>
<int key="maxID">31</int>
</object>
<object class="IBClassDescriber" key="IBDocument.Classes">
<array class="NSMutableArray" key="referencedPartialClassDescriptions">

View file

@ -178,12 +178,15 @@
[microButton update];
switch (state) {
case LinphoneCallIncomingEarlyMedia:
case LinphoneCallIncomingReceived:
{
[self displayIncomingCall:call];
break;
}
case LinphoneCallOutgoingInit:
case LinphoneCallOutgoingProgress:
case LinphoneCallOutgoingRinging:
case LinphoneCallConnected:
case LinphoneCallStreamsRunning:
case LinphoneCallUpdated:

View file

@ -44,7 +44,7 @@
<reference key="NSWindow"/>
<reference key="NSNextKeyView" ref="935863454"/>
<string key="NSReuseIdentifierKey">_NS:196</string>
<object class="NSColor" key="IBUIBackgroundColor">
<object class="NSColor" key="IBUIBackgroundColor" id="732745065">
<int key="NSColorSpace">3</int>
<bytes key="NSWhite">MAA</bytes>
</object>
@ -178,7 +178,6 @@
<string key="NSFrame">{{207, 0}, {73, 58}}</string>
<reference key="NSSuperview" ref="903884486"/>
<reference key="NSWindow"/>
<reference key="NSNextKeyView"/>
<string key="NSReuseIdentifierKey">_NS:225</string>
<reference key="IBUIBackgroundColor" ref="666829842"/>
<bool key="IBUIOpaque">NO</bool>
@ -323,10 +322,7 @@
<reference key="NSSuperview"/>
<reference key="NSWindow"/>
<reference key="NSNextKeyView" ref="1051556672"/>
<object class="NSColor" key="IBUIBackgroundColor">
<int key="NSColorSpace">1</int>
<bytes key="NSRGB">MC4wNTQ5MDE5NjA3OCAwLjA4MjM1Mjk0MTE4IDAuMTI5NDExNzY0NwA</bytes>
</object>
<reference key="IBUIBackgroundColor" ref="732745065"/>
<object class="IBUISimulatedStatusBarMetrics" key="IBUISimulatedStatusBarMetrics"/>
<string key="targetRuntimeIdentifier">IBCocoaTouchFramework</string>
</object>

View file

@ -33,6 +33,11 @@
@interface BuschJaegerConfiguration : NSObject {
}
typedef enum _BuschJaegerConfigurationRequestType{
BuschJaegerConfigurationRequestType_Local,
BuschJaegerConfigurationRequestType_Global
} BuschJaegerConfigurationRequestType;
@property (readonly) NSMutableSet *history;
@property (readonly) NSMutableSet *outdoorStations;
@property (readonly) Network *network;
@ -43,8 +48,10 @@
- (BOOL)saveFile:(NSString*)file;
- (BOOL)parseQRCode:(NSString*)data delegate:(id<BuschJaegerConfigurationDelegate>)delegate;
- (BOOL)loadHistory:(NSString*)url delegate:(id<BuschJaegerConfigurationDelegate>)delegate;
- (BOOL)loadHistory:(BuschJaegerConfigurationRequestType)type delegate:(id<BuschJaegerConfigurationDelegate>)delegate;
- (NSString*)getImageUrl:(BuschJaegerConfigurationRequestType)type image:(NSString *)image;
- (NSString*)getGateway:(BuschJaegerConfigurationRequestType)type;
+ (NSString*)getRegexValue:(NSString*)regexString data:(NSString*)data;
@end

View file

@ -118,9 +118,11 @@
- (BOOL)parseHistory:(NSString*)data delegate:(id<BuschJaegerConfigurationDelegate>)delegate {
NSArray *arr = [data componentsSeparatedByString:@"\n"];
for (NSString *line in arr) {
History *his = [History parse:line];
if(his) {
[history addObject:his];
if([line length]) {
History *his = [History parse:line];
if(his) {
[history addObject:his];
}
}
}
return TRUE;
@ -256,7 +258,9 @@
return FALSE;
}
- (BOOL)loadHistory:(NSString*)url delegate:(id<BuschJaegerConfigurationDelegate>)delegate {
- (BOOL)loadHistory:(BuschJaegerConfigurationRequestType)type delegate:(id<BuschJaegerConfigurationDelegate>)delegate {
[history removeAllObjects];
NSString *url = (type == BuschJaegerConfigurationRequestType_Local)? network.localHistory: network.globalHistory;
NSURLRequest *request = [NSURLRequest requestWithURL:[NSURL URLWithString:url] cachePolicy:NSURLRequestReloadIgnoringLocalAndRemoteCacheData timeoutInterval:5];
if(request != nil) {
dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, (unsigned long)NULL), ^(void) {
@ -269,11 +273,13 @@
[delegate buschJaegerConfigurationError:[error localizedDescription]];
});
} else {
if([self parseHistory:[NSString stringWithUTF8String:[data bytes]] delegate:delegate]) {
NSString *dataString = [[NSString alloc] initWithBytes:[data bytes] length:[data length] encoding: NSUTF8StringEncoding];
if([self parseHistory:dataString delegate:delegate]) {
dispatch_async(dispatch_get_main_queue(), ^{
[delegate buschJaegerConfigurationSuccess];
});
}
[dataString release];
}
});
return TRUE;
@ -281,4 +287,20 @@
return FALSE;
}
- (NSString*)getGateway:(BuschJaegerConfigurationRequestType)type {
NSString *gateway = nil;
NSString *urlString = (type == BuschJaegerConfigurationRequestType_Local)? network.localHistory: network.globalHistory;
NSURL *url = [NSURL URLWithString:urlString];
NSRange range = [urlString rangeOfString:[url relativePath]];
if(range.location != NSNotFound) {
gateway = [urlString substringToIndex:range.location];
}
return gateway;
}
- (NSString*)getImageUrl:(BuschJaegerConfigurationRequestType)type image:(NSString *)image {
return [NSString stringWithFormat:@"%@/%@", [self getGateway:type], image];
}
@end

View file

@ -0,0 +1,41 @@
/* BuschJaegerHistoryDetailsView.h
*
* Copyright (C) 2012 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 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 <UIKit/UIKit.h>
#import "History.h"
#import "UIRemoteImageView.h"
@interface BuschJaegerHistoryDetailsView : UIViewController<UITableViewDataSource, UITableViewDelegate> {
@private
int currentIndex;
NSDateFormatter *dateFormatter;
}
@property (nonatomic, retain) IBOutlet UIView *backButton;
@property (nonatomic, retain) History *history;
@property (nonatomic, retain) IBOutlet UITableViewController *tableController;
@property (nonatomic, retain) IBOutlet UILabel *stationLabel;
@property (nonatomic, retain) IBOutlet UILabel *dateLabel;
@property (nonatomic, retain) IBOutlet UIRemoteImageView *imageView;
- (IBAction)nextImage:(id)sender;
- (IBAction)previousImage:(id)sender;
- (IBAction)hideImage:(id)sender;
@end

View file

@ -0,0 +1,199 @@
/* BuschJaegerHistoryDetailsView.m
*
* Copyright (C) 2012 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 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 "BuschJaegerHistoryDetailsView.h"
#import "UIHistoryDetailsCell.h"
#import "BuschJaegerMainView.h"
#import "BuschJaegerUtils.h"
#import "UACellBackgroundView.h"
@implementation BuschJaegerHistoryDetailsView
@synthesize history;
@synthesize tableController;
@synthesize backButton;
@synthesize stationLabel;
@synthesize dateLabel;
@synthesize imageView;
#pragma mark - Lifecycle Functions
- (void)initBuschJaegerHistoryDetailsView {
dateFormatter = [[NSDateFormatter alloc] init];
[dateFormatter setTimeStyle:NSDateFormatterMediumStyle];
[dateFormatter setDateStyle:NSDateFormatterMediumStyle];
NSLocale *locale = [NSLocale currentLocale];
[dateFormatter setLocale:locale];
}
- (id)init {
self = [super init];
if(self != nil) {
[self initBuschJaegerHistoryDetailsView];
}
return self;
}
- (id)initWithCoder:(NSCoder *)aDecoder {
self = [super initWithCoder:aDecoder];
if(self != nil) {
[self initBuschJaegerHistoryDetailsView];
}
return self;
}
- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil {
self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil];
if(self != nil) {
[self initBuschJaegerHistoryDetailsView];
}
return self;
}
- (void)dealloc {
[tableController release];
[history release];
[backButton release];
[stationLabel release];
[dateLabel release];
[imageView release];
[dateFormatter release];
[super dealloc];
}
#pragma mark - ViewController Functions
- (void)viewDidLoad {
[super viewDidLoad];
[tableController.view setBackgroundColor:[UIColor clearColor]];
/* init gradients */
{
UIColor* col1 = BUSCHJAEGER_NORMAL_COLOR;
UIColor* col2 = BUSCHJAEGER_NORMAL_COLOR2;
[BuschJaegerUtils createGradientForView:backButton withTopColor:col1 bottomColor:col2 cornerRadius:BUSCHJAEGER_DEFAULT_CORNER_RADIUS];
}
}
- (void)viewWillAppear:(BOOL)animated {
[super viewWillAppear:animated];
[imageView setHidden:TRUE];
}
#pragma mark - Property Functions
- (void)setHistory:(History *)ahistory {
[history release];
history = [ahistory retain];
[self update];
}
#pragma mark -
- (void)update {
[self view]; // Force view load
[self.tableController.tableView reloadData];
NSString *stationName = @"Unknown";
NSSet *set = [[[LinphoneManager instance].configuration outdoorStations] filteredSetUsingPredicate:[NSPredicate predicateWithFormat:@"ID == %i", history.stationID]];
if([set count] == 1) {
OutdoorStation *station = [[set allObjects] objectAtIndex:0];
stationName = station.name;
}
// Station
[stationLabel setText:stationName];
// Date
[dateLabel setText:[dateFormatter stringFromDate:history.date]];
}
#pragma mark - Action Functions
- (IBAction)onBackClick:(id)sender {
[[BuschJaegerMainView instance].navigationController popViewControllerAnimated:FALSE];
}
- (IBAction)nextImage:(id)sender {
if([history.images count]) {
currentIndex = (currentIndex - 1);
if(currentIndex < 0) currentIndex = [history.images count] - 1;
[imageView loadImage:[[LinphoneManager instance].configuration getImageUrl:BuschJaegerConfigurationRequestType_Local image:[history.images objectAtIndex:currentIndex]]];
}
}
- (IBAction)previousImage:(id)sender {
if([history.images count]) {
currentIndex = (currentIndex + 1) % [history.images count];
[imageView loadImage:[[LinphoneManager instance].configuration getImageUrl:BuschJaegerConfigurationRequestType_Local image:[history.images objectAtIndex:currentIndex]]];
}
}
- (IBAction)hideImage:(id)sender {
[imageView setHidden:TRUE];
}
#pragma mark - UITableViewDataSource Functions
- (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView {
return 1;
}
- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section {
return [history.images count];
}
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {
static NSString *kCellId = @"UIHistoryCell";
UIHistoryDetailsCell *cell = [tableView dequeueReusableCellWithIdentifier:kCellId];
if (cell == nil) {
cell = [[[UIHistoryDetailsCell alloc] initWithIdentifier:kCellId] autorelease];
// Background View
UACellBackgroundView *selectedBackgroundView = [[[UACellBackgroundView alloc] initWithFrame:CGRectZero] autorelease];
cell.selectedBackgroundView = selectedBackgroundView;
[selectedBackgroundView setBackgroundColor:BUSCHJAEGER_NORMAL_COLOR];
[selectedBackgroundView setBorderColor:[UIColor clearColor]];
}
[cell setImage:[history.images objectAtIndex:[indexPath row]]];
return cell;
}
#pragma mark - UITableViewDelegate Functions
- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath {
[tableView deselectRowAtIndexPath:indexPath animated:NO];
currentIndex = [indexPath row];
[imageView setHidden:FALSE];
[imageView setImage:nil];
[imageView loadImage:[[LinphoneManager instance].configuration getImageUrl:BuschJaegerConfigurationRequestType_Local image:[history.images objectAtIndex:currentIndex]]];
}
@end

View file

@ -0,0 +1,583 @@
<?xml version="1.0" encoding="UTF-8"?>
<archive type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="8.00">
<data>
<int key="IBDocument.SystemTarget">1296</int>
<string key="IBDocument.SystemVersion">11E53</string>
<string key="IBDocument.InterfaceBuilderVersion">2549</string>
<string key="IBDocument.AppKitVersion">1138.47</string>
<string key="IBDocument.HIToolboxVersion">569.00</string>
<object class="NSMutableDictionary" key="IBDocument.PluginVersions">
<string key="NS.key.0">com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
<string key="NS.object.0">1498</string>
</object>
<array key="IBDocument.IntegratedClassDependencies">
<string>IBProxyObject</string>
<string>IBUIButton</string>
<string>IBUIImageView</string>
<string>IBUILabel</string>
<string>IBUISwipeGestureRecognizer</string>
<string>IBUITableView</string>
<string>IBUITableViewController</string>
<string>IBUITapGestureRecognizer</string>
<string>IBUIView</string>
</array>
<array key="IBDocument.PluginDependencies">
<string>com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
</array>
<object class="NSMutableDictionary" key="IBDocument.Metadata">
<string key="NS.key.0">PluginDependencyRecalculationVersion</string>
<integer value="1" key="NS.object.0"/>
</object>
<array class="NSMutableArray" key="IBDocument.RootObjects" id="1000">
<object class="IBProxyObject" id="372490531">
<string key="IBProxiedObjectIdentifier">IBFilesOwner</string>
<string key="targetRuntimeIdentifier">IBCocoaTouchFramework</string>
</object>
<object class="IBProxyObject" id="975951072">
<string key="IBProxiedObjectIdentifier">IBFirstResponder</string>
<string key="targetRuntimeIdentifier">IBCocoaTouchFramework</string>
</object>
<object class="IBUIView" id="191373211">
<reference key="NSNextResponder"/>
<int key="NSvFlags">274</int>
<array class="NSMutableArray" key="NSSubviews">
<object class="IBUITableView" id="420803874">
<reference key="NSNextResponder" ref="191373211"/>
<int key="NSvFlags">274</int>
<string key="NSFrame">{{0, 34}, {320, 368}}</string>
<reference key="NSSuperview" ref="191373211"/>
<reference key="NSWindow"/>
<reference key="NSNextKeyView" ref="794939656"/>
<string key="NSReuseIdentifierKey">_NS:10</string>
<object class="NSColor" key="IBUIBackgroundColor" id="541094472">
<int key="NSColorSpace">3</int>
<bytes key="NSWhite">MQA</bytes>
</object>
<bool key="IBUIOpaque">NO</bool>
<bool key="IBUIClipsSubviews">YES</bool>
<bool key="IBUIClearsContextBeforeDrawing">NO</bool>
<string key="targetRuntimeIdentifier">IBCocoaTouchFramework</string>
<bool key="IBUIAlwaysBounceVertical">YES</bool>
<int key="IBUISectionIndexMinimumDisplayRowCount">0</int>
<bool key="IBUIShowsSelectionImmediatelyOnTouchBegin">YES</bool>
<float key="IBUIRowHeight">110</float>
<float key="IBUISectionHeaderHeight">22</float>
<float key="IBUISectionFooterHeight">22</float>
</object>
<object class="IBUILabel" id="33010100">
<reference key="NSNextResponder" ref="191373211"/>
<int key="NSvFlags">292</int>
<string key="NSFrame">{{5, 5}, {180, 21}}</string>
<reference key="NSSuperview" ref="191373211"/>
<reference key="NSWindow"/>
<reference key="NSNextKeyView" ref="251393705"/>
<string key="NSReuseIdentifierKey">_NS:9</string>
<bool key="IBUIOpaque">NO</bool>
<bool key="IBUIClipsSubviews">YES</bool>
<int key="IBUIContentMode">7</int>
<bool key="IBUIUserInteractionEnabled">NO</bool>
<string key="targetRuntimeIdentifier">IBCocoaTouchFramework</string>
<string key="IBUIText">Station 1</string>
<reference key="IBUITextColor" ref="541094472"/>
<nil key="IBUIHighlightedColor"/>
<int key="IBUIBaselineAdjustment">0</int>
<float key="IBUIMinimumFontSize">10</float>
<object class="IBUIFontDescription" key="IBUIFontDescription">
<int key="type">1</int>
<double key="pointSize">20</double>
</object>
<object class="NSFont" key="IBUIFont">
<string key="NSName">Helvetica</string>
<double key="NSSize">20</double>
<int key="NSfFlags">16</int>
</object>
</object>
<object class="IBUILabel" id="251393705">
<reference key="NSNextResponder" ref="191373211"/>
<int key="NSvFlags">292</int>
<string key="NSFrame">{{203, 5}, {112, 21}}</string>
<reference key="NSSuperview" ref="191373211"/>
<reference key="NSWindow"/>
<reference key="NSNextKeyView" ref="420803874"/>
<string key="NSReuseIdentifierKey">_NS:9</string>
<bool key="IBUIOpaque">NO</bool>
<bool key="IBUIClipsSubviews">YES</bool>
<int key="IBUIContentMode">7</int>
<bool key="IBUIUserInteractionEnabled">NO</bool>
<string key="targetRuntimeIdentifier">IBCocoaTouchFramework</string>
<string key="IBUIText">2011 01 01 00:01</string>
<reference key="IBUITextColor" ref="541094472"/>
<nil key="IBUIHighlightedColor"/>
<int key="IBUIBaselineAdjustment">0</int>
<float key="IBUIMinimumFontSize">10</float>
<object class="IBUIFontDescription" key="IBUIFontDescription">
<int key="type">1</int>
<double key="pointSize">11</double>
</object>
<object class="NSFont" key="IBUIFont">
<string key="NSName">Helvetica</string>
<double key="NSSize">11</double>
<int key="NSfFlags">16</int>
</object>
</object>
<object class="IBUIView" id="794939656">
<reference key="NSNextResponder" ref="191373211"/>
<int key="NSvFlags">292</int>
<array class="NSMutableArray" key="NSSubviews">
<object class="IBUILabel" id="380982191">
<reference key="NSNextResponder" ref="794939656"/>
<int key="NSvFlags">274</int>
<string key="NSFrameSize">{280, 40}</string>
<reference key="NSSuperview" ref="794939656"/>
<reference key="NSWindow"/>
<reference key="NSNextKeyView" ref="390128791"/>
<string key="NSReuseIdentifierKey">_NS:9</string>
<bool key="IBUIOpaque">NO</bool>
<bool key="IBUIClipsSubviews">YES</bool>
<int key="IBUIContentMode">7</int>
<bool key="IBUIUserInteractionEnabled">NO</bool>
<string key="targetRuntimeIdentifier">IBCocoaTouchFramework</string>
<string key="IBUIText">Back</string>
<reference key="IBUITextColor" ref="541094472"/>
<nil key="IBUIHighlightedColor"/>
<int key="IBUIBaselineAdjustment">0</int>
<float key="IBUIMinimumFontSize">10</float>
<int key="IBUITextAlignment">1</int>
<object class="IBUIFontDescription" key="IBUIFontDescription">
<int key="type">1</int>
<double key="pointSize">24</double>
</object>
<object class="NSFont" key="IBUIFont">
<string key="NSName">Helvetica</string>
<double key="NSSize">24</double>
<int key="NSfFlags">16</int>
</object>
</object>
<object class="IBUIButton" id="390128791">
<reference key="NSNextResponder" ref="794939656"/>
<int key="NSvFlags">274</int>
<string key="NSFrameSize">{280, 40}</string>
<reference key="NSSuperview" ref="794939656"/>
<reference key="NSWindow"/>
<string key="NSReuseIdentifierKey">_NS:9</string>
<object class="NSColor" key="IBUIBackgroundColor" id="372315597">
<int key="NSColorSpace">3</int>
<bytes key="NSWhite">MCAwAA</bytes>
</object>
<bool key="IBUIOpaque">NO</bool>
<string key="targetRuntimeIdentifier">IBCocoaTouchFramework</string>
<int key="IBUIContentHorizontalAlignment">0</int>
<int key="IBUIContentVerticalAlignment">0</int>
<reference key="IBUIHighlightedTitleColor" ref="541094472"/>
<reference key="IBUINormalTitleColor" ref="541094472"/>
<object class="NSColor" key="IBUINormalTitleShadowColor">
<int key="NSColorSpace">3</int>
<bytes key="NSWhite">MC41AA</bytes>
</object>
<object class="IBUIFontDescription" key="IBUIFontDescription">
<int key="type">2</int>
<double key="pointSize">15</double>
</object>
<object class="NSFont" key="IBUIFont">
<string key="NSName">Helvetica-Bold</string>
<double key="NSSize">15</double>
<int key="NSfFlags">16</int>
</object>
</object>
</array>
<string key="NSFrame">{{20, 410}, {280, 40}}</string>
<reference key="NSSuperview" ref="191373211"/>
<reference key="NSWindow"/>
<reference key="NSNextKeyView" ref="380982191"/>
<string key="NSReuseIdentifierKey">_NS:9</string>
<reference key="IBUIBackgroundColor" ref="372315597"/>
<string key="targetRuntimeIdentifier">IBCocoaTouchFramework</string>
</object>
<object class="IBUIImageView" id="322407382">
<reference key="NSNextResponder" ref="191373211"/>
<int key="NSvFlags">292</int>
<string key="NSFrameSize">{320, 460}</string>
<reference key="NSSuperview" ref="191373211"/>
<reference key="NSWindow"/>
<reference key="NSNextKeyView" ref="33010100"/>
<string key="NSReuseIdentifierKey">_NS:9</string>
<object class="NSColor" key="IBUIBackgroundColor" id="76823613">
<int key="NSColorSpace">3</int>
<bytes key="NSWhite">MAA</bytes>
</object>
<int key="IBUIContentMode">1</int>
<bool key="IBUIMultipleTouchEnabled">YES</bool>
<array key="IBUIGestureRecognizers" id="0"/>
<string key="targetRuntimeIdentifier">IBCocoaTouchFramework</string>
</object>
</array>
<string key="NSFrame">{{0, 20}, {320, 460}}</string>
<reference key="NSSuperview"/>
<reference key="NSWindow"/>
<reference key="NSNextKeyView" ref="322407382"/>
<reference key="IBUIBackgroundColor" ref="76823613"/>
<object class="IBUISimulatedStatusBarMetrics" key="IBUISimulatedStatusBarMetrics"/>
<string key="targetRuntimeIdentifier">IBCocoaTouchFramework</string>
</object>
<object class="IBUITableViewController" id="875680155">
<object class="IBUISimulatedStatusBarMetrics" key="IBUISimulatedStatusBarMetrics"/>
<object class="IBUISimulatedOrientationMetrics" key="IBUISimulatedOrientationMetrics">
<int key="IBUIInterfaceOrientation">1</int>
<int key="interfaceOrientation">1</int>
</object>
<string key="targetRuntimeIdentifier">IBCocoaTouchFramework</string>
<bool key="IBUIHorizontal">NO</bool>
</object>
<object class="IBUITapGestureRecognizer" id="309092053"/>
<object class="IBUISwipeGestureRecognizer" id="217364971"/>
<object class="IBUISwipeGestureRecognizer" id="504152559">
<int key="IBUIDirection">2</int>
</object>
</array>
<object class="IBObjectContainer" key="IBDocument.Objects">
<array class="NSMutableArray" key="connectionRecords">
<object class="IBConnectionRecord">
<object class="IBCocoaTouchOutletConnection" key="connection">
<string key="label">view</string>
<reference key="source" ref="372490531"/>
<reference key="destination" ref="191373211"/>
</object>
<int key="connectionID">3</int>
</object>
<object class="IBConnectionRecord">
<object class="IBCocoaTouchOutletConnection" key="connection">
<string key="label">backButton</string>
<reference key="source" ref="372490531"/>
<reference key="destination" ref="794939656"/>
</object>
<int key="connectionID">17</int>
</object>
<object class="IBConnectionRecord">
<object class="IBCocoaTouchOutletConnection" key="connection">
<string key="label">tableController</string>
<reference key="source" ref="372490531"/>
<reference key="destination" ref="875680155"/>
</object>
<int key="connectionID">18</int>
</object>
<object class="IBConnectionRecord">
<object class="IBCocoaTouchOutletConnection" key="connection">
<string key="label">dateLabel</string>
<reference key="source" ref="372490531"/>
<reference key="destination" ref="251393705"/>
</object>
<int key="connectionID">19</int>
</object>
<object class="IBConnectionRecord">
<object class="IBCocoaTouchOutletConnection" key="connection">
<string key="label">stationLabel</string>
<reference key="source" ref="372490531"/>
<reference key="destination" ref="33010100"/>
</object>
<int key="connectionID">20</int>
</object>
<object class="IBConnectionRecord">
<object class="IBCocoaTouchOutletConnection" key="connection">
<string key="label">imageView</string>
<reference key="source" ref="372490531"/>
<reference key="destination" ref="322407382"/>
</object>
<int key="connectionID">32</int>
</object>
<object class="IBConnectionRecord">
<object class="IBCocoaTouchOutletConnection" key="connection">
<string key="label">view</string>
<reference key="source" ref="875680155"/>
<reference key="destination" ref="420803874"/>
</object>
<int key="connectionID">10</int>
</object>
<object class="IBConnectionRecord">
<object class="IBCocoaTouchOutletConnection" key="connection">
<string key="label">dataSource</string>
<reference key="source" ref="420803874"/>
<reference key="destination" ref="372490531"/>
</object>
<int key="connectionID">11</int>
</object>
<object class="IBConnectionRecord">
<object class="IBCocoaTouchOutletConnection" key="connection">
<string key="label">delegate</string>
<reference key="source" ref="420803874"/>
<reference key="destination" ref="372490531"/>
</object>
<int key="connectionID">12</int>
</object>
<object class="IBConnectionRecord">
<object class="IBCocoaTouchEventConnection" key="connection">
<string key="label">onBackClick:</string>
<reference key="source" ref="390128791"/>
<reference key="destination" ref="372490531"/>
<int key="IBEventType">7</int>
</object>
<int key="connectionID">16</int>
</object>
<object class="IBConnectionRecord">
<object class="IBCocoaTouchOutletCollectionConnection" key="connection">
<string key="label">gestureRecognizers</string>
<reference key="source" ref="322407382"/>
<reference key="destination" ref="309092053"/>
<string key="cachedDesigntimeCollectionClassName">NSArray</string>
<bool key="addsContentToExistingCollection">NO</bool>
</object>
<int key="connectionID">25</int>
</object>
<object class="IBConnectionRecord">
<object class="IBCocoaTouchOutletCollectionConnection" key="connection">
<string key="label">gestureRecognizers</string>
<reference key="source" ref="322407382"/>
<reference key="destination" ref="217364971"/>
<string key="cachedDesigntimeCollectionClassName">NSArray</string>
<bool key="addsContentToExistingCollection">NO</bool>
</object>
<int key="connectionID">30</int>
</object>
<object class="IBConnectionRecord">
<object class="IBCocoaTouchOutletCollectionConnection" key="connection">
<string key="label">gestureRecognizers</string>
<reference key="source" ref="322407382"/>
<reference key="destination" ref="504152559"/>
<string key="cachedDesigntimeCollectionClassName">NSArray</string>
<bool key="addsContentToExistingCollection">NO</bool>
</object>
<int key="connectionID">31</int>
</object>
<object class="IBConnectionRecord">
<object class="IBCocoaTouchEventConnection" key="connection">
<string key="label">hideImage:</string>
<reference key="source" ref="309092053"/>
<reference key="destination" ref="372490531"/>
</object>
<int key="connectionID">33</int>
</object>
<object class="IBConnectionRecord">
<object class="IBCocoaTouchEventConnection" key="connection">
<string key="label">nextImage:</string>
<reference key="source" ref="217364971"/>
<reference key="destination" ref="372490531"/>
</object>
<int key="connectionID">34</int>
</object>
<object class="IBConnectionRecord">
<object class="IBCocoaTouchEventConnection" key="connection">
<string key="label">previousImage:</string>
<reference key="source" ref="504152559"/>
<reference key="destination" ref="372490531"/>
</object>
<int key="connectionID">35</int>
</object>
</array>
<object class="IBMutableOrderedSet" key="objectRecords">
<array key="orderedObjects">
<object class="IBObjectRecord">
<int key="objectID">0</int>
<reference key="object" ref="0"/>
<reference key="children" ref="1000"/>
<nil key="parent"/>
</object>
<object class="IBObjectRecord">
<int key="objectID">1</int>
<reference key="object" ref="191373211"/>
<array class="NSMutableArray" key="children">
<reference ref="251393705"/>
<reference ref="794939656"/>
<reference ref="420803874"/>
<reference ref="33010100"/>
<reference ref="322407382"/>
</array>
<reference key="parent" ref="0"/>
</object>
<object class="IBObjectRecord">
<int key="objectID">-1</int>
<reference key="object" ref="372490531"/>
<reference key="parent" ref="0"/>
<string key="objectName">File's Owner</string>
</object>
<object class="IBObjectRecord">
<int key="objectID">-2</int>
<reference key="object" ref="975951072"/>
<reference key="parent" ref="0"/>
</object>
<object class="IBObjectRecord">
<int key="objectID">4</int>
<reference key="object" ref="875680155"/>
<array class="NSMutableArray" key="children"/>
<reference key="parent" ref="0"/>
</object>
<object class="IBObjectRecord">
<int key="objectID">5</int>
<reference key="object" ref="420803874"/>
<reference key="parent" ref="191373211"/>
</object>
<object class="IBObjectRecord">
<int key="objectID">8</int>
<reference key="object" ref="251393705"/>
<reference key="parent" ref="191373211"/>
<string key="objectName">Label - Date</string>
</object>
<object class="IBObjectRecord">
<int key="objectID">9</int>
<reference key="object" ref="33010100"/>
<reference key="parent" ref="191373211"/>
<string key="objectName">Label - Station</string>
</object>
<object class="IBObjectRecord">
<int key="objectID">13</int>
<reference key="object" ref="794939656"/>
<array class="NSMutableArray" key="children">
<reference ref="380982191"/>
<reference ref="390128791"/>
</array>
<reference key="parent" ref="191373211"/>
<string key="objectName">Back Button View</string>
</object>
<object class="IBObjectRecord">
<int key="objectID">15</int>
<reference key="object" ref="380982191"/>
<reference key="parent" ref="794939656"/>
</object>
<object class="IBObjectRecord">
<int key="objectID">14</int>
<reference key="object" ref="390128791"/>
<reference key="parent" ref="794939656"/>
</object>
<object class="IBObjectRecord">
<int key="objectID">21</int>
<reference key="object" ref="322407382"/>
<array class="NSMutableArray" key="children"/>
<reference key="parent" ref="191373211"/>
</object>
<object class="IBObjectRecord">
<int key="objectID">23</int>
<reference key="object" ref="309092053"/>
<reference key="parent" ref="0"/>
</object>
<object class="IBObjectRecord">
<int key="objectID">28</int>
<reference key="object" ref="217364971"/>
<reference key="parent" ref="0"/>
<string key="objectName">Right Swipe Gesture Recognizer</string>
</object>
<object class="IBObjectRecord">
<int key="objectID">29</int>
<reference key="object" ref="504152559"/>
<reference key="parent" ref="0"/>
<string key="objectName">Left Swipe Gesture Recognizer</string>
</object>
</array>
</object>
<dictionary class="NSMutableDictionary" key="flattenedProperties">
<string key="-1.CustomClassName">BuschJaegerHistoryDetailsView</string>
<string key="-1.IBPluginDependency">com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
<string key="-2.CustomClassName">UIResponder</string>
<string key="-2.IBPluginDependency">com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
<string key="1.IBPluginDependency">com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
<string key="13.IBPluginDependency">com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
<string key="14.IBPluginDependency">com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
<real value="0.0" key="14.IBUIButtonInspectorSelectedEdgeInsetMetadataKey"/>
<string key="15.IBPluginDependency">com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
<string key="21.CustomClassName">UIRemoteImageView</string>
<string key="21.IBPluginDependency">com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
<string key="23.IBPluginDependency">com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
<string key="28.IBPluginDependency">com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
<string key="29.IBPluginDependency">com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
<string key="4.IBPluginDependency">com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
<string key="5.IBPluginDependency">com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
<string key="8.IBPluginDependency">com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
<string key="9.IBPluginDependency">com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
</dictionary>
<dictionary class="NSMutableDictionary" key="unlocalizedProperties"/>
<nil key="activeLocalization"/>
<dictionary class="NSMutableDictionary" key="localizations"/>
<nil key="sourceID"/>
<int key="maxID">35</int>
</object>
<object class="IBClassDescriber" key="IBDocument.Classes">
<array class="NSMutableArray" key="referencedPartialClassDescriptions">
<object class="IBPartialClassDescription">
<string key="className">BuschJaegerHistoryDetailsView</string>
<string key="superclassName">UIViewController</string>
<dictionary class="NSMutableDictionary" key="actions">
<string key="hideImage:">id</string>
<string key="nextImage:">id</string>
<string key="onBackClick:">id</string>
<string key="previousImage:">id</string>
</dictionary>
<dictionary class="NSMutableDictionary" key="actionInfosByName">
<object class="IBActionInfo" key="hideImage:">
<string key="name">hideImage:</string>
<string key="candidateClassName">id</string>
</object>
<object class="IBActionInfo" key="nextImage:">
<string key="name">nextImage:</string>
<string key="candidateClassName">id</string>
</object>
<object class="IBActionInfo" key="onBackClick:">
<string key="name">onBackClick:</string>
<string key="candidateClassName">id</string>
</object>
<object class="IBActionInfo" key="previousImage:">
<string key="name">previousImage:</string>
<string key="candidateClassName">id</string>
</object>
</dictionary>
<dictionary class="NSMutableDictionary" key="outlets">
<string key="backButton">UIView</string>
<string key="dateLabel">UILabel</string>
<string key="imageView">UIRemoteImageView</string>
<string key="stationLabel">UILabel</string>
<string key="tableController">UITableViewController</string>
</dictionary>
<dictionary class="NSMutableDictionary" key="toOneOutletInfosByName">
<object class="IBToOneOutletInfo" key="backButton">
<string key="name">backButton</string>
<string key="candidateClassName">UIView</string>
</object>
<object class="IBToOneOutletInfo" key="dateLabel">
<string key="name">dateLabel</string>
<string key="candidateClassName">UILabel</string>
</object>
<object class="IBToOneOutletInfo" key="imageView">
<string key="name">imageView</string>
<string key="candidateClassName">UIRemoteImageView</string>
</object>
<object class="IBToOneOutletInfo" key="stationLabel">
<string key="name">stationLabel</string>
<string key="candidateClassName">UILabel</string>
</object>
<object class="IBToOneOutletInfo" key="tableController">
<string key="name">tableController</string>
<string key="candidateClassName">UITableViewController</string>
</object>
</dictionary>
<object class="IBClassDescriptionSource" key="sourceIdentifier">
<string key="majorKey">IBProjectSource</string>
<string key="minorKey">./Classes/BuschJaegerHistoryDetailsView.h</string>
</object>
</object>
<object class="IBPartialClassDescription">
<string key="className">UIRemoteImageView</string>
<string key="superclassName">UIImageView</string>
<object class="IBClassDescriptionSource" key="sourceIdentifier">
<string key="majorKey">IBProjectSource</string>
<string key="minorKey">./Classes/UIRemoteImageView.h</string>
</object>
</object>
</array>
</object>
<int key="IBDocument.localizationMode">0</int>
<string key="IBDocument.TargetRuntimeIdentifier">IBCocoaTouchFramework</string>
<object class="NSMutableDictionary" key="IBDocument.PluginDeclaredDependencyDefaults">
<string key="NS.key.0">com.apple.InterfaceBuilder.CocoaTouchPlugin.iPhoneOS</string>
<real value="1296" key="NS.object.0"/>
</object>
<bool key="IBDocument.PluginDeclaredDependenciesTrackSystemTargetVersion">YES</bool>
<int key="IBDocument.defaultPropertyAccessControl">3</int>
<string key="IBCocoaTouchPluginVersion">1498</string>
</data>
</archive>

View file

@ -19,6 +19,7 @@
#import "BuschJaegerHistoryTableViewController.h"
#import "BuschJaegerUtils.h"
#import "BuschJaegerMainView.h"
#import "UIHistoryCell.h"
#import "UACellBackgroundView.h"
@ -26,6 +27,17 @@
@synthesize history;
#pragma mark - Lifecycle Functions
- (void)dealloc {
[history release];
[super dealloc];
}
#pragma mark - Property Functions
- (void)setHistory:(NSArray *)ahistory {
if ([ahistory isEqualToArray:history]) {
return;
@ -70,6 +82,8 @@
- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath {
[tableView deselectRowAtIndexPath:indexPath animated:NO];
[[BuschJaegerMainView instance].historyDetailsView setHistory:[history objectAtIndex:[indexPath row]]];
[[BuschJaegerMainView instance].navigationController pushViewController:[BuschJaegerMainView instance].historyDetailsView animated:FALSE];
}

View file

@ -31,4 +31,6 @@
- (IBAction)onBackClick:(id)sender;
- (void)reload;
@end

View file

@ -20,6 +20,7 @@
#import "BuschJaegerHistoryView.h"
#import "BuschJaegerMainView.h"
#import "BuschJaegerUtils.h"
@implementation BuschJaegerHistoryView
@ -27,6 +28,7 @@
@synthesize waitView;
@synthesize tableController;
#pragma mark - Lifecycle Functions
- (void)dealloc {
@ -37,6 +39,7 @@
[super dealloc];
}
#pragma mark - ViewController Functions
- (void)viewDidLoad {
@ -45,34 +48,42 @@
[tableController.view setBackgroundColor:[UIColor clearColor]];
[waitView setHidden:TRUE];
}
- (void)viewWillAppear:(BOOL)animated {
[super viewWillAppear:animated];
[LinphoneManager instance].configuration.network.localHistory = @"http://elviish.eu/history.ini"; //tmp
if([[LinphoneManager instance].configuration loadHistory:[LinphoneManager instance].configuration.network.localHistory delegate:self]) {
[waitView setHidden:FALSE];
} else {
[waitView setHidden:TRUE];
/* init gradients */
{
UIColor* col1 = BUSCHJAEGER_NORMAL_COLOR;
UIColor* col2 = BUSCHJAEGER_NORMAL_COLOR2;
[BuschJaegerUtils createGradientForView:backButton withTopColor:col1 bottomColor:col2 cornerRadius:BUSCHJAEGER_DEFAULT_CORNER_RADIUS];
}
}
#pragma mark - Action Functions
- (IBAction)onBackClick:(id)sender {
[[BuschJaegerMainView instance].navigationController popViewControllerAnimated:FALSE];
}
#pragma mark -
- (void)reload {
[self view]; // Force view load
if([[LinphoneManager instance].configuration loadHistory:BuschJaegerConfigurationRequestType_Local delegate:self]) {
[waitView setHidden:FALSE];
} else {
[waitView setHidden:TRUE];
}
}
- (void)update {
NSSortDescriptor *sortDescriptor = [[NSSortDescriptor alloc] initWithKey:@"ID" ascending:YES];
NSSortDescriptor *sortDescriptor = [[NSSortDescriptor alloc] initWithKey:@"date" ascending:NO];
NSArray *sortDescriptors = [[NSArray alloc] initWithObjects:sortDescriptor, nil];
[tableController setHistory:[[LinphoneManager instance].configuration.history sortedArrayUsingDescriptors:sortDescriptors]];
}
#pragma mark - BuschJaegerConfigurationDelegate Functions
- (void)buschJaegerConfigurationSuccess {

View file

@ -46,7 +46,7 @@
<object class="IBUILabel" id="776304479">
<reference key="NSNextResponder" ref="275032897"/>
<int key="NSvFlags">274</int>
<string key="NSFrameSize">{280, 60}</string>
<string key="NSFrameSize">{280, 40}</string>
<reference key="NSSuperview" ref="275032897"/>
<reference key="NSWindow"/>
<reference key="NSNextKeyView" ref="1064793733"/>
@ -78,7 +78,7 @@
<object class="IBUIButton" id="1064793733">
<reference key="NSNextResponder" ref="275032897"/>
<int key="NSvFlags">274</int>
<string key="NSFrameSize">{280, 60}</string>
<string key="NSFrameSize">{280, 40}</string>
<reference key="NSSuperview" ref="275032897"/>
<reference key="NSWindow"/>
<string key="NSReuseIdentifierKey">_NS:9</string>
@ -107,7 +107,7 @@
</object>
</object>
</array>
<string key="NSFrame">{{20, 380}, {280, 60}}</string>
<string key="NSFrame">{{20, 410}, {280, 40}}</string>
<reference key="NSSuperview" ref="191373211"/>
<reference key="NSWindow"/>
<reference key="NSNextKeyView" ref="776304479"/>
@ -118,7 +118,7 @@
<object class="IBUITableView" id="575120815">
<reference key="NSNextResponder" ref="191373211"/>
<int key="NSvFlags">274</int>
<string key="NSFrameSize">{334, 372}</string>
<string key="NSFrameSize">{334, 392}</string>
<reference key="NSSuperview" ref="191373211"/>
<reference key="NSWindow"/>
<reference key="NSNextKeyView" ref="664811608"/>
@ -127,6 +127,7 @@
<bool key="IBUIClipsSubviews">YES</bool>
<string key="targetRuntimeIdentifier">IBCocoaTouchFramework</string>
<bool key="IBUIAlwaysBounceVertical">YES</bool>
<int key="IBUIIndicatorStyle">2</int>
<int key="IBUISectionIndexMinimumDisplayRowCount">0</int>
<bool key="IBUIShowsSelectionImmediatelyOnTouchBegin">YES</bool>
<float key="IBUIRowHeight">44</float>
@ -143,6 +144,7 @@
<string key="NSFrame">{{142, 211}, {37, 37}}</string>
<reference key="NSSuperview" ref="664811608"/>
<reference key="NSWindow"/>
<reference key="NSNextKeyView" ref="275032897"/>
<string key="NSReuseIdentifierKey">_NS:9</string>
<bool key="IBUIOpaque">NO</bool>
<string key="targetRuntimeIdentifier">IBCocoaTouchFramework</string>
@ -154,11 +156,11 @@
<string key="NSFrameSize">{320, 460}</string>
<reference key="NSSuperview" ref="191373211"/>
<reference key="NSWindow"/>
<reference key="NSNextKeyView" ref="275032897"/>
<reference key="NSNextKeyView" ref="294663888"/>
<string key="NSReuseIdentifierKey">_NS:9</string>
<object class="NSColor" key="IBUIBackgroundColor">
<int key="NSColorSpace">3</int>
<bytes key="NSWhite">MSAwLjQAA</bytes>
<bytes key="NSWhite">MCAwLjQ1AA</bytes>
</object>
<string key="targetRuntimeIdentifier">IBCocoaTouchFramework</string>
</object>
@ -304,6 +306,7 @@
<object class="IBObjectRecord">
<int key="objectID">12</int>
<reference key="object" ref="575120815"/>
<array class="NSMutableArray" key="children"/>
<reference key="parent" ref="191373211"/>
</object>
<object class="IBObjectRecord">

View file

@ -23,6 +23,7 @@
#import "BuschJaegerSettingsView.h"
#import "BuschJaegerWelcomeView.h"
#import "BuschJaegerHistoryView.h"
#import "BuschJaegerHistoryDetailsView.h"
@interface BuschJaegerMainView : UIViewController {
@ -33,6 +34,7 @@
@property (nonatomic, retain) IBOutlet BuschJaegerSettingsView *settingsView;
@property (nonatomic, retain) IBOutlet BuschJaegerWelcomeView *welcomeView;
@property (nonatomic, retain) IBOutlet BuschJaegerHistoryView *historyView;
@property (nonatomic, retain) IBOutlet BuschJaegerHistoryDetailsView *historyDetailsView;
+ (BuschJaegerMainView*) instance;

View file

@ -26,6 +26,7 @@
@synthesize settingsView;
@synthesize welcomeView;
@synthesize historyView;
@synthesize historyDetailsView;
static BuschJaegerMainView* mainViewInstance=nil;
@ -67,6 +68,7 @@ static BuschJaegerMainView* mainViewInstance=nil;
[settingsView release];
[welcomeView release];
[historyView release];
[historyDetailsView release];
// Remove all observer
[[NSNotificationCenter defaultCenter] removeObserver:self];
@ -80,6 +82,8 @@ static BuschJaegerMainView* mainViewInstance=nil;
- (void)viewDidLoad {
[super viewDidLoad];
[self setWantsFullScreenLayout:TRUE];
UIView *view = navigationController.view;
[view setFrame:[self.view bounds]];
[self.view addSubview:view];

View file

@ -37,7 +37,7 @@
<object class="IBUIView" id="168986707">
<reference key="NSNextResponder"/>
<int key="NSvFlags">292</int>
<string key="NSFrameSize">{320, 460}</string>
<string key="NSFrameSize">{320, 480}</string>
<reference key="NSSuperview"/>
<reference key="NSWindow"/>
<reference key="NSNextKeyView"/>
@ -91,6 +91,16 @@
<string key="targetRuntimeIdentifier">IBCocoaTouchFramework</string>
<bool key="IBUIHorizontal">NO</bool>
</object>
<object class="IBUIViewController" id="309615416">
<string key="IBUINibName">BuschJaegerHistoryDetailsView</string>
<object class="IBUISimulatedStatusBarMetrics" key="IBUISimulatedStatusBarMetrics"/>
<object class="IBUISimulatedOrientationMetrics" key="IBUISimulatedOrientationMetrics">
<int key="IBUIInterfaceOrientation">1</int>
<int key="interfaceOrientation">1</int>
</object>
<string key="targetRuntimeIdentifier">IBCocoaTouchFramework</string>
<bool key="IBUIHorizontal">NO</bool>
</object>
<object class="IBUINavigationController" id="864273647">
<object class="IBUISimulatedStatusBarMetrics" key="IBUISimulatedStatusBarMetrics"/>
<object class="IBUISimulatedOrientationMetrics" key="IBUISimulatedOrientationMetrics">
@ -175,6 +185,14 @@
</object>
<int key="connectionID">25</int>
</object>
<object class="IBConnectionRecord">
<object class="IBCocoaTouchOutletConnection" key="connection">
<string key="label">historyDetailsView</string>
<reference key="source" ref="372490531"/>
<reference key="destination" ref="309615416"/>
</object>
<int key="connectionID">27</int>
</object>
</array>
<object class="IBMutableOrderedSet" key="objectRecords">
<array key="orderedObjects">
@ -248,6 +266,11 @@
<reference key="object" ref="675784258"/>
<reference key="parent" ref="0"/>
</object>
<object class="IBObjectRecord">
<int key="objectID">26</int>
<reference key="object" ref="309615416"/>
<reference key="parent" ref="0"/>
</object>
</array>
</object>
<dictionary class="NSMutableDictionary" key="flattenedProperties">
@ -264,6 +287,8 @@
<string key="21.IBPluginDependency">com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
<string key="24.CustomClassName">BuschJaegerHistoryView</string>
<string key="24.IBPluginDependency">com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
<string key="26.CustomClassName">BuschJaegerHistoryDetailsView</string>
<string key="26.IBPluginDependency">com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
<string key="6.CustomClassName">BuschJaegerWelcomeView</string>
<string key="6.IBPluginDependency">com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
<string key="9.CustomClassName">BuschJaegerSettingsView</string>
@ -273,7 +298,7 @@
<nil key="activeLocalization"/>
<dictionary class="NSMutableDictionary" key="localizations"/>
<nil key="sourceID"/>
<int key="maxID">25</int>
<int key="maxID">27</int>
</object>
<object class="IBClassDescriber" key="IBDocument.Classes">
<array class="NSMutableArray" key="referencedPartialClassDescriptions">
@ -353,6 +378,25 @@
<string key="minorKey">./Classes/BuschJaegerCallView.h</string>
</object>
</object>
<object class="IBPartialClassDescription">
<string key="className">BuschJaegerHistoryDetailsView</string>
<string key="superclassName">UIViewController</string>
<object class="NSMutableDictionary" key="outlets">
<string key="NS.key.0">tableViewController</string>
<string key="NS.object.0">UITableViewController</string>
</object>
<object class="NSMutableDictionary" key="toOneOutletInfosByName">
<string key="NS.key.0">tableViewController</string>
<object class="IBToOneOutletInfo" key="NS.object.0">
<string key="name">tableViewController</string>
<string key="candidateClassName">UITableViewController</string>
</object>
</object>
<object class="IBClassDescriptionSource" key="sourceIdentifier">
<string key="majorKey">IBProjectSource</string>
<string key="minorKey">./Classes/BuschJaegerHistoryDetailsView.h</string>
</object>
</object>
<object class="IBPartialClassDescription">
<string key="className">BuschJaegerHistoryTableViewController</string>
<string key="superclassName">UITableViewController</string>
@ -378,6 +422,7 @@
<dictionary class="NSMutableDictionary" key="outlets">
<string key="backButton">UIView</string>
<string key="tableController">BuschJaegerHistoryTableViewController</string>
<string key="waitView">UIView</string>
</dictionary>
<dictionary class="NSMutableDictionary" key="toOneOutletInfosByName">
<object class="IBToOneOutletInfo" key="backButton">
@ -388,6 +433,10 @@
<string key="name">tableController</string>
<string key="candidateClassName">BuschJaegerHistoryTableViewController</string>
</object>
<object class="IBToOneOutletInfo" key="waitView">
<string key="name">waitView</string>
<string key="candidateClassName">UIView</string>
</object>
</dictionary>
<object class="IBClassDescriptionSource" key="sourceIdentifier">
<string key="majorKey">IBProjectSource</string>
@ -399,6 +448,7 @@
<string key="superclassName">UIViewController</string>
<dictionary class="NSMutableDictionary" key="outlets">
<string key="callView">BuschJaegerCallView</string>
<string key="historyDetailsView">BuschJaegerHistoryDetailsView</string>
<string key="historyView">BuschJaegerHistoryView</string>
<string key="navigationController">UINavigationController</string>
<string key="settingsView">BuschJaegerSettingsView</string>
@ -409,6 +459,10 @@
<string key="name">callView</string>
<string key="candidateClassName">BuschJaegerCallView</string>
</object>
<object class="IBToOneOutletInfo" key="historyDetailsView">
<string key="name">historyDetailsView</string>
<string key="candidateClassName">BuschJaegerHistoryDetailsView</string>
</object>
<object class="IBToOneOutletInfo" key="historyView">
<string key="name">historyView</string>
<string key="candidateClassName">BuschJaegerHistoryView</string>
@ -500,7 +554,7 @@
<dictionary class="NSMutableDictionary" key="outlets">
<string key="historyButton">UIButton</string>
<string key="settingsButton">UIButton</string>
<string key="tableController">BuschJaegerStationViewController</string>
<string key="tableController">BuschJaegerStationTableViewController</string>
</dictionary>
<dictionary class="NSMutableDictionary" key="toOneOutletInfosByName">
<object class="IBToOneOutletInfo" key="historyButton">
@ -513,7 +567,7 @@
</object>
<object class="IBToOneOutletInfo" key="tableController">
<string key="name">tableController</string>
<string key="candidateClassName">BuschJaegerStationViewController</string>
<string key="candidateClassName">BuschJaegerStationTableViewController</string>
</object>
</dictionary>
<object class="IBClassDescriptionSource" key="sourceIdentifier">

View file

@ -74,8 +74,8 @@
UIColor* col1 = BUSCHJAEGER_NORMAL_COLOR;
UIColor* col2 = BUSCHJAEGER_NORMAL_COLOR2;
[BuschJaegerUtils createGradientForView:scanButton withTopColor:col1 bottomColor:col2];
[BuschJaegerUtils createGradientForView:backButton withTopColor:col1 bottomColor:col2];
[BuschJaegerUtils createGradientForView:scanButton withTopColor:col1 bottomColor:col2 cornerRadius:BUSCHJAEGER_DEFAULT_CORNER_RADIUS];
[BuschJaegerUtils createGradientForView:backButton withTopColor:col1 bottomColor:col2 cornerRadius:BUSCHJAEGER_DEFAULT_CORNER_RADIUS];
}
[waitView setHidden:TRUE];
}

View file

@ -136,7 +136,7 @@
<object class="IBUILabel" id="870767854">
<reference key="NSNextResponder" ref="558519328"/>
<int key="NSvFlags">274</int>
<string key="NSFrameSize">{280, 60}</string>
<string key="NSFrameSize">{280, 40}</string>
<reference key="NSSuperview" ref="558519328"/>
<reference key="NSWindow"/>
<reference key="NSNextKeyView" ref="1058981027"/>
@ -158,9 +158,10 @@
<object class="IBUIButton" id="1058981027">
<reference key="NSNextResponder" ref="558519328"/>
<int key="NSvFlags">274</int>
<string key="NSFrameSize">{280, 60}</string>
<string key="NSFrameSize">{280, 40}</string>
<reference key="NSSuperview" ref="558519328"/>
<reference key="NSWindow"/>
<reference key="NSNextKeyView"/>
<string key="NSReuseIdentifierKey">_NS:9</string>
<reference key="IBUIBackgroundColor" ref="446909226"/>
<bool key="IBUIOpaque">NO</bool>
@ -174,7 +175,7 @@
<reference key="IBUIFont" ref="316540384"/>
</object>
</array>
<string key="NSFrame">{{20, 380}, {280, 60}}</string>
<string key="NSFrame">{{20, 410}, {280, 40}}</string>
<reference key="NSSuperview" ref="823940774"/>
<reference key="NSWindow"/>
<reference key="NSNextKeyView" ref="870767854"/>
@ -208,7 +209,7 @@
<string key="NSReuseIdentifierKey">_NS:9</string>
<object class="NSColor" key="IBUIBackgroundColor">
<int key="NSColorSpace">3</int>
<bytes key="NSWhite">MSAwLjQ1AA</bytes>
<bytes key="NSWhite">MCAwLjQ1AA</bytes>
</object>
<string key="targetRuntimeIdentifier">IBCocoaTouchFramework</string>
</object>

View file

@ -27,6 +27,17 @@
@synthesize stations;
#pragma mark - Lifecycle Functions
- (void)dealloc {
[stations release];
[super dealloc];
}
#pragma mark - Property Functions
- (void)setStations:(NSArray *)astations {
if ([astations isEqualToArray:stations]) {
return;

View file

@ -28,10 +28,13 @@
#define BUSCHJAEGER_GREEN_COLOR [UIColor colorWithRed:91.0/255 green:161.0/255 blue:89.0/255 alpha:1.0]
#define BUSCHJAEGER_GREEN_COLOR2 [UIColor colorWithRed:25.0/255 green:54.0/255 blue:24.0/255 alpha:1.0]
#define BUSCHJAEGER_DEFAULT_CORNER_RADIUS 5
@interface BuschJaegerUtils : NSObject
+ (void)createGradientForView:(UIView*)view withTopColor:(UIColor*)topColor bottomColor:(UIColor*)bottomColor;
+ (void)createGradientForButton:(UIButton*)button withTopColor:(UIColor*)topColor bottomColor:(UIColor*)bottomColor;
+ (void)createGradientForView:(UIView*)view withTopColor:(UIColor*)topColor bottomColor:(UIColor*)bottomColor cornerRadius:(int)cornerRadius;
+ (void)createGradientForButton:(UIButton*)button withTopColor:(UIColor*)topColor bottomColor:(UIColor*)bottomColor cornerRadius:(int)cornerRadius;
@end

View file

@ -25,15 +25,25 @@
@implementation BuschJaegerUtils
+ (void)createGradientForView:(UIView*)view withTopColor:(UIColor*)topColor bottomColor:(UIColor*)bottomColor {
[BuschJaegerUtils createGradientForView:view withTopColor:topColor bottomColor:bottomColor cornerRadius:0];
}
+ (void)createGradientForButton:(UIButton*)button withTopColor:(UIColor*)topColor bottomColor:(UIColor*)bottomColor {
[BuschJaegerUtils createGradientForButton:button withTopColor:topColor bottomColor:bottomColor cornerRadius:0];
}
+ (void)createGradientForView:(UIView*)view withTopColor:(UIColor*)topColor bottomColor:(UIColor*)bottomColor cornerRadius:(int)corner{
CAGradientLayer* gradient = [CAGradientLayer layer];
gradient.frame = view.bounds;
gradient.cornerRadius = corner;
gradient.colors = [NSArray arrayWithObjects:(id)topColor.CGColor, (id)bottomColor.CGColor, nil];
[view.layer insertSublayer:gradient atIndex:0];
}
+ (void)createGradientForButton:(UIButton*)button withTopColor:(UIColor*)topColor bottomColor:(UIColor*)bottomColor {
+ (void)createGradientForButton:(UIButton*)button withTopColor:(UIColor*)topColor bottomColor:(UIColor*)bottomColor cornerRadius:(int)corner{
CAGradientLayer* gradient = [CAGradientLayer layer];
gradient.frame = button.bounds;
gradient.cornerRadius = corner;
gradient.colors = [NSArray arrayWithObjects:(id)topColor.CGColor, (id)bottomColor.CGColor, nil];
[button.layer insertSublayer:gradient below:button.imageView.layer];
}

View file

@ -85,11 +85,12 @@
#pragma mark -
- (IBAction)settingsClick:(id)sender {
[[BuschJaegerMainView instance].navigationController pushViewController:[BuschJaegerMainView instance].settingsView animated:TRUE];
[[BuschJaegerMainView instance].navigationController pushViewController:[BuschJaegerMainView instance].settingsView animated:FALSE];
}
- (IBAction)historyClick:(id)sender {
[[BuschJaegerMainView instance].navigationController pushViewController:[BuschJaegerMainView instance].historyView animated:TRUE];
[[BuschJaegerMainView instance].historyView reload];
[[BuschJaegerMainView instance].navigationController pushViewController:[BuschJaegerMainView instance].historyView animated:FALSE];
}
@end

View file

@ -19,6 +19,7 @@
#import <UIKit/UIKit.h>
#import "History.h"
#import "UIRemoteImageView.h"
@interface UIHistoryCell : UITableViewCell {
@private
@ -27,9 +28,9 @@
@property (nonatomic, retain) History *history;
@property (nonatomic, retain) UIImageView *iconImage;
@property (nonatomic, retain) UILabel *stationLabel;
@property (nonatomic, retain) UILabel *dateLabel;
@property (nonatomic, retain) IBOutlet UIRemoteImageView *iconImage;
@property (nonatomic, retain) IBOutlet UILabel *stationLabel;
@property (nonatomic, retain) IBOutlet UILabel *dateLabel;
- (id)initWithIdentifier:(NSString*)identifier;

View file

@ -27,6 +27,7 @@
@synthesize stationLabel;
@synthesize dateLabel;
#pragma mark - Lifecycle Functions
- (id)initWithIdentifier:(NSString*)identifier {
@ -74,16 +75,23 @@
#pragma mark -
- (void)update {
NSString *station = @"Unknown";
NSString *stationName = @"Unknown";
NSSet *set = [[[LinphoneManager instance].configuration outdoorStations] filteredSetUsingPredicate:[NSPredicate predicateWithFormat:@"ID == %i", history.stationID]];
if([set count] == 1) {
station = [[set allObjects] objectAtIndex:0];
OutdoorStation *station = [[set allObjects] objectAtIndex:0];
stationName = station.name;
}
// Station
[stationLabel setText:station];
[stationLabel setText:stationName];
// Date
[dateLabel setText:[dateFormatter stringFromDate:history.date]];
if([history.images count] > 0) {
NSString *image = [history.images objectAtIndex:0];
[iconImage setImage:nil];
[iconImage loadImage:[[LinphoneManager instance].configuration getImageUrl:BuschJaegerConfigurationRequestType_Local image:image]];
}
}
@end

View file

@ -50,7 +50,7 @@
<object class="IBUILabel" id="942147892">
<reference key="NSNextResponder" ref="1038390791"/>
<int key="NSvFlags">292</int>
<string key="NSFrame">{{45, 10}, {174, 21}}</string>
<string key="NSFrame">{{45, 10}, {155, 21}}</string>
<reference key="NSSuperview" ref="1038390791"/>
<reference key="NSWindow"/>
<reference key="NSNextKeyView" ref="661666265"/>
@ -60,10 +60,10 @@
<int key="IBUIContentMode">7</int>
<bool key="IBUIUserInteractionEnabled">NO</bool>
<string key="targetRuntimeIdentifier">IBCocoaTouchFramework</string>
<string key="IBUIText">Label</string>
<object class="NSColor" key="IBUITextColor" id="938673754">
<int key="NSColorSpace">1</int>
<bytes key="NSRGB">MCAwIDAAA</bytes>
<string key="IBUIText">Station 1</string>
<object class="NSColor" key="IBUITextColor" id="495620229">
<int key="NSColorSpace">3</int>
<bytes key="NSWhite">MQA</bytes>
</object>
<nil key="IBUIHighlightedColor"/>
<int key="IBUIBaselineAdjustment">0</int>
@ -81,7 +81,7 @@
<object class="IBUILabel" id="661666265">
<reference key="NSNextResponder" ref="1038390791"/>
<int key="NSvFlags">292</int>
<string key="NSFrame">{{227, 10}, {93, 21}}</string>
<string key="NSFrame">{{208, 10}, {112, 21}}</string>
<reference key="NSSuperview" ref="1038390791"/>
<reference key="NSWindow"/>
<reference key="NSNextKeyView"/>
@ -91,8 +91,8 @@
<int key="IBUIContentMode">7</int>
<bool key="IBUIUserInteractionEnabled">NO</bool>
<string key="targetRuntimeIdentifier">IBCocoaTouchFramework</string>
<string key="IBUIText">Label</string>
<reference key="IBUITextColor" ref="938673754"/>
<string key="IBUIText">2011 01 01 00:01</string>
<reference key="IBUITextColor" ref="495620229"/>
<nil key="IBUIHighlightedColor"/>
<int key="IBUIBaselineAdjustment">0</int>
<float key="IBUIMinimumFontSize">10</float>
@ -113,14 +113,39 @@
<reference key="NSNextKeyView" ref="171265463"/>
<string key="NSReuseIdentifierKey">_NS:9</string>
<object class="NSColor" key="IBUIBackgroundColor">
<int key="NSColorSpace">1</int>
<bytes key="NSRGB">MCAxIDAuMTkxOTQ1NDc1NQA</bytes>
<int key="NSColorSpace">3</int>
<bytes key="NSWhite">MCAwAA</bytes>
</object>
<string key="targetRuntimeIdentifier">IBCocoaTouchFramework</string>
</object>
</array>
<object class="IBObjectContainer" key="IBDocument.Objects">
<array class="NSMutableArray" key="connectionRecords"/>
<array class="NSMutableArray" key="connectionRecords">
<object class="IBConnectionRecord">
<object class="IBCocoaTouchOutletConnection" key="connection">
<string key="label">dateLabel</string>
<reference key="source" ref="841351856"/>
<reference key="destination" ref="661666265"/>
</object>
<int key="connectionID">9</int>
</object>
<object class="IBConnectionRecord">
<object class="IBCocoaTouchOutletConnection" key="connection">
<string key="label">iconImage</string>
<reference key="source" ref="841351856"/>
<reference key="destination" ref="171265463"/>
</object>
<int key="connectionID">10</int>
</object>
<object class="IBConnectionRecord">
<object class="IBCocoaTouchOutletConnection" key="connection">
<string key="label">stationLabel</string>
<reference key="source" ref="841351856"/>
<reference key="destination" ref="942147892"/>
</object>
<int key="connectionID">11</int>
</object>
</array>
<object class="IBMutableOrderedSet" key="objectRecords">
<array key="orderedObjects">
<object class="IBObjectRecord">
@ -144,9 +169,9 @@
<int key="objectID">2</int>
<reference key="object" ref="1038390791"/>
<array class="NSMutableArray" key="children">
<reference ref="171265463"/>
<reference ref="661666265"/>
<reference ref="942147892"/>
<reference ref="171265463"/>
</array>
<reference key="parent" ref="0"/>
</object>
@ -171,21 +196,61 @@
</array>
</object>
<dictionary class="NSMutableDictionary" key="flattenedProperties">
<string key="-1.CustomClassName">UIHistoryCell</string>
<string key="-1.IBPluginDependency">com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
<string key="-2.CustomClassName">UIResponder</string>
<string key="-2.IBPluginDependency">com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
<string key="2.IBPluginDependency">com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
<string key="6.IBPluginDependency">com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
<string key="7.IBPluginDependency">com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
<string key="8.CustomClassName">UIRemoteImageView</string>
<string key="8.IBPluginDependency">com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
</dictionary>
<dictionary class="NSMutableDictionary" key="unlocalizedProperties"/>
<nil key="activeLocalization"/>
<dictionary class="NSMutableDictionary" key="localizations"/>
<nil key="sourceID"/>
<int key="maxID">8</int>
<int key="maxID">11</int>
</object>
<object class="IBClassDescriber" key="IBDocument.Classes">
<array class="NSMutableArray" key="referencedPartialClassDescriptions">
<object class="IBPartialClassDescription">
<string key="className">UIHistoryCell</string>
<string key="superclassName">UITableViewCell</string>
<dictionary class="NSMutableDictionary" key="outlets">
<string key="dateLabel">UILabel</string>
<string key="iconImage">UIImageView</string>
<string key="stationLabel">UILabel</string>
</dictionary>
<dictionary class="NSMutableDictionary" key="toOneOutletInfosByName">
<object class="IBToOneOutletInfo" key="dateLabel">
<string key="name">dateLabel</string>
<string key="candidateClassName">UILabel</string>
</object>
<object class="IBToOneOutletInfo" key="iconImage">
<string key="name">iconImage</string>
<string key="candidateClassName">UIImageView</string>
</object>
<object class="IBToOneOutletInfo" key="stationLabel">
<string key="name">stationLabel</string>
<string key="candidateClassName">UILabel</string>
</object>
</dictionary>
<object class="IBClassDescriptionSource" key="sourceIdentifier">
<string key="majorKey">IBProjectSource</string>
<string key="minorKey">./Classes/UIHistoryCell.h</string>
</object>
</object>
<object class="IBPartialClassDescription">
<string key="className">UIRemoteImageView</string>
<string key="superclassName">UIImageView</string>
<object class="IBClassDescriptionSource" key="sourceIdentifier">
<string key="majorKey">IBProjectSource</string>
<string key="minorKey">./Classes/UIRemoteImageView.h</string>
</object>
</object>
</array>
</object>
<object class="IBClassDescriber" key="IBDocument.Classes"/>
<int key="IBDocument.localizationMode">0</int>
<string key="IBDocument.TargetRuntimeIdentifier">IBCocoaTouchFramework</string>
<object class="NSMutableDictionary" key="IBDocument.PluginDeclaredDependencyDefaults">

View file

@ -0,0 +1,33 @@
/* UIHistoryCell.h
*
* Copyright (C) 2012 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 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 <UIKit/UIKit.h>
#import "History.h"
#import "UIRemoteImageView.h"
@interface UIHistoryDetailsCell : UITableViewCell {
}
@property (nonatomic, retain) NSString *image;
@property (nonatomic, retain) IBOutlet UIRemoteImageView *imageView;
- (id)initWithIdentifier:(NSString*)identifier;
@end

View file

@ -0,0 +1,71 @@
/* UIHistoryCell.m
*
* Copyright (C) 2012 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 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 "UIHistoryDetailsCell.h"
#import "LinphoneManager.h"
@implementation UIHistoryDetailsCell
@synthesize image;
@synthesize imageView;
#pragma mark - Lifecycle Functions
- (id)initWithIdentifier:(NSString*)identifier {
if ((self = [super initWithStyle:UITableViewCellStyleDefault reuseIdentifier:identifier]) != nil) {
NSArray *arrayOfViews = [[NSBundle mainBundle] loadNibNamed:@"UIHistoryDetailsCell"
owner:self
options:nil];
if ([arrayOfViews count] >= 1) {
[self addSubview:[[arrayOfViews objectAtIndex:0] retain]];
}
}
return self;
}
- (void)dealloc {
[image release];
[imageView release];
[super dealloc];
}
#pragma mark - Property Functions
- (void)setImage:(NSString *)aimage {
if(aimage == image) {
return;
}
[image release];
image = [aimage retain];
[self update];
}
#pragma mark -
- (void)update {
if(image) {
[imageView setImage:nil];
[imageView loadImage:[[LinphoneManager instance].configuration getImageUrl:BuschJaegerConfigurationRequestType_Local image:image]];
}
}
@end

View file

@ -0,0 +1,165 @@
<?xml version="1.0" encoding="UTF-8"?>
<archive type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="8.00">
<data>
<int key="IBDocument.SystemTarget">1296</int>
<string key="IBDocument.SystemVersion">11E53</string>
<string key="IBDocument.InterfaceBuilderVersion">2549</string>
<string key="IBDocument.AppKitVersion">1138.47</string>
<string key="IBDocument.HIToolboxVersion">569.00</string>
<object class="NSMutableDictionary" key="IBDocument.PluginVersions">
<string key="NS.key.0">com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
<string key="NS.object.0">1498</string>
</object>
<array key="IBDocument.IntegratedClassDependencies">
<string>IBProxyObject</string>
<string>IBUIImageView</string>
<string>IBUIView</string>
</array>
<array key="IBDocument.PluginDependencies">
<string>com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
</array>
<object class="NSMutableDictionary" key="IBDocument.Metadata">
<string key="NS.key.0">PluginDependencyRecalculationVersion</string>
<integer value="1" key="NS.object.0"/>
</object>
<array class="NSMutableArray" key="IBDocument.RootObjects" id="1000">
<object class="IBProxyObject" id="841351856">
<string key="IBProxiedObjectIdentifier">IBFilesOwner</string>
<string key="targetRuntimeIdentifier">IBCocoaTouchFramework</string>
</object>
<object class="IBProxyObject" id="371349661">
<string key="IBProxiedObjectIdentifier">IBFirstResponder</string>
<string key="targetRuntimeIdentifier">IBCocoaTouchFramework</string>
</object>
<object class="IBUIView" id="1038390791">
<reference key="NSNextResponder"/>
<int key="NSvFlags">292</int>
<array class="NSMutableArray" key="NSSubviews">
<object class="IBUIImageView" id="171265463">
<reference key="NSNextResponder" ref="1038390791"/>
<int key="NSvFlags">274</int>
<string key="NSFrame">{{5, 5}, {310, 100}}</string>
<reference key="NSSuperview" ref="1038390791"/>
<reference key="NSWindow"/>
<reference key="NSNextKeyView"/>
<string key="NSReuseIdentifierKey">_NS:9</string>
<int key="IBUIContentMode">1</int>
<bool key="IBUIUserInteractionEnabled">NO</bool>
<string key="targetRuntimeIdentifier">IBCocoaTouchFramework</string>
</object>
</array>
<string key="NSFrameSize">{320, 110}</string>
<reference key="NSSuperview"/>
<reference key="NSWindow"/>
<reference key="NSNextKeyView" ref="171265463"/>
<string key="NSReuseIdentifierKey">_NS:9</string>
<object class="NSColor" key="IBUIBackgroundColor">
<int key="NSColorSpace">3</int>
<bytes key="NSWhite">MCAwAA</bytes>
</object>
<string key="targetRuntimeIdentifier">IBCocoaTouchFramework</string>
</object>
</array>
<object class="IBObjectContainer" key="IBDocument.Objects">
<array class="NSMutableArray" key="connectionRecords">
<object class="IBConnectionRecord">
<object class="IBCocoaTouchOutletConnection" key="connection">
<string key="label">imageView</string>
<reference key="source" ref="841351856"/>
<reference key="destination" ref="171265463"/>
</object>
<int key="connectionID">12</int>
</object>
</array>
<object class="IBMutableOrderedSet" key="objectRecords">
<array key="orderedObjects">
<object class="IBObjectRecord">
<int key="objectID">0</int>
<array key="object" id="0"/>
<reference key="children" ref="1000"/>
<nil key="parent"/>
</object>
<object class="IBObjectRecord">
<int key="objectID">-1</int>
<reference key="object" ref="841351856"/>
<reference key="parent" ref="0"/>
<string key="objectName">File's Owner</string>
</object>
<object class="IBObjectRecord">
<int key="objectID">-2</int>
<reference key="object" ref="371349661"/>
<reference key="parent" ref="0"/>
</object>
<object class="IBObjectRecord">
<int key="objectID">2</int>
<reference key="object" ref="1038390791"/>
<array class="NSMutableArray" key="children">
<reference ref="171265463"/>
</array>
<reference key="parent" ref="0"/>
</object>
<object class="IBObjectRecord">
<int key="objectID">8</int>
<reference key="object" ref="171265463"/>
<reference key="parent" ref="1038390791"/>
<string key="objectName">Image</string>
</object>
</array>
</object>
<dictionary class="NSMutableDictionary" key="flattenedProperties">
<string key="-1.CustomClassName">UIHistoryDetailsCell</string>
<string key="-1.IBPluginDependency">com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
<string key="-2.CustomClassName">UIResponder</string>
<string key="-2.IBPluginDependency">com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
<string key="2.IBPluginDependency">com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
<string key="8.CustomClassName">UIRemoteImageView</string>
<string key="8.IBPluginDependency">com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
</dictionary>
<dictionary class="NSMutableDictionary" key="unlocalizedProperties"/>
<nil key="activeLocalization"/>
<dictionary class="NSMutableDictionary" key="localizations"/>
<nil key="sourceID"/>
<int key="maxID">12</int>
</object>
<object class="IBClassDescriber" key="IBDocument.Classes">
<array class="NSMutableArray" key="referencedPartialClassDescriptions">
<object class="IBPartialClassDescription">
<string key="className">UIHistoryDetailsCell</string>
<string key="superclassName">UITableViewCell</string>
<object class="NSMutableDictionary" key="outlets">
<string key="NS.key.0">imageView</string>
<string key="NS.object.0">UIRemoteImageView</string>
</object>
<object class="NSMutableDictionary" key="toOneOutletInfosByName">
<string key="NS.key.0">imageView</string>
<object class="IBToOneOutletInfo" key="NS.object.0">
<string key="name">imageView</string>
<string key="candidateClassName">UIRemoteImageView</string>
</object>
</object>
<object class="IBClassDescriptionSource" key="sourceIdentifier">
<string key="majorKey">IBProjectSource</string>
<string key="minorKey">./Classes/UIHistoryDetailsCell.h</string>
</object>
</object>
<object class="IBPartialClassDescription">
<string key="className">UIRemoteImageView</string>
<string key="superclassName">UIImageView</string>
<object class="IBClassDescriptionSource" key="sourceIdentifier">
<string key="majorKey">IBProjectSource</string>
<string key="minorKey">./Classes/UIRemoteImageView.h</string>
</object>
</object>
</array>
</object>
<int key="IBDocument.localizationMode">0</int>
<string key="IBDocument.TargetRuntimeIdentifier">IBCocoaTouchFramework</string>
<object class="NSMutableDictionary" key="IBDocument.PluginDeclaredDependencyDefaults">
<string key="NS.key.0">com.apple.InterfaceBuilder.CocoaTouchPlugin.iPhoneOS</string>
<real value="1296" key="NS.object.0"/>
</object>
<bool key="IBDocument.PluginDeclaredDependenciesTrackSystemTargetVersion">YES</bool>
<int key="IBDocument.defaultPropertyAccessControl">3</int>
<string key="IBCocoaTouchPluginVersion">1498</string>
</data>
</archive>

View file

@ -0,0 +1,29 @@
/* UIRemoteImageView.h
*
* Copyright (C) 2012 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 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 <UIKit/UIKit.h>
@interface UIRemoteImageView : UIImageView
@property (retain) UIActivityIndicatorView *waitIndicatorView;
- (void)loadImage:(NSString*) url;
@end

View file

@ -0,0 +1,110 @@
/* UIRemoteImageView.m
*
* Copyright (C) 2012 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 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 "UIRemoteImageView.h"
@implementation UIRemoteImageView
@synthesize waitIndicatorView;
#pragma mark - Lifecycle Functions
- (void)initUIRemoteImageView {
waitIndicatorView = [[UIActivityIndicatorView alloc] initWithFrame:self.frame];
waitIndicatorView.hidesWhenStopped = TRUE;
waitIndicatorView.autoresizingMask = UIViewAutoresizingFlexibleWidth | UIViewAutoresizingFlexibleHeight;
[self addSubview:waitIndicatorView];
}
- (id)init {
self = [super init];
if(self != nil) {
[self initUIRemoteImageView];
}
return self;
}
- (id)initWithCoder:(NSCoder *)aDecoder {
self = [super initWithCoder:aDecoder];
if(self != nil) {
[self initUIRemoteImageView];
}
return self;
}
- (id)initWithFrame:(CGRect)frame {
self = [super initWithFrame:frame];
if(self != nil) {
[self initUIRemoteImageView];
}
return self;
}
- (id)initWithImage:(UIImage *)image {
self = [super initWithImage:image];
if(self != nil) {
[self initUIRemoteImageView];
}
return self;
}
- (id)initWithImage:(UIImage *)image highlightedImage:(UIImage *)highlightedImage {
self = [super initWithImage:image highlightedImage:highlightedImage];
if(self != nil) {
[self initUIRemoteImageView];
}
return self;
}
- (void)dealloc {
[waitIndicatorView release];
[super dealloc];
}
#pragma mark -
- (void)loadImage:(NSString*)url {
[waitIndicatorView startAnimating];
NSURLRequest *request = [NSURLRequest requestWithURL:[NSURL URLWithString:url] cachePolicy:NSURLRequestReturnCacheDataElseLoad timeoutInterval:5];
if(request != nil) {
dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, (unsigned long)NULL), ^(void) {
NSURLResponse *response = nil;
NSError *error = nil;
NSData *data = nil;
data = [NSURLConnection sendSynchronousRequest:request returningResponse:&response error:&error];
if(data != nil) {
UIImage *image = [UIImage imageWithData:data];
dispatch_async(dispatch_get_main_queue(), ^{
[waitIndicatorView stopAnimating];
[self setImage:image];
});
} else {
dispatch_async(dispatch_get_main_queue(), ^{
[waitIndicatorView stopAnimating];
});
}
});
}
}
@end

View file

@ -44,7 +44,7 @@
History *history;
NSError *error;
NSRegularExpression *regex = [NSRegularExpression
regularExpressionWithPattern:@"([\\d]+) ([\\d]+ [\\d]+) ([\\d]+) (.)"
regularExpressionWithPattern:@"([\\d]+) ([\\d]+ [\\d]+) ([\\d]+) (i|o)"
options:NSRegularExpressionCaseInsensitive
error:&error];
@ -54,15 +54,14 @@
history.ID = [[line substringWithRange:[result rangeAtIndex:1]] intValue];
NSDateFormatter *dateFormat = [[NSDateFormatter alloc] init];
[dateFormat setDateFormat:@"yyyyMMdd hhmm"];
[dateFormat setDateFormat:@"yyyyMMdd HHmm"];
NSString *stringDate = [line substringWithRange:[result rangeAtIndex:2]];
history.date = [dateFormat dateFromString:stringDate];
[dateFormat release];
history.stationID = [[line substringWithRange:[result rangeAtIndex:3]] intValue];
history.incoming = [[line substringWithRange:[result rangeAtIndex:4]] compare:@"i" options:NSCaseInsensitiveSearch] == 0 ||
[[line substringWithRange:[result rangeAtIndex:4]] compare:@"1" options:NSCaseInsensitiveSearch] == 0;
history.incoming = [[line substringWithRange:[result rangeAtIndex:4]] compare:@"i" options:NSCaseInsensitiveSearch] == 0;
NSRange range = [result rangeAtIndex:0];
range.location += range.length;
@ -70,7 +69,7 @@
NSArray *array = [[line substringWithRange:range] componentsSeparatedByString:@" "];
history.images = [array filteredArrayUsingPredicate:[NSPredicate predicateWithFormat:@"length > 0"]];
} else {
[LinphoneLogger log:LinphoneLoggerWarning format:@"Invalid history line", line];
[LinphoneLogger log:LinphoneLoggerWarning format:@"Invalid history line: %@", line];
}
return history;

View file

@ -66,7 +66,7 @@
</array>
<key>UIRequiresPersistentWiFi</key>
<true/>
<key>UIStatusBarHidden</key>
<true/>
<key>UIStatusBarStyle</key>
<string>UIStatusBarStyleBlackOpaque</string>
</dict>
</plist>

View file

@ -254,6 +254,16 @@
D3F7998215BD32370018C273 /* TPMultiLayoutViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = D3F7998015BD32370018C273 /* TPMultiLayoutViewController.m */; };
D3F9A9EE15AF277E0045320F /* UACellBackgroundView.m in Sources */ = {isa = PBXBuildFile; fileRef = D3F9A9ED15AF277D0045320F /* UACellBackgroundView.m */; };
D3F9A9EF15AF277E0045320F /* UACellBackgroundView.m in Sources */ = {isa = PBXBuildFile; fileRef = D3F9A9ED15AF277D0045320F /* UACellBackgroundView.m */; };
D3FE9F3E15E789A30024F3E4 /* UIRemoteImageView.m in Sources */ = {isa = PBXBuildFile; fileRef = D3FE9F3D15E789A30024F3E4 /* UIRemoteImageView.m */; };
D3FE9F3F15E789A30024F3E4 /* UIRemoteImageView.m in Sources */ = {isa = PBXBuildFile; fileRef = D3FE9F3D15E789A30024F3E4 /* UIRemoteImageView.m */; };
D3FE9F4415E78D720024F3E4 /* BuschJaegerHistoryDetailsView.m in Sources */ = {isa = PBXBuildFile; fileRef = D3FE9F4215E78D700024F3E4 /* BuschJaegerHistoryDetailsView.m */; };
D3FE9F4515E78D720024F3E4 /* BuschJaegerHistoryDetailsView.m in Sources */ = {isa = PBXBuildFile; fileRef = D3FE9F4215E78D700024F3E4 /* BuschJaegerHistoryDetailsView.m */; };
D3FE9F4615E78D720024F3E4 /* BuschJaegerHistoryDetailsView.xib in Resources */ = {isa = PBXBuildFile; fileRef = D3FE9F4315E78D710024F3E4 /* BuschJaegerHistoryDetailsView.xib */; };
D3FE9F4715E78D720024F3E4 /* BuschJaegerHistoryDetailsView.xib in Resources */ = {isa = PBXBuildFile; fileRef = D3FE9F4315E78D710024F3E4 /* BuschJaegerHistoryDetailsView.xib */; };
D3FE9F4B15E790D80024F3E4 /* UIHistoryDetailsCell.m in Sources */ = {isa = PBXBuildFile; fileRef = D3FE9F4915E790D80024F3E4 /* UIHistoryDetailsCell.m */; };
D3FE9F4C15E790D80024F3E4 /* UIHistoryDetailsCell.m in Sources */ = {isa = PBXBuildFile; fileRef = D3FE9F4915E790D80024F3E4 /* UIHistoryDetailsCell.m */; };
D3FE9F4D15E790D80024F3E4 /* UIHistoryDetailsCell.xib in Resources */ = {isa = PBXBuildFile; fileRef = D3FE9F4A15E790D80024F3E4 /* UIHistoryDetailsCell.xib */; };
D3FE9F4E15E790D80024F3E4 /* UIHistoryDetailsCell.xib in Resources */ = {isa = PBXBuildFile; fileRef = D3FE9F4A15E790D80024F3E4 /* UIHistoryDetailsCell.xib */; };
F476004B147AAF2800FFF19B /* liblinphone.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 2211DB911475562600DEE054 /* liblinphone.a */; };
F476004C147AAF4600FFF19B /* libmediastreamer.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 2211DB8F147555C800DEE054 /* libmediastreamer.a */; };
/* End PBXBuildFile section */
@ -658,6 +668,14 @@
D3F7998015BD32370018C273 /* TPMultiLayoutViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = TPMultiLayoutViewController.m; path = Utils/TPMultiLayoutViewController/TPMultiLayoutViewController.m; sourceTree = "<group>"; };
D3F9A9EC15AF277D0045320F /* UACellBackgroundView.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = UACellBackgroundView.h; path = Utils/UACellBackgroundView/UACellBackgroundView.h; sourceTree = "<group>"; };
D3F9A9ED15AF277D0045320F /* UACellBackgroundView.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = UACellBackgroundView.m; path = Utils/UACellBackgroundView/UACellBackgroundView.m; sourceTree = "<group>"; };
D3FE9F3C15E789A30024F3E4 /* UIRemoteImageView.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = UIRemoteImageView.h; sourceTree = "<group>"; };
D3FE9F3D15E789A30024F3E4 /* UIRemoteImageView.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = UIRemoteImageView.m; sourceTree = "<group>"; };
D3FE9F4115E78D700024F3E4 /* BuschJaegerHistoryDetailsView.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = BuschJaegerHistoryDetailsView.h; sourceTree = "<group>"; };
D3FE9F4215E78D700024F3E4 /* BuschJaegerHistoryDetailsView.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = BuschJaegerHistoryDetailsView.m; sourceTree = "<group>"; };
D3FE9F4315E78D710024F3E4 /* BuschJaegerHistoryDetailsView.xib */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.xib; path = BuschJaegerHistoryDetailsView.xib; sourceTree = "<group>"; };
D3FE9F4815E790D70024F3E4 /* UIHistoryDetailsCell.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = UIHistoryDetailsCell.h; sourceTree = "<group>"; };
D3FE9F4915E790D80024F3E4 /* UIHistoryDetailsCell.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = UIHistoryDetailsCell.m; sourceTree = "<group>"; };
D3FE9F4A15E790D80024F3E4 /* UIHistoryDetailsCell.xib */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.xib; path = UIHistoryDetailsCell.xib; sourceTree = "<group>"; };
/* End PBXFileReference section */
/* Begin PBXFrameworksBuildPhase section */
@ -776,6 +794,9 @@
D37CD30015E21E320028869A /* BuschJaegerCallView.xib */,
D37CD30115E21E320028869A /* BuschJaegerConfiguration.h */,
D37CD30215E21E320028869A /* BuschJaegerConfiguration.m */,
D3FE9F4115E78D700024F3E4 /* BuschJaegerHistoryDetailsView.h */,
D3FE9F4215E78D700024F3E4 /* BuschJaegerHistoryDetailsView.m */,
D3FE9F4315E78D710024F3E4 /* BuschJaegerHistoryDetailsView.xib */,
D384468315E6577600DF89DF /* BuschJaegerHistoryTableViewController.h */,
D384468415E6577700DF89DF /* BuschJaegerHistoryTableViewController.m */,
D384467515E64D7400DF89DF /* BuschJaegerHistoryView.h */,
@ -1029,6 +1050,9 @@
D384467C15E656D600DF89DF /* UIHistoryCell.h */,
D384467D15E656D600DF89DF /* UIHistoryCell.m */,
D384468015E656ED00DF89DF /* UIHistoryCell.xib */,
D3FE9F4815E790D70024F3E4 /* UIHistoryDetailsCell.h */,
D3FE9F4915E790D80024F3E4 /* UIHistoryDetailsCell.m */,
D3FE9F4A15E790D80024F3E4 /* UIHistoryDetailsCell.xib */,
D37CD31F15E21E520028869A /* UILightButton.h */,
D37CD32015E21E520028869A /* UILightButton.m */,
D3E84F3C15B018A600420DAC /* UILinphone.h */,
@ -1039,6 +1063,8 @@
2214EBF212F86360002A5394 /* UIMicroButton.m */,
D36FB2D31589EF7C0036F6F2 /* UIPauseButton.h */,
D36FB2D41589EF7C0036F6F2 /* UIPauseButton.m */,
D3FE9F3C15E789A30024F3E4 /* UIRemoteImageView.h */,
D3FE9F3D15E789A30024F3E4 /* UIRemoteImageView.m */,
22968A5D12F875C600588287 /* UISpeakerButton.h */,
22968A5E12F875C600588287 /* UISpeakerButton.m */,
D37CD39815E244D10028869A /* UIStationCell.h */,
@ -1474,6 +1500,8 @@
D384467315E64CD600DF89DF /* bj_history.png in Resources */,
D384467A15E64D7400DF89DF /* BuschJaegerHistoryView.xib in Resources */,
D384468115E656ED00DF89DF /* UIHistoryCell.xib in Resources */,
D3FE9F4615E78D720024F3E4 /* BuschJaegerHistoryDetailsView.xib in Resources */,
D3FE9F4D15E790D80024F3E4 /* UIHistoryDetailsCell.xib in Resources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
@ -1518,6 +1546,8 @@
D384467415E64CD600DF89DF /* bj_history.png in Resources */,
D384467B15E64D7400DF89DF /* BuschJaegerHistoryView.xib in Resources */,
D384468215E656ED00DF89DF /* UIHistoryCell.xib in Resources */,
D3FE9F4715E78D720024F3E4 /* BuschJaegerHistoryDetailsView.xib in Resources */,
D3FE9F4E15E790D80024F3E4 /* UIHistoryDetailsCell.xib in Resources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
@ -1600,6 +1630,9 @@
D384467E15E656D600DF89DF /* UIHistoryCell.m in Sources */,
D384468515E6577700DF89DF /* BuschJaegerHistoryTableViewController.m in Sources */,
D384468915E65CFE00DF89DF /* History.m in Sources */,
D3FE9F3E15E789A30024F3E4 /* UIRemoteImageView.m in Sources */,
D3FE9F4415E78D720024F3E4 /* BuschJaegerHistoryDetailsView.m in Sources */,
D3FE9F4B15E790D80024F3E4 /* UIHistoryDetailsCell.m in Sources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
@ -1650,6 +1683,9 @@
D384467F15E656D600DF89DF /* UIHistoryCell.m in Sources */,
D384468615E6577700DF89DF /* BuschJaegerHistoryTableViewController.m in Sources */,
D384468A15E65CFE00DF89DF /* History.m in Sources */,
D3FE9F3F15E789A30024F3E4 /* UIRemoteImageView.m in Sources */,
D3FE9F4515E78D720024F3E4 /* BuschJaegerHistoryDetailsView.m in Sources */,
D3FE9F4C15E790D80024F3E4 /* UIHistoryDetailsCell.m in Sources */,
);
runOnlyForDeploymentPostprocessing = 0;
};

View file

@ -13,6 +13,8 @@ default_proxy=-1
register_only_when_network_is_up=1
auto_net_state_mon=0
keepalive_period=30000
media_encryption=none
incoming_calls_early_media=1
[rtp]
audio_jitt_comp=60
@ -28,11 +30,11 @@ dtmf_player_amp=0.007
[misc]
history_max_size=30
max_calls=3
max_calls=1
[video]
display=1
capture=1
capture=0
show_local=0
enabled=1
size=vga