Changeset 1384
- Timestamp:
- 07/28/04 11:12:58 (4 years ago)
- Files:
-
- WiredClient/trunk/WCChat.m (modified) (9 diffs)
- WiredClient/trunk/WCConnection.h (modified) (4 diffs)
- WiredClient/trunk/WCConnection.m (modified) (2 diffs)
- WiredClient/trunk/WCPrivateChat.m (modified) (3 diffs)
- WiredClient/trunk/WCTransfers.h (modified) (3 diffs)
- WiredClient/trunk/WCTransfers.m (modified) (3 diffs)
- WiredClient/trunk/WCUserInfo.m (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
WiredClient/trunk/WCChat.m
r1382 r1384 1 /* $Id: WCChat.m,v 1.5 3 2004/07/27 19:07:00morris Exp $ */1 /* $Id: WCChat.m,v 1.54 2004/07/28 09:12:58 morris Exp $ */ 2 2 3 3 /* … … 30 30 #import "NSDateAdditions.h" 31 31 #import "NSMutableAttributedStringAdditions.h" 32 #import "NSStringAdditions.h" 32 33 #import "NSTextViewAdditions.h" 33 34 #import "NSWindowControllerAdditions.h" … … 259 260 } 260 261 261 if( (unsigned int) [cid intValue] != _cid)262 if([cid unsignedIntValue] != _cid) 262 263 return; 263 264 … … 307 308 return; 308 309 309 if( (unsigned int) [argument intValue] != _cid)310 if([argument unsignedIntValue] != _cid) 310 311 return; 311 312 … … 370 371 } 371 372 372 if( (unsigned int) [cid intValue] != _cid)373 if([cid unsignedIntValue] != _cid) 373 374 return; 374 375 … … 451 452 uid = [fields objectAtIndex:1]; 452 453 453 if( (unsigned int) [cid intValue] != _cid)454 if([cid unsignedIntValue] != _cid) 454 455 return; 455 456 … … 701 702 chat = [fields objectAtIndex:2]; 702 703 703 if( (unsigned int) [cid intValue] != _cid)704 if([cid unsignedIntValue] != _cid) 704 705 return; 705 706 … … 811 812 chat = [fields objectAtIndex:2]; 812 813 813 if( (unsigned int) [cid intValue] != _cid)814 if([cid unsignedIntValue] != _cid) 814 815 return; 815 816 … … 901 902 topic = [fields objectAtIndex:1]; 902 903 903 if( (unsigned int) [cid intValue] != _cid)904 if([cid unsignedIntValue] != _cid) 904 905 return; 905 906 WiredClient/trunk/WCConnection.h
r1383 r1384 1 /* $Id: WCConnection.h,v 1.1 6 2004/07/28 08:00:26morris Exp $ */1 /* $Id: WCConnection.h,v 1.17 2004/07/28 09:12:58 morris Exp $ */ 2 2 3 3 /* … … 26 26 * POSSIBILITY OF SUCH DAMAGE. 27 27 */ 28 29 enum WCConnectionType { 30 WCConnectionTypeServer = 0, 31 WCConnectionTypeTracker 32 }; 33 typedef enum WCConnectionType WCConnectionType; 34 28 35 29 36 @protocol WCConnectionErrorHandling … … 57 64 id _sender; 58 65 NSTimer *_timer; 59 unsigned int_type;66 WCConnectionType _type; 60 67 unsigned int _uid; 61 68 BOOL _connected, _cancelled; 62 69 } 63 64 65 enum WCConnectionType {66 WCConnectionTypeServer = 0,67 WCConnectionTypeTracker68 };69 70 70 71 … … 165 166 - (WCTransfers *) transfers; 166 167 167 - ( unsigned int)type;168 - (WCConnectionType) type; 168 169 - (WCCache *) cache; 169 170 - (WCServer *) server; WiredClient/trunk/WCConnection.m
r1376 r1384 1 /* $Id: WCConnection.m,v 1.2 1 2004/07/27 17:37:44morris Exp $ */1 /* $Id: WCConnection.m,v 1.22 2004/07/28 09:12:58 morris Exp $ */ 2 2 3 3 /* … … 1067 1067 #pragma mark - 1068 1068 1069 - ( unsigned int)type {1069 - (WCConnectionType)type { 1070 1070 return _type; 1071 1071 } WiredClient/trunk/WCPrivateChat.m
r1376 r1384 1 /* $Id: WCPrivateChat.m,v 1. 19 2004/07/27 17:37:44morris Exp $ */1 /* $Id: WCPrivateChat.m,v 1.20 2004/07/28 09:12:58 morris Exp $ */ 2 2 3 3 /* … … 27 27 */ 28 28 29 #import "NSStringAdditions.h" 29 30 #import "WCAccount.h" 30 31 #import "WCConnection.h" … … 147 148 uid = [fields objectAtIndex:1]; 148 149 149 if( (unsigned int) [cid intValue] != _cid)150 if([cid unsignedIntValue] != _cid) 150 151 return; 151 152 WiredClient/trunk/WCTransfers.h
r1383 r1384 1 /* $Id: WCTransfers.h,v 1. 9 2004/07/28 08:00:26morris Exp $ */1 /* $Id: WCTransfers.h,v 1.10 2004/07/28 09:12:58 morris Exp $ */ 2 2 3 3 /* … … 27 27 */ 28 28 29 #import "WCTransfer.h" 29 30 #import "WCWindowController.h" 30 31 … … 68 69 69 70 - (WCTransfer *) transferWithPath:(NSString *)path; 70 - (WCTransfer *) transferWithState:( unsigned int)state;71 - (WCTransfer *) transferWithState:(WCTransferState)state; 71 72 - (unsigned int) transfersCount; 72 73 WiredClient/trunk/WCTransfers.m
r1383 r1384 1 /* $Id: WCTransfers.m,v 1.3 2 2004/07/28 08:00:26morris Exp $ */1 /* $Id: WCTransfers.m,v 1.33 2004/07/28 09:12:58 morris Exp $ */ 2 2 3 3 /* … … 314 314 // --- update queue position 315 315 [transfer setState:WCTransferStateQueued]; 316 [transfer setQueue: (unsigned int) [queue intValue]];316 [transfer setQueue:[queue unsignedIntValue]]; 317 317 318 318 // --- reload table … … 717 717 718 718 719 - (WCTransfer *)transferWithState:( unsigned int)state {719 - (WCTransfer *)transferWithState:(WCTransferState)state { 720 720 NSEnumerator *enumerator; 721 721 WCTransfer *each, *transfer = NULL; WiredClient/trunk/WCUserInfo.m
r1371 r1384 1 /* $Id: WCUserInfo.m,v 1.2 0 2004/07/23 11:29:12morris Exp $ */1 /* $Id: WCUserInfo.m,v 1.21 2004/07/28 09:12:58 morris Exp $ */ 2 2 3 3 /* … … 151 151 uploads = [fields objectAtIndex:14]; 152 152 153 if( (unsigned int) [uid intValue] != [_user uid])153 if([uid unsignedIntValue] != [_user uid]) 154 154 return; 155 155
