2010-09-30 22:52:12 -05:00
|
|
|
//
|
|
|
|
// MGMVoiceInbox.h
|
|
|
|
// VoiceMob
|
|
|
|
//
|
|
|
|
// Created by Mr. Gecko on 9/30/10.
|
2013-07-20 06:56:17 -05:00
|
|
|
// Copyright (c) 2011 Mr. Gecko's Media (James Coleman). http://mrgeckosmedia.com/
|
2010-09-30 22:52:12 -05:00
|
|
|
//
|
|
|
|
|
|
|
|
#import <UIKit/UIKit.h>
|
2013-07-20 06:56:17 -05:00
|
|
|
#import <AVFoundation/AVFoundation.h>
|
2010-09-30 22:52:12 -05:00
|
|
|
|
2013-07-20 06:56:17 -05:00
|
|
|
@class MGMVoiceUser, MGMProgressView, MGMInstance, MGMURLConnectionManager, AVAudioPlayer;
|
2010-09-30 22:52:12 -05:00
|
|
|
|
2013-07-20 06:56:17 -05:00
|
|
|
@interface MGMVoiceInbox : NSObject <UIWebViewDelegate, AVAudioPlayerDelegate> {
|
2010-09-30 22:52:12 -05:00
|
|
|
MGMVoiceUser *voiceUser;
|
|
|
|
|
2013-07-20 06:56:17 -05:00
|
|
|
NSDate *lastUpdate;
|
2010-09-30 22:52:12 -05:00
|
|
|
|
2013-07-20 06:56:17 -05:00
|
|
|
int currentView;
|
|
|
|
NSArray *inboxItems;
|
|
|
|
NSArray *recordingItems;
|
2010-09-30 22:52:12 -05:00
|
|
|
|
2013-07-20 06:56:17 -05:00
|
|
|
IBOutlet UITableView *inboxesTable;
|
|
|
|
IBOutlet UITableView *inboxTable;
|
|
|
|
IBOutlet UIWebView *recordingView;
|
|
|
|
MGMProgressView *progressView;
|
2010-09-30 22:52:12 -05:00
|
|
|
int progressStartCount;
|
|
|
|
|
|
|
|
int currentInbox;
|
|
|
|
int maxResults;
|
|
|
|
unsigned int start;
|
|
|
|
int resultsCount;
|
|
|
|
|
|
|
|
NSMutableArray *currentData;
|
|
|
|
NSDate *lastDate;
|
2013-07-20 06:56:17 -05:00
|
|
|
|
|
|
|
int currentRecording;
|
|
|
|
MGMURLConnectionManager *recordingConnection;
|
|
|
|
AVAudioPlayer *recordingPlayer;
|
|
|
|
NSTimer *recordingUpdater;
|
2010-09-30 22:52:12 -05:00
|
|
|
}
|
|
|
|
+ (id)tabWithVoiceUser:(MGMVoiceUser *)theVoiceUser;
|
|
|
|
- (id)initWithVoiceUser:(MGMVoiceUser *)theVoiceUser;
|
|
|
|
|
2013-07-20 06:56:17 -05:00
|
|
|
- (void)registerSettings;
|
|
|
|
|
2010-09-30 22:52:12 -05:00
|
|
|
- (MGMVoiceUser *)voiceUser;
|
|
|
|
|
2013-07-20 06:56:17 -05:00
|
|
|
- (void)checkVoicemail;
|
|
|
|
|
2010-09-30 22:52:12 -05:00
|
|
|
- (UIView *)view;
|
|
|
|
- (void)releaseView;
|
|
|
|
|
2013-07-20 06:56:17 -05:00
|
|
|
- (void)startProgress:(NSString *)theTitle;
|
2010-09-30 22:52:12 -05:00
|
|
|
- (void)stopProgress;
|
|
|
|
|
|
|
|
- (void)loadInbox;
|
2010-10-01 22:03:15 -05:00
|
|
|
- (void)addData:(NSArray *)theData;
|
2010-09-30 22:52:12 -05:00
|
|
|
- (int)currentInbox;
|
2013-07-20 06:56:17 -05:00
|
|
|
|
|
|
|
- (void)setRecording:(int)theRecording;
|
2010-09-30 22:52:12 -05:00
|
|
|
@end
|