2010-09-30 12:27:22 -05:00
|
|
|
//
|
|
|
|
// MGMVoiceUser.h
|
|
|
|
// VoiceMob
|
|
|
|
//
|
|
|
|
// Created by Mr. Gecko on 9/28/10.
|
|
|
|
// Copyright (c) 2010 Mr. Gecko's Media (James Coleman). All rights reserved. http://mrgeckosmedia.com/
|
|
|
|
//
|
|
|
|
|
|
|
|
#import <Foundation/Foundation.h>
|
|
|
|
|
|
|
|
@class MGMVoiceUser, MGMAccountController, MGMUser, MGMInstance, MGMProgressView;
|
|
|
|
|
2010-10-02 22:00:01 -05:00
|
|
|
extern const int MGMKeypadTabIndex;
|
|
|
|
extern const int MGMContactsTabIndex;
|
|
|
|
extern const int MGMSMSTabIndex;
|
|
|
|
extern const int MGMInboxTabIndex;
|
|
|
|
|
2010-09-30 12:27:22 -05:00
|
|
|
@protocol MGMVoiceUserTabProtocol <NSObject>
|
|
|
|
+ (id)tabWithVoiceUser:(MGMVoiceUser *)theVoiceUser;
|
|
|
|
- (id)initWithVoiceUser:(MGMVoiceUser *)theVoiceUser;
|
|
|
|
|
|
|
|
- (MGMVoiceUser *)voiceUser;
|
|
|
|
|
|
|
|
- (UIView *)view;
|
|
|
|
- (void)releaseView;
|
|
|
|
@end
|
|
|
|
|
|
|
|
@interface MGMVoiceUser : NSObject {
|
|
|
|
MGMAccountController *accountController;
|
|
|
|
MGMUser *user;
|
|
|
|
MGMInstance *instance;
|
|
|
|
|
|
|
|
int currentTab;
|
|
|
|
NSMutableArray *tabObjects;
|
|
|
|
|
|
|
|
MGMProgressView *progressView;
|
|
|
|
IBOutlet UIView *view;
|
|
|
|
IBOutlet UIView *tabView;
|
|
|
|
IBOutlet UITabBar *tabBar;
|
|
|
|
|
|
|
|
BOOL placingCall;
|
|
|
|
NSTimer *callTimer;
|
|
|
|
UIAlertView *callCancelView;
|
|
|
|
}
|
|
|
|
+ (id)voiceUser:(MGMUser *)theUser accountController:(MGMAccountController *)theAccountController;
|
|
|
|
- (id)initWithUser:(MGMUser *)theUser accountController:(MGMAccountController *)theAccountController;
|
|
|
|
|
|
|
|
- (MGMAccountController *)accountController;
|
|
|
|
- (MGMUser *)user;
|
|
|
|
- (MGMInstance *)instance;
|
|
|
|
- (NSString *)title;
|
|
|
|
- (NSString *)areaCode;
|
|
|
|
|
|
|
|
- (UIView *)view;
|
2010-10-02 22:00:01 -05:00
|
|
|
- (NSArray *)tabObjects;
|
2010-09-30 22:52:12 -05:00
|
|
|
- (UIView *)tabView;
|
|
|
|
- (UITabBar *)tabBar;
|
2010-09-30 12:27:22 -05:00
|
|
|
- (void)releaseView;
|
|
|
|
|
|
|
|
- (void)loginSuccessful;
|
|
|
|
- (void)setInstanceInfo;
|
|
|
|
|
|
|
|
- (BOOL)isPlacingCall;
|
|
|
|
- (void)call:(NSString *)theNumber;
|
2010-10-02 22:00:01 -05:00
|
|
|
|
|
|
|
- (void)tabBar:(UITabBar *)theTabBar didSelectItem:(UITabBarItem *)item;
|
2010-09-30 12:27:22 -05:00
|
|
|
@end
|