VoiceMac/Classes/VoiceMob/Voice/MGMVoiceInbox.h

62 lines
1.3 KiB
C
Raw Normal View History

2010-09-30 22:52:12 -05:00
//
// MGMVoiceInbox.h
// VoiceMob
//
// Created by Mr. Gecko on 9/30/10.
// Copyright (c) 2011 Mr. Gecko's Media (James Coleman). http://mrgeckosmedia.com/
2010-09-30 22:52:12 -05:00
//
#import <UIKit/UIKit.h>
#import <AVFoundation/AVFoundation.h>
2010-09-30 22:52:12 -05:00
@class MGMVoiceUser, MGMProgressView, MGMInstance, MGMURLConnectionManager, AVAudioPlayer;
2010-09-30 22:52:12 -05:00
@interface MGMVoiceInbox : NSObject <UIWebViewDelegate, AVAudioPlayerDelegate> {
2010-09-30 22:52:12 -05:00
MGMVoiceUser *voiceUser;
NSDate *lastUpdate;
2010-09-30 22:52:12 -05:00
int currentView;
NSArray *inboxItems;
NSArray *recordingItems;
2010-09-30 22:52:12 -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;
int currentRecording;
MGMURLConnectionManager *recordingConnection;
AVAudioPlayer *recordingPlayer;
NSTimer *recordingUpdater;
2010-09-30 22:52:12 -05:00
}
+ (id)tabWithVoiceUser:(MGMVoiceUser *)theVoiceUser;
- (id)initWithVoiceUser:(MGMVoiceUser *)theVoiceUser;
- (void)registerSettings;
2010-09-30 22:52:12 -05:00
- (MGMVoiceUser *)voiceUser;
- (void)checkVoicemail;
2010-09-30 22:52:12 -05:00
- (UIView *)view;
- (void)releaseView;
- (void)startProgress:(NSString *)theTitle;
2010-09-30 22:52:12 -05:00
- (void)stopProgress;
- (void)loadInbox;
- (void)addData:(NSArray *)theData;
2010-09-30 22:52:12 -05:00
- (int)currentInbox;
- (void)setRecording:(int)theRecording;
2010-09-30 22:52:12 -05:00
@end