forked from ChatSecure/ChatSecure-iOS
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
43b0566
commit 4598618
Showing
7 changed files
with
110 additions
and
43 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
Binary file modified
BIN
+1.54 KB
(100%)
...deproj/project.xcworkspace/xcuserdata/chrisbal.xcuserdatad/UserInterfaceState.xcuserstate
Binary file not shown.
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 | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
// | ||
// OTRBuddy.h | ||
// Off the Record | ||
// | ||
// Created by Chris Ballinger on 9/12/11. | ||
// Copyright (c) 2011 __MyCompanyName__. All rights reserved. | ||
// | ||
|
||
#import <Foundation/Foundation.h> | ||
|
||
typedef unsigned int OTRBuddyStatus; | ||
|
||
enum OTRBuddyStatus { | ||
kOTRBuddyStatusOffline = 0, | ||
kOTRBuddyStatusAvailable = 1, | ||
kOTRBuddyStatusAway = 2 | ||
}; | ||
|
||
@interface OTRBuddy : NSObject | ||
|
||
@property (readonly, retain) NSString* name; | ||
@property (readonly, retain) NSString* protocol; | ||
@property (nonatomic, retain) NSString* groupName; | ||
@property OTRBuddyStatus status; | ||
|
||
-(id)initWithName:(NSString*)buddyName protocol:(NSString*)buddyProtocol status:(OTRBuddyStatus)buddyStatus groupName:(NSString*)buddyGroupName; | ||
+(OTRBuddy*)buddyWithName:(NSString*)buddyName protocol:(NSString*)buddyProtocol status:(OTRBuddyStatus)buddyStatus groupName:(NSString*)buddyGroupName; | ||
|
||
@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 | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
// | ||
// OTRBuddy.m | ||
// Off the Record | ||
// | ||
// Created by Chris Ballinger on 9/12/11. | ||
// Copyright (c) 2011 __MyCompanyName__. All rights reserved. | ||
// | ||
|
||
#import "OTRBuddy.h" | ||
|
||
@implementation OTRBuddy | ||
|
||
@synthesize name; | ||
@synthesize protocol; | ||
@synthesize groupName; | ||
@synthesize status; | ||
|
||
-(id)initWithName:(NSString*)buddyName protocol:(NSString*)buddyProtocol status:(OTRBuddyStatus)buddyStatus groupName:(NSString*)buddyGroupName | ||
{ | ||
self = [self init]; | ||
|
||
if(self) | ||
{ | ||
name = buddyName; | ||
protocol = buddyProtocol; | ||
status = buddyStatus; | ||
groupName = buddyGroupName; | ||
} | ||
return self; | ||
} | ||
|
||
+(OTRBuddy*)buddyWithName:(NSString*)buddyName protocol:(NSString*)buddyProtocol status:(OTRBuddyStatus)buddyStatus groupName:(NSString *)buddyGroupName | ||
{ | ||
OTRBuddy *newBuddy = [[[OTRBuddy alloc] initWithName:buddyName protocol:buddyProtocol status:buddyStatus groupName:buddyGroupName] autorelease]; | ||
return newBuddy; | ||
} | ||
|
||
@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