Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

41 lines (35 sloc) 0.767 kB
//
// mGrab.h
// Pneumonia
//
// Created by GreySyntax.
// Copyright 2010-2011 NSPwn. All rights reserved.
//
#import <SystemConfiguration/SCNetworkReachability.h>
#import <CommonCrypto/CommonDigest.h>
#import <Foundation/Foundation.h>
#import <openssl/md5.h>
#import <netinet/in.h>
@interface mGrab : NSObject
{
NSString *url;
NSString *error;
@private
BOOL session;
NSString *email;
NSString *password;
}
#pragma mark Core
- (id)init;
- (id)initWithEmail:(NSString*)email andPassword:(NSString*)password;
- (BOOL)login;
- (NSString*)upload:(NSString*)file;
- (NSString*)upload:(NSData*)image;
#pragma mark -
#pragma mark Common
- (NSString*)generateName;
- (NSString*)md5:(NSString*)chunk;
- (BOOL)network;
#pragma mark -
// Setter's & Getter's
@end
Jump to Line
Something went wrong with that request. Please try again.