2010-09-20 19:44:17 -05:00
|
|
|
//
|
|
|
|
// MGMInbox.h
|
|
|
|
// VoiceBase
|
|
|
|
//
|
|
|
|
// Created by Mr. Gecko on 8/15/10.
|
2011-03-07 19:02:53 -06:00
|
|
|
// Copyright (c) 2011 Mr. Gecko's Media (James Coleman). http://mrgeckosmedia.com/
|
|
|
|
//
|
|
|
|
// Permission to use, copy, modify, and/or distribute this software for any purpose
|
|
|
|
// with or without fee is hereby granted, provided that the above copyright notice
|
|
|
|
// and this permission notice appear in all copies.
|
|
|
|
//
|
|
|
|
// THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
|
|
// REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND
|
|
|
|
// FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT,
|
|
|
|
// OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
|
|
|
|
// DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS
|
|
|
|
// ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
2010-09-20 19:44:17 -05:00
|
|
|
//
|
|
|
|
|
2011-03-21 07:43:56 -05:00
|
|
|
#import <Foundation/Foundation.h>
|
2010-09-20 19:44:17 -05:00
|
|
|
|
2011-02-24 11:24:19 -06:00
|
|
|
@class MGMDelegateInfo, MGMInstance, MGMURLConnectionManager;
|
2010-09-20 19:44:17 -05:00
|
|
|
|
2010-10-01 22:03:15 -05:00
|
|
|
#define MGMInboxDebug 0
|
2010-09-20 19:44:17 -05:00
|
|
|
|
|
|
|
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;
|
2010-10-16 20:32:55 -05:00
|
|
|
extern const int MGMIPlacedType;
|
|
|
|
extern const int MGMISMSInType;
|
|
|
|
extern const int MGMISMSOutType;
|
2010-09-20 19:44:17 -05:00
|
|
|
|
|
|
|
@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;
|
|
|
|
|
2011-02-24 11:24:19 -06:00
|
|
|
- (void)retrieveURL:(NSString *)theURL page:(int)thePage info:(MGMDelegateInfo *)theInfo;
|
2010-09-20 19:44:17 -05:00
|
|
|
- (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
|