iChatBridge.h
changeset 29 8874aff14cc9
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/iChatBridge.h	Sun May 10 18:57:43 2009 -0700
     1.3 @@ -0,0 +1,460 @@
     1.4 +/*
     1.5 + * iChat.h
     1.6 + */
     1.7 +
     1.8 +#import <AppKit/AppKit.h>
     1.9 +#import <ScriptingBridge/ScriptingBridge.h>
    1.10 +
    1.11 +
    1.12 +@class iChatItem, iChatApplication, iChatColor, iChatDocument, iChatWindow, iChatRichText, iChatCharacter, iChatParagraph, iChatWord, iChatAttributeRun, iChatAttachment, iChatApplication, iChatBuddy, iChatService, iChatChat, iChatTextChat, iChatAudioChat, iChatVideoChat, iChatFileTransfer;
    1.13 +
    1.14 +typedef enum {
    1.15 +	iChatSaveOptionsYes = 'yes ' /* Save the file. */,
    1.16 +	iChatSaveOptionsNo = 'no  ' /* Do not save the file. */,
    1.17 +	iChatSaveOptionsAsk = 'ask ' /* Ask the user whether or not to save the file. */
    1.18 +} iChatSaveOptions;
    1.19 +
    1.20 +typedef enum {
    1.21 +	iChatInviteTypeAudioInvitation = 'acon',
    1.22 +	iChatInviteTypeTextChatInvitation = 'tcon',
    1.23 +	iChatInviteTypeVideoInvitation = 'vcon'
    1.24 +} iChatInviteType;
    1.25 +
    1.26 +typedef enum {
    1.27 +	iChatAccountStatusAvailable = 'aval',
    1.28 +	iChatAccountStatusAway = 'away',
    1.29 +	iChatAccountStatusOffline = 'offl',
    1.30 +	iChatAccountStatusInvisible = 'invs',
    1.31 +	iChatAccountStatusIdle = 'idle',
    1.32 +	iChatAccountStatusUnknown = 'unkn'
    1.33 +} iChatAccountStatus;
    1.34 +
    1.35 +typedef enum {
    1.36 +	iChatMyStatusAway = 'away',
    1.37 +	iChatMyStatusAvailable = 'aval',
    1.38 +	iChatMyStatusOffline = 'offl',
    1.39 +	iChatMyStatusInvisible = 'invs'
    1.40 +} iChatMyStatus;
    1.41 +
    1.42 +typedef enum {
    1.43 +	iChatConnectionStatusDisconnecting = 'dcng',
    1.44 +	iChatConnectionStatusConnected = 'conn',
    1.45 +	iChatConnectionStatusConnecting = 'cong',
    1.46 +	iChatConnectionStatusDisconnected = 'dcon'
    1.47 +} iChatConnectionStatus;
    1.48 +
    1.49 +typedef enum {
    1.50 +	iChatCapabilitiesVideoChat = 'vcon',
    1.51 +	iChatCapabilitiesAudioChat = 'acon',
    1.52 +	iChatCapabilitiesMultipersonVideo = 'mwvc',
    1.53 +	iChatCapabilitiesMultipersonAudio = 'mwac'
    1.54 +} iChatCapabilities;
    1.55 +
    1.56 +typedef enum {
    1.57 +	iChatScreenSharingNone = 'ssns',
    1.58 +	iChatScreenSharingLocalScreen = 'ssls',
    1.59 +	iChatScreenSharingRemoteScreen = 'ssrs'
    1.60 +} iChatScreenSharing;
    1.61 +
    1.62 +typedef enum {
    1.63 +	iChatServiceTypeAIM = 'saim',
    1.64 +	iChatServiceTypeBonjour = 'ssub',
    1.65 +	iChatServiceTypeJabber = 'sjab'
    1.66 +} iChatServiceType;
    1.67 +
    1.68 +typedef enum {
    1.69 +	iChatDirectionIncoming = 'FTic',
    1.70 +	iChatDirectionOutgoing = 'FTog'
    1.71 +} iChatDirection;
    1.72 +
    1.73 +typedef enum {
    1.74 +	iChatTransferStatusPreparing = 'FTsp',
    1.75 +	iChatTransferStatusWaiting = 'FTsw',
    1.76 +	iChatTransferStatusTransferring = 'FTsg',
    1.77 +	iChatTransferStatusFinalizing = 'FTsz',
    1.78 +	iChatTransferStatusFinished = 'FTsf',
    1.79 +	iChatTransferStatusFailed = 'FTse'
    1.80 +} iChatTransferStatus;
    1.81 +
    1.82 +typedef enum {
    1.83 +	iChatAvTypeAudio = 'ICAa',
    1.84 +	iChatAvTypeVideo = 'ICAv'
    1.85 +} iChatAvType;
    1.86 +
    1.87 +typedef enum {
    1.88 +	iChatChatTypeInstantMessage = 'ICim',
    1.89 +	iChatChatTypeDirectInstantMessage = 'ICdi',
    1.90 +	iChatChatTypeChatRoom = 'ICcr'
    1.91 +} iChatChatType;
    1.92 +
    1.93 +typedef enum {
    1.94 +	iChatJoinStateNotJoined = 'ICJc',
    1.95 +	iChatJoinStateJoining = 'ICJg',
    1.96 +	iChatJoinStateJoined = 'ICJj'
    1.97 +} iChatJoinState;
    1.98 +
    1.99 +typedef enum {
   1.100 +	iChatAvConnectionStatusInvited = 'ICAi',
   1.101 +	iChatAvConnectionStatusWaiting = 'ICAw',
   1.102 +	iChatAvConnectionStatusConnecting = 'ICAx',
   1.103 +	iChatAvConnectionStatusConnected = 'ICAc',
   1.104 +	iChatAvConnectionStatusEnded = 'ICAn'
   1.105 +} iChatAvConnectionStatus;
   1.106 +
   1.107 +
   1.108 +
   1.109 +/*
   1.110 + * Standard Suite
   1.111 + */
   1.112 +
   1.113 +// A scriptable object.
   1.114 +@interface iChatItem : SBObject
   1.115 +
   1.116 +@property (copy) NSDictionary *properties;  // All of the object's properties.
   1.117 +
   1.118 +- (void) closeSaving:(iChatSaveOptions)saving savingIn:(NSURL *)savingIn;  // Close a document.
   1.119 +- (void) saveIn:(NSURL *)in_ as:(NSString *)as;  // Save a document.
   1.120 +- (void) delete;  // Delete an object.
   1.121 +- (SBObject *) duplicateTo:(SBObject *)to withProperties:(NSDictionary *)withProperties;  // Copy object(s) and put the copies at a new location.
   1.122 +- (BOOL) exists;  // Verify if an object exists.
   1.123 +- (SBObject *) moveTo:(SBObject *)to;  // Move object(s) to a new location.
   1.124 +
   1.125 +@end
   1.126 +
   1.127 +// The application's top-level scripting object.
   1.128 +@interface iChatApplication : SBApplication
   1.129 +
   1.130 +- (SBElementArray *) documents;
   1.131 +- (SBElementArray *) windows;
   1.132 +
   1.133 +@property (copy, readonly) NSString *name;  // The name of the application.
   1.134 +@property (readonly) BOOL frontmost;  // Is this the frontmost (active) application?
   1.135 +@property (copy, readonly) NSString *version;  // The version of the application.
   1.136 +
   1.137 +- (void) open:(NSArray *)x;  // Open a document.
   1.138 +- (void) print:(NSURL *)x;  // Print an object.
   1.139 +- (void) quitSaving:(iChatSaveOptions)saving;  // Quit the application.
   1.140 +- (void) invite:(NSArray *)x to:(id)to withMessage:(NSString *)withMessage;  // Invites a buddy to join an existing chat.
   1.141 +- (void) logIn;  // Log in to the specified service, or all services if none is specified. If the account password is not in the keychain the user will be prompted to enter one.
   1.142 +- (void) logOut;  // Logs out of a service, or all services if none is specified.
   1.143 +- (void) send:(id)x to:(id)to;  // Sends a message or file to a buddy or to a chat.
   1.144 +- (void) storeRecentPicture;  // Stores the currently set buddy picture into your recent pictures.
   1.145 +- (void) showChatChooserFor:(iChatBuddy *)for_;  // displays a dialog in iChat to start a new chat with the specified buddy
   1.146 +
   1.147 +@end
   1.148 +
   1.149 +// A color.
   1.150 +@interface iChatColor : SBObject
   1.151 +
   1.152 +- (void) closeSaving:(iChatSaveOptions)saving savingIn:(NSURL *)savingIn;  // Close a document.
   1.153 +- (void) saveIn:(NSURL *)in_ as:(NSString *)as;  // Save a document.
   1.154 +- (void) delete;  // Delete an object.
   1.155 +- (SBObject *) duplicateTo:(SBObject *)to withProperties:(NSDictionary *)withProperties;  // Copy object(s) and put the copies at a new location.
   1.156 +- (BOOL) exists;  // Verify if an object exists.
   1.157 +- (SBObject *) moveTo:(SBObject *)to;  // Move object(s) to a new location.
   1.158 +
   1.159 +@end
   1.160 +
   1.161 +// An iChat document.
   1.162 +@interface iChatDocument : SBObject
   1.163 +
   1.164 +@property (copy, readonly) NSString *name;  // The document's name.
   1.165 +@property (readonly) BOOL modified;  // Has the document been modified since the last save?
   1.166 +@property (copy, readonly) NSURL *file;  // The document's location on disk.
   1.167 +
   1.168 +- (void) closeSaving:(iChatSaveOptions)saving savingIn:(NSURL *)savingIn;  // Close a document.
   1.169 +- (void) saveIn:(NSURL *)in_ as:(NSString *)as;  // Save a document.
   1.170 +- (void) delete;  // Delete an object.
   1.171 +- (SBObject *) duplicateTo:(SBObject *)to withProperties:(NSDictionary *)withProperties;  // Copy object(s) and put the copies at a new location.
   1.172 +- (BOOL) exists;  // Verify if an object exists.
   1.173 +- (SBObject *) moveTo:(SBObject *)to;  // Move object(s) to a new location.
   1.174 +
   1.175 +@end
   1.176 +
   1.177 +// A window.
   1.178 +@interface iChatWindow : SBObject
   1.179 +
   1.180 +@property (copy, readonly) NSString *name;  // The full title of the window.
   1.181 +- (NSInteger) id;  // The unique identifier of the window.
   1.182 +@property NSInteger index;  // The index of the window, ordered front to back.
   1.183 +@property NSRect bounds;  // The bounding rectangle of the window.
   1.184 +@property (readonly) BOOL closeable;  // Whether the window has a close box.
   1.185 +@property (readonly) BOOL minimizable;  // Whether the window can be minimized.
   1.186 +@property BOOL minimized;  // Whether the window is currently minimized.
   1.187 +@property (readonly) BOOL resizable;  // Whether the window can be resized.
   1.188 +@property BOOL visible;  // Whether the window is currently visible.
   1.189 +@property (readonly) BOOL zoomable;  // Whether the window can be zoomed.
   1.190 +@property BOOL zoomed;  // Whether the window is currently zoomed.
   1.191 +@property (copy, readonly) iChatDocument *document;  // The document whose contents are being displayed in the window.
   1.192 +
   1.193 +- (void) closeSaving:(iChatSaveOptions)saving savingIn:(NSURL *)savingIn;  // Close a document.
   1.194 +- (void) saveIn:(NSURL *)in_ as:(NSString *)as;  // Save a document.
   1.195 +- (void) delete;  // Delete an object.
   1.196 +- (SBObject *) duplicateTo:(SBObject *)to withProperties:(NSDictionary *)withProperties;  // Copy object(s) and put the copies at a new location.
   1.197 +- (BOOL) exists;  // Verify if an object exists.
   1.198 +- (SBObject *) moveTo:(SBObject *)to;  // Move object(s) to a new location.
   1.199 +
   1.200 +@end
   1.201 +
   1.202 +
   1.203 +
   1.204 +/*
   1.205 + * Text Suite
   1.206 + */
   1.207 +
   1.208 +// Rich (styled) text
   1.209 +@interface iChatRichText : SBObject
   1.210 +
   1.211 +- (SBElementArray *) characters;
   1.212 +- (SBElementArray *) paragraphs;
   1.213 +- (SBElementArray *) words;
   1.214 +- (SBElementArray *) attributeRuns;
   1.215 +- (SBElementArray *) attachments;
   1.216 +
   1.217 +@property (copy) NSColor *color;  // The color of the first character.
   1.218 +@property (copy) NSString *font;  // The name of the font of the first character.
   1.219 +@property double size;  // The size in points of the first character.
   1.220 +
   1.221 +- (void) closeSaving:(iChatSaveOptions)saving savingIn:(NSURL *)savingIn;  // Close a document.
   1.222 +- (void) saveIn:(NSURL *)in_ as:(NSString *)as;  // Save a document.
   1.223 +- (void) delete;  // Delete an object.
   1.224 +- (SBObject *) duplicateTo:(SBObject *)to withProperties:(NSDictionary *)withProperties;  // Copy object(s) and put the copies at a new location.
   1.225 +- (BOOL) exists;  // Verify if an object exists.
   1.226 +- (SBObject *) moveTo:(SBObject *)to;  // Move object(s) to a new location.
   1.227 +
   1.228 +@end
   1.229 +
   1.230 +// This subdivides the text into characters.
   1.231 +@interface iChatCharacter : SBObject
   1.232 +
   1.233 +- (SBElementArray *) characters;
   1.234 +- (SBElementArray *) paragraphs;
   1.235 +- (SBElementArray *) words;
   1.236 +- (SBElementArray *) attributeRuns;
   1.237 +- (SBElementArray *) attachments;
   1.238 +
   1.239 +@property (copy) NSColor *color;  // The color of the first character.
   1.240 +@property (copy) NSString *font;  // The name of the font of the first character.
   1.241 +@property NSInteger size;  // The size in points of the first character.
   1.242 +
   1.243 +- (void) closeSaving:(iChatSaveOptions)saving savingIn:(NSURL *)savingIn;  // Close a document.
   1.244 +- (void) saveIn:(NSURL *)in_ as:(NSString *)as;  // Save a document.
   1.245 +- (void) delete;  // Delete an object.
   1.246 +- (SBObject *) duplicateTo:(SBObject *)to withProperties:(NSDictionary *)withProperties;  // Copy object(s) and put the copies at a new location.
   1.247 +- (BOOL) exists;  // Verify if an object exists.
   1.248 +- (SBObject *) moveTo:(SBObject *)to;  // Move object(s) to a new location.
   1.249 +
   1.250 +@end
   1.251 +
   1.252 +// This subdivides the text into paragraphs.
   1.253 +@interface iChatParagraph : SBObject
   1.254 +
   1.255 +- (SBElementArray *) characters;
   1.256 +- (SBElementArray *) paragraphs;
   1.257 +- (SBElementArray *) words;
   1.258 +- (SBElementArray *) attributeRuns;
   1.259 +- (SBElementArray *) attachments;
   1.260 +
   1.261 +@property (copy) NSColor *color;  // The color of the first character.
   1.262 +@property (copy) NSString *font;  // The name of the font of the first character.
   1.263 +@property NSInteger size;  // The size in points of the first character.
   1.264 +
   1.265 +- (void) closeSaving:(iChatSaveOptions)saving savingIn:(NSURL *)savingIn;  // Close a document.
   1.266 +- (void) saveIn:(NSURL *)in_ as:(NSString *)as;  // Save a document.
   1.267 +- (void) delete;  // Delete an object.
   1.268 +- (SBObject *) duplicateTo:(SBObject *)to withProperties:(NSDictionary *)withProperties;  // Copy object(s) and put the copies at a new location.
   1.269 +- (BOOL) exists;  // Verify if an object exists.
   1.270 +- (SBObject *) moveTo:(SBObject *)to;  // Move object(s) to a new location.
   1.271 +
   1.272 +@end
   1.273 +
   1.274 +// This subdivides the text into words.
   1.275 +@interface iChatWord : SBObject
   1.276 +
   1.277 +- (SBElementArray *) characters;
   1.278 +- (SBElementArray *) paragraphs;
   1.279 +- (SBElementArray *) words;
   1.280 +- (SBElementArray *) attributeRuns;
   1.281 +- (SBElementArray *) attachments;
   1.282 +
   1.283 +@property (copy) NSColor *color;  // The color of the first character.
   1.284 +@property (copy) NSString *font;  // The name of the font of the first character.
   1.285 +@property NSInteger size;  // The size in points of the first character.
   1.286 +
   1.287 +- (void) closeSaving:(iChatSaveOptions)saving savingIn:(NSURL *)savingIn;  // Close a document.
   1.288 +- (void) saveIn:(NSURL *)in_ as:(NSString *)as;  // Save a document.
   1.289 +- (void) delete;  // Delete an object.
   1.290 +- (SBObject *) duplicateTo:(SBObject *)to withProperties:(NSDictionary *)withProperties;  // Copy object(s) and put the copies at a new location.
   1.291 +- (BOOL) exists;  // Verify if an object exists.
   1.292 +- (SBObject *) moveTo:(SBObject *)to;  // Move object(s) to a new location.
   1.293 +
   1.294 +@end
   1.295 +
   1.296 +// This subdivides the text into chunks that all have the same attributes.
   1.297 +@interface iChatAttributeRun : SBObject
   1.298 +
   1.299 +- (SBElementArray *) characters;
   1.300 +- (SBElementArray *) paragraphs;
   1.301 +- (SBElementArray *) words;
   1.302 +- (SBElementArray *) attributeRuns;
   1.303 +- (SBElementArray *) attachments;
   1.304 +
   1.305 +@property (copy) NSColor *color;  // The color of the first character.
   1.306 +@property (copy) NSString *font;  // The name of the font of the first character.
   1.307 +@property NSInteger size;  // The size in points of the first character.
   1.308 +
   1.309 +- (void) closeSaving:(iChatSaveOptions)saving savingIn:(NSURL *)savingIn;  // Close a document.
   1.310 +- (void) saveIn:(NSURL *)in_ as:(NSString *)as;  // Save a document.
   1.311 +- (void) delete;  // Delete an object.
   1.312 +- (SBObject *) duplicateTo:(SBObject *)to withProperties:(NSDictionary *)withProperties;  // Copy object(s) and put the copies at a new location.
   1.313 +- (BOOL) exists;  // Verify if an object exists.
   1.314 +- (SBObject *) moveTo:(SBObject *)to;  // Move object(s) to a new location.
   1.315 +
   1.316 +@end
   1.317 +
   1.318 +// Represents an inline text attachment. This class is used mainly for make commands.
   1.319 +@interface iChatAttachment : iChatRichText
   1.320 +
   1.321 +@property (copy, readonly) NSURL *file;  // The path to the file for the attachment
   1.322 +
   1.323 +
   1.324 +@end
   1.325 +
   1.326 +
   1.327 +
   1.328 +/*
   1.329 + * iChat Suite
   1.330 + */
   1.331 +
   1.332 +// iChat application.
   1.333 +@interface iChatApplication (IChatSuite)
   1.334 +
   1.335 +- (SBElementArray *) buddies;
   1.336 +- (SBElementArray *) services;
   1.337 +- (SBElementArray *) fileTransfers;
   1.338 +- (SBElementArray *) chats;
   1.339 +- (SBElementArray *) textChats;
   1.340 +- (SBElementArray *) audioChats;
   1.341 +- (SBElementArray *) videoChats;
   1.342 +
   1.343 +@property (readonly) NSInteger idleTime;  // Time in seconds that I have been idle.
   1.344 +@property (copy) NSImage *image;  // My image as it appears in all services.
   1.345 +@property (copy) NSString *statusMessage;  // My status message, visible to other people while I am online.
   1.346 +@property iChatMyStatus status;  // My status on all services.
   1.347 +@property (copy) iChatAudioChat *activeAvChat;  // The currently active audio or video chat.
   1.348 +
   1.349 +@end
   1.350 +
   1.351 +// A buddy on a service.
   1.352 +@interface iChatBuddy : iChatItem
   1.353 +
   1.354 +- (NSString *) id;  // The buddy's service and handle. For example: AIM:JohnDoe007
   1.355 +@property (copy, readonly) iChatService *service;  // The service on which this buddy exists.
   1.356 +@property (copy, readonly) NSString *name;  // The buddy's name as it appears in the buddy list.
   1.357 +@property (copy, readonly) NSString *handle;  // The buddy's online account name.
   1.358 +@property (readonly) iChatAccountStatus status;  // The buddy's current status.
   1.359 +@property (copy, readonly) NSString *statusMessage;  // The buddy's current status message.
   1.360 +@property (readonly) NSInteger idleTime;  // The time in seconds the buddy has been idle.
   1.361 +@property (copy, readonly) NSArray *capabilities;  // The buddy's messaging capabilities.
   1.362 +@property (copy, readonly) NSImage *image;  // The buddy's custom image.
   1.363 +@property (copy, readonly) NSString *firstName;  // The first name from this buddy's Address Book card, if available
   1.364 +@property (copy, readonly) NSString *lastName;  // The last name from this buddy's Address Book card, if available
   1.365 +@property (copy, readonly) NSString *fullName;  // The full name from this buddy's Address Book card, if available
   1.366 +
   1.367 +
   1.368 +@end
   1.369 +
   1.370 +// A service that can be logged in from this system
   1.371 +@interface iChatService : iChatItem
   1.372 +
   1.373 +- (SBElementArray *) buddies;
   1.374 +- (SBElementArray *) chats;
   1.375 +
   1.376 +- (NSString *) id;  // A guid identifier for this service.
   1.377 +@property (copy) NSString *name;  // The name of this service as defined in Account preferences description field
   1.378 +@property BOOL enabled;  // Is the service enabled?
   1.379 +@property (readonly) iChatConnectionStatus status;  // The connection status for this account.
   1.380 +@property (readonly) iChatServiceType serviceType;  // The type of protocol for this service
   1.381 +
   1.382 +- (void) logIn;  // Log in to the specified service, or all services if none is specified. If the account password is not in the keychain the user will be prompted to enter one.
   1.383 +- (void) logOut;  // Logs out of a service, or all services if none is specified.
   1.384 +
   1.385 +@end
   1.386 +
   1.387 +// An audio, video, or text chat.
   1.388 +@interface iChatChat : SBObject
   1.389 +
   1.390 +- (NSString *) id;  // A guid identifier for this chat.
   1.391 +@property (copy, readonly) iChatService *service;  // The service which is participating in this chat.
   1.392 +@property (copy, readonly) NSArray *participants;  // Other participants of this chat. This property may be specified at time of creation.
   1.393 +@property (readonly) BOOL secure;  // Is this chat secure?
   1.394 +@property (readonly) BOOL invitation;  // Is this an invitation to a chat?
   1.395 +@property (readonly) BOOL active;  // Is this chat currently active?
   1.396 +@property (copy, readonly) NSDate *started;  // The date on which this chat started.
   1.397 +@property (copy, readonly) NSDate *updated;  // The date when this chat was last updated.
   1.398 +
   1.399 +- (void) closeSaving:(iChatSaveOptions)saving savingIn:(NSURL *)savingIn;  // Close a document.
   1.400 +- (void) saveIn:(NSURL *)in_ as:(NSString *)as;  // Save a document.
   1.401 +- (void) delete;  // Delete an object.
   1.402 +- (SBObject *) duplicateTo:(SBObject *)to withProperties:(NSDictionary *)withProperties;  // Copy object(s) and put the copies at a new location.
   1.403 +- (BOOL) exists;  // Verify if an object exists.
   1.404 +- (SBObject *) moveTo:(SBObject *)to;  // Move object(s) to a new location.
   1.405 +- (void) accept;  // Accepts an incoming text, audio, or video chat invitation, or file transfer
   1.406 +- (void) decline;  // Declines an incoming text, audio, or video chat invitation, or file transfer
   1.407 +
   1.408 +@end
   1.409 +
   1.410 +// A text chat.
   1.411 +@interface iChatTextChat : iChatChat
   1.412 +
   1.413 +@property (copy, readonly) NSString *subject;  // The subject of this chat, if available.
   1.414 +@property (copy, readonly) NSString *invitationMessage;  // An invitation message. This may only be specified at the time of creation. This message will be sent to chat participants when the chat is created.
   1.415 +@property (readonly) iChatJoinState joinState;  // How you are joined to this chat
   1.416 +@property (copy, readonly) NSString *name;  // The address or room name of this chat. This property may be specified at time of creation.
   1.417 +@property (readonly) iChatChatType chatType;  // The type of this chat.
   1.418 +
   1.419 +
   1.420 +@end
   1.421 +
   1.422 +// An audio or video chat.
   1.423 +@interface iChatAudioChat : iChatChat
   1.424 +
   1.425 +@property (readonly) iChatScreenSharing screenSharing;  // Type of screen sharing session taking place within this chat.
   1.426 +@property BOOL muted;  // Is the chat muted?
   1.427 +@property (readonly) iChatAvConnectionStatus avConnectionStatus;  // The connection state for this av chat.
   1.428 +
   1.429 +- (void) requestRecording;  // Sends a recording request to all participants of an audio or video chat. Recording will not start until all participants have agreed to allow recording.
   1.430 +- (void) stopRecording;  // Ends recording of an audio or video chat.
   1.431 +
   1.432 +@end
   1.433 +
   1.434 +@interface iChatVideoChat : iChatAudioChat
   1.435 +
   1.436 +@property BOOL paused;  // Is the chat paused?
   1.437 +@property BOOL showingFullScreen;  // Is the chat being displayed in full screen mode?
   1.438 +@property BOOL showingLocalVideo;  // Is the local video preview being displayed?
   1.439 +
   1.440 +- (void) takeSnapshot;  // Takes a snapshot of a video chat and saves it to a desktop.
   1.441 +
   1.442 +@end
   1.443 +
   1.444 +// A file being sent or received
   1.445 +@interface iChatFileTransfer : iChatItem
   1.446 +
   1.447 +- (NSString *) id;  // The guid for this file transfer
   1.448 +@property (copy, readonly) NSString *name;  // The name of this file
   1.449 +@property (copy, readonly) NSURL *file;  // The local path to this file transfer
   1.450 +@property (readonly) iChatDirection direction;  // The direction in which this file is being sent
   1.451 +@property (copy, readonly) iChatService *service;  // The service on which this file transfer is taking place
   1.452 +@property (copy, readonly) iChatBuddy *buddy;  // The account participating in this file transfer
   1.453 +@property (readonly) BOOL secure;  // Is this file transfer secure?
   1.454 +@property (readonly) NSInteger fileSize;  // The total size in bytes of the completed file transfer
   1.455 +@property (readonly) NSInteger fileProgress;  // The number of bytes that have been transferred
   1.456 +@property (readonly) iChatTransferStatus transferStatus;  // The current status of this file transfer
   1.457 +@property (copy, readonly) NSDate *started;  // The date that this file transfer started
   1.458 +
   1.459 +- (void) accept;  // Accepts an incoming text, audio, or video chat invitation, or file transfer
   1.460 +- (void) decline;  // Declines an incoming text, audio, or video chat invitation, or file transfer
   1.461 +
   1.462 +@end
   1.463 +