author | Jens Alfke <jens@mooseyard.com> |
Wed May 20 08:34:04 2009 -0700 (2009-05-20) | |
changeset 32 | 222393534845 |
parent 11 | e5976864dfe9 |
permissions | -rw-r--r-- |
jens@0 | 1 |
// |
jens@0 | 2 |
// IChatUtils.h |
jens@0 | 3 |
// MYUtilities |
jens@0 | 4 |
// |
jens@0 | 5 |
// Created by Jens Alfke on 3/3/08. |
jens@0 | 6 |
// Copyright 2008 Jens Alfke. All rights reserved. |
jens@0 | 7 |
// |
jens@0 | 8 |
|
jens@0 | 9 |
#import <Cocoa/Cocoa.h> |
jens@11 | 10 |
@class SBApplication, ABPerson; |
jens@0 | 11 |
|
jens@0 | 12 |
|
jens@0 | 13 |
@interface IChatUtils : NSObject |
jens@0 | 14 |
|
jens@0 | 15 |
+ (SBApplication*) app; |
jens@0 | 16 |
+ (BOOL) isRunning; |
jens@0 | 17 |
+ (void) activate; |
jens@0 | 18 |
+ (NSString*) activeChatPartner; |
jens@0 | 19 |
+ (BOOL) sendMessage: (NSString*)msg; |
jens@0 | 20 |
|
jens@11 | 21 |
+ (NSDictionary*) iChatInfoForOnlinePerson: (ABPerson*)abPerson; |
jens@11 | 22 |
+ (BOOL) isPersonOnline: (ABPerson*)abPerson; |
jens@17 | 23 |
|
jens@11 | 24 |
+ (BOOL) sendMessage: (NSString*)msg toPerson: (ABPerson*)abPerson; |
jens@17 | 25 |
+ (BOOL) sendMessage: (NSString*)msg toBuddyWithScreenName: (NSString*)screenName; |
jens@11 | 26 |
|
jens@0 | 27 |
@end |