William Bowling is sharing code with you

Bitbucket is a code hosting site. Unlimited public and private repositories. Free for small teams.

Don't show this again

wbowling / adium (fork of adium / adium)

Fork of Adium for patches/improvements

Clone this repository (size: 338.7 MB): HTTPS / SSH
hg clone https://bitbucket.org/wbowling/adium
hg clone ssh://hg@bitbucket.org/wbowling/adium

adium / Plugins / Purple Service / PurpleMySpaceAccount.m

//
//  PurpleMySpaceAccount.m
//  Adium
//
//  Created by Evan Schoenberg on 9/11/07.
//

#import "PurpleMySpaceAccount.h"
#import <Adium/AIHTMLDecoder.h>

@implementation PurpleMySpaceAccount

- (const char*)protocolPlugin
{
    return "prpl-myspace";
}

- (NSString *)connectionStringForStep:(NSInteger)step
{
        switch (step) {
        case 0:
                return AILocalizedString(@"Connecting",nil);
                break;
        case 1:
                return AILocalizedString(@"Reading challenge", "Description of a step in the connection process for MySpace. This could be translated as something like 'Reading from server'.");
                break;
        case 2:
                return AILocalizedString(@"Logging in","Connection step");
                break;                  
        case 3:
                return AILocalizedString(@"Connected","Connection step");
                break;
        }

        return nil;
}
        
- (NSString *)encodedAttributedString:(NSAttributedString *)inAttributedString forListObject:(AIListObject *)inListObject
{
        return [AIHTMLDecoder encodeHTML:inAttributedString
                                                         headers:YES
                                                        fontTags:YES
                                  includingColorTags:YES
                                           closeFontTags:YES
                                                   styleTags:YES
                  closeStyleTagsOnFontChange:YES
                                          encodeNonASCII:YES
                                                encodeSpaces:NO
                                                  imagesPath:nil
                                   attachmentsAsText:YES
                   onlyIncludeOutgoingImages:NO
                                          simpleTagsOnly:NO
                                          bodyBackground:NO
                                 allowJavascriptURLs:YES];
}

@end