-
Notifications
You must be signed in to change notification settings - Fork 3
/
mGrab.h
42 lines (36 loc) · 892 Bytes
/
mGrab.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
//
// 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;
@private BOOL reachable;
@private NSString *email;
@private NSString *password;
}
@property (nonatomic, retain) NSString *url;
@property (nonatomic, retain) NSString *error;
#pragma mark -
#pragma mark Core
- (id)init;
- (id)initWithEmail:(NSString*)useremail andPassword:(NSString*)userpassword;
- (BOOL)login;
- (NSString*)uploadFromFile:(NSString*)file;
- (NSString*)upload:(NSData*)image;
#pragma mark -
#pragma mark Common
- (NSString*)generateName;
- (NSString*)md5:(NSString*)chunk;
- (BOOL)network;
@end