111 lines
5.2 KiB
Objective-C
111 lines
5.2 KiB
Objective-C
//
|
|
// MGMInbox.h
|
|
// VoiceBase
|
|
//
|
|
// Created by Mr. Gecko on 8/15/10.
|
|
// Copyright (c) 2010 Mr. Gecko's Media (James Coleman). All rights reserved. http://mrgeckosmedia.com/
|
|
//
|
|
|
|
#if TARGET_OS_IPHONE
|
|
#import <UIKit/UIKit.h>
|
|
#else
|
|
#import <Cocoa/Cocoa.h>
|
|
#endif
|
|
|
|
@class MGMInstance, MGMURLConnectionManager;
|
|
|
|
#define MGMInboxDebug 0
|
|
|
|
extern NSString * const MGMIDelegate;
|
|
extern NSString * const MGMIDidReceiveInfo;
|
|
extern NSString * const MGMIDidFinish;
|
|
extern NSString * const MGMIDidFailWithError;
|
|
extern NSString * const MGMIEntries;
|
|
extern NSString * const MGMIPhoneNumbers;
|
|
extern NSString * const MGMIMessage;
|
|
|
|
extern NSString * const MGMIVoiceMailDownloadURL;
|
|
|
|
extern NSString * const MGMIPhoneNumber;
|
|
extern NSString * const MGMIID;
|
|
extern NSString * const MGMIUniqueId;
|
|
extern NSString * const MGMIText;
|
|
extern NSString * const MGMIYou;
|
|
extern NSString * const MGMITime;
|
|
extern NSString * const MGMIStartTime;
|
|
extern NSString * const MGMIInfo;
|
|
extern NSString * const MGMIMessages;
|
|
extern NSString * const MGMIUseful;
|
|
extern NSString * const MGMIRead;
|
|
extern NSString * const MGMIType;
|
|
extern NSString * const MGMIStarred;
|
|
extern NSString * const MGMISpam;
|
|
extern NSString * const MGMITrash;
|
|
|
|
extern const int MGMIMissedType;
|
|
extern const int MGMIReceivedType;
|
|
extern const int MGMIVoicemailType;
|
|
extern const int MGMIRecordedType;
|
|
extern const int MGMIPlaced;
|
|
extern const int MGMISMSIn;
|
|
extern const int MGMISMSOut;
|
|
|
|
@interface MGMInbox : NSObject {
|
|
MGMInstance *instance;
|
|
MGMURLConnectionManager *connectionManager;
|
|
}
|
|
+ (id)inboxWithInstance:(MGMInstance *)theInstance;
|
|
- (id)initWithInstance:(MGMInstance *)theInstance;
|
|
|
|
- (void)stop;
|
|
|
|
- (void)getInboxForPage:(int)thePage delegate:(id)theDelegate;
|
|
- (void)getInboxForPage:(int)thePage delegate:(id)theDelegate didFailWithError:(SEL)didFailWithError didReceiveInfo:(SEL)didReceiveInfo;
|
|
|
|
- (void)getStarredForPage:(int)thePage delegate:(id)theDelegate;
|
|
- (void)getStarredForPage:(int)thePage delegate:(id)theDelegate didFailWithError:(SEL)didFailWithError didReceiveInfo:(SEL)didReceiveInfo;
|
|
|
|
- (void)getSpamForPage:(int)thePage delegate:(id)theDelegate;
|
|
- (void)getSpamForPage:(int)thePage delegate:(id)theDelegate didFailWithError:(SEL)didFailWithError didReceiveInfo:(SEL)didReceiveInfo;
|
|
|
|
- (void)getTrashForPage:(int)thePage delegate:(id)theDelegate;
|
|
- (void)getTrashForPage:(int)thePage delegate:(id)theDelegate didFailWithError:(SEL)didFailWithError didReceiveInfo:(SEL)didReceiveInfo;
|
|
|
|
- (void)getVoicemailForPage:(int)thePage delegate:(id)theDelegate;
|
|
- (void)getVoicemailForPage:(int)thePage delegate:(id)theDelegate didFailWithError:(SEL)didFailWithError didReceiveInfo:(SEL)didReceiveInfo;
|
|
|
|
- (void)getSMSForPage:(int)thePage delegate:(id)theDelegate;
|
|
- (void)getSMSForPage:(int)thePage delegate:(id)theDelegate didFailWithError:(SEL)didFailWithError didReceiveInfo:(SEL)didReceiveInfo;
|
|
|
|
- (void)getRecordedCallsForPage:(int)thePage delegate:(id)theDelegate;
|
|
- (void)getRecordedCallsForPage:(int)thePage delegate:(id)theDelegate didFailWithError:(SEL)didFailWithError didReceiveInfo:(SEL)didReceiveInfo;
|
|
|
|
- (void)getPlacedCallsForPage:(int)thePage delegate:(id)theDelegate;
|
|
- (void)getPlacedCallsForPage:(int)thePage delegate:(id)theDelegate didFailWithError:(SEL)didFailWithError didReceiveInfo:(SEL)didReceiveInfo;
|
|
|
|
- (void)getReceivedCallsForPage:(int)thePage delegate:(id)theDelegate;
|
|
- (void)getReceivedCallsForPage:(int)thePage delegate:(id)theDelegate didFailWithError:(SEL)didFailWithError didReceiveInfo:(SEL)didReceiveInfo;
|
|
|
|
- (void)getMissedCallsForPage:(int)thePage delegate:(id)theDelegate;
|
|
- (void)getMissedCallsForPage:(int)thePage delegate:(id)theDelegate didFailWithError:(SEL)didFailWithError didReceiveInfo:(SEL)didReceiveInfo;
|
|
|
|
- (void)retrieveURL:(NSString *)theURL page:(int)thePage info:(NSDictionary *)theInfo;
|
|
- (NSDictionary *)parseMessageWithHTML:(NSString *)theHTML info:(NSDictionary *)theInfo;
|
|
|
|
- (void)deleteEntriesForever:(NSArray *)theEntries delegate:(id)theDelegate;
|
|
- (void)deleteEntriesForever:(NSArray *)theEntries delegate:(id)theDelegate didFailWithError:(SEL)didFailWithError didFinish:(SEL)didFinish;
|
|
- (void)deleteEntries:(NSArray *)theEntries delegate:(id)theDelegate;
|
|
- (void)deleteEntries:(NSArray *)theEntries delegate:(id)theDelegate didFailWithError:(SEL)didFailWithError didFinish:(SEL)didFinish;
|
|
|
|
- (void)markEntries:(NSArray *)theEntries read:(BOOL)isRead delegate:(id)theDelegate;
|
|
- (void)markEntries:(NSArray *)theEntries read:(BOOL)isRead delegate:(id)theDelegate didFailWithError:(SEL)didFailWithError didFinish:(SEL)didFinish;
|
|
|
|
- (void)reportEntries:(NSArray *)theEntries delegate:(id)theDelegate;
|
|
- (void)reportEntries:(NSArray *)theEntries delegate:(id)theDelegate didFailWithError:(SEL)didFailWithError didFinish:(SEL)didFinish;
|
|
|
|
- (void)starEntries:(NSArray *)theEntries starred:(BOOL)isStarred delegate:(id)theDelegate;
|
|
- (void)starEntries:(NSArray *)theEntries starred:(BOOL)isStarred delegate:(id)theDelegate didFailWithError:(SEL)didFailWithError didFinish:(SEL)didFinish;
|
|
|
|
- (void)sendMessage:(NSString *)theMessage phoneNumbers:(NSArray *)thePhoneNumbers smsID:(NSString *)theID delegate:(id)theDelegate;
|
|
- (void)sendMessage:(NSString *)theMessage phoneNumbers:(NSArray *)thePhoneNumbers smsID:(NSString *)theID delegate:(id)theDelegate didFailWithError:(SEL)didFailWithError didFinish:(SEL)didFinish;
|
|
@end |