Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add basic state changes for wifi networks.
- Loading branch information
Showing
6 changed files
with
145 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,14 @@ | |||
// | |||
// GlobalState.h | |||
// Settings | |||
// | |||
// Created by Jeffrey Verkoeyen on 12-06-06. | |||
// Copyright (c) 2012 Memento. All rights reserved. | |||
// | |||
|
|||
#import <Foundation/Foundation.h> | |||
|
|||
@interface GlobalState : NSObject | |||
+ (GlobalState *)sharedInstance; | |||
@property (nonatomic, readwrite, assign) BOOL wifi; | |||
@end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,25 @@ | |||
// | |||
// GlobalState.m | |||
// Settings | |||
// | |||
// Created by Jeffrey Verkoeyen on 12-06-06. | |||
// Copyright (c) 2012 Memento. All rights reserved. | |||
// | |||
|
|||
#import "GlobalState.h" | |||
|
|||
@implementation GlobalState | |||
|
|||
@synthesize wifi; | |||
|
|||
+ (GlobalState *)sharedInstance { | |||
static GlobalState *sSingleton; | |||
@synchronized(self) { | |||
if (nil == sSingleton) { | |||
sSingleton = [[self alloc] init]; | |||
} | |||
return sSingleton; | |||
} | |||
} | |||
|
|||
@end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters