adium/adium

More MySpace removal.
adium-1.6
2016-09-04, Robert Vehse
f66a2152d433
More MySpace removal.
//
// AIFacebookXMPPAccount.h
// Adium
//
// Created by Colin Barrett on 11/18/10.
// Copyright 2010 __MyCompanyName__. All rights reserved.
//
#import "CBPurpleAccount.h"
@class AIFacebookXMPPOAuthWebViewWindowController;
#define ADIUM_APP_ID "164063256994618"
#define ADIUM_API_KEY "add7b04ecedcd84645f3c32e7884682d"
/* deprecated? This is called the 'App Secret' on Facebook's developer page. */
#define ADIUM_API_SECRET "bb9d2d9771790e69a0e943771ddf33c8"
#define AIFacebookXMPPAuthProgressNotification @"AIFacebookXMPPAuthProgressNotification"
#define KEY_FB_XMPP_AUTH_STEP @"AuthStep"
typedef enum {
AIFacebookXMPPAuthProgressPromptingUser,
AIFacebookXMPPAuthProgressContactingServer,
AIFacebookXMPPAuthProgressPromotingForChat,
AIFacebookXMPPAuthProgressSuccess,
AIFacebookXMPPAuthProgressFailure
} AIFacebookXMPPAuthProgressStep;
@interface AIFacebookXMPPAccount : CBPurpleAccount {
AIFacebookXMPPOAuthWebViewWindowController *oAuthWC;
NSString *oAuthToken;
NSUInteger networkState;
NSURLConnection *connection; // weak
NSURLResponse *connectionResponse;
NSMutableData *connectionData;
NSDictionary *migrationData;
}
+ (BOOL)uidIsValidForFacebook:(NSString *)inUID;
@property (nonatomic, retain) AIFacebookXMPPOAuthWebViewWindowController *oAuthWC;
- (void)requestFacebookAuthorization;
- (void)oAuthWebViewController:(AIFacebookXMPPOAuthWebViewWindowController *)wc didSucceedWithToken:(NSString *)token;
- (void)oAuthWebViewControllerDidFail:(AIFacebookXMPPOAuthWebViewWindowController *)wc;
@property (nonatomic, retain) NSDictionary *migrationData;
@end
@interface AIFacebookXMPPAccount (ForSubclasses)
- (void)didCompleteFacebookAuthorization;
@end