IChatUtils.h
author Jens Alfke <jens@mooseyard.com>
Thu May 14 20:44:32 2009 -0700 (2009-05-14)
changeset 31 2068331949ee
parent 11 e5976864dfe9
permissions -rw-r--r--
* Optimized Olivier's MYDirectoryWatcher fix (by caching the watcher's standardized path)
* Added -[NSData my_UTF8ToString] to CollectionUtils.
     1 //
     2 //  IChatUtils.h
     3 //  MYUtilities
     4 //
     5 //  Created by Jens Alfke on 3/3/08.
     6 //  Copyright 2008 Jens Alfke. All rights reserved.
     7 //
     8 
     9 #import <Cocoa/Cocoa.h>
    10 @class SBApplication, ABPerson;
    11 
    12 
    13 @interface IChatUtils : NSObject 
    14 
    15 + (SBApplication*) app;
    16 + (BOOL) isRunning;
    17 + (void) activate;
    18 + (NSString*) activeChatPartner;
    19 + (BOOL) sendMessage: (NSString*)msg;
    20 
    21 + (NSDictionary*) iChatInfoForOnlinePerson: (ABPerson*)abPerson;
    22 + (BOOL) isPersonOnline: (ABPerson*)abPerson;
    23 
    24 + (BOOL) sendMessage: (NSString*)msg toPerson: (ABPerson*)abPerson;
    25 + (BOOL) sendMessage: (NSString*)msg toBuddyWithScreenName: (NSString*)screenName;
    26 
    27 @end