Ignite Tools
Shared/Airship/UI/Default/Inbox/Classes/Shared/UAInboxUI.h
00001 /*
00002  Copyright 2009-2011 Urban Airship Inc. All rights reserved.
00003 
00004  Redistribution and use in source and binary forms, with or without
00005  modification, are permitted provided that the following conditions are met:
00006 
00007  1. Redistributions of source code must retain the above copyright notice, this
00008  list of conditions and the following disclaimer.
00009 
00010  2. Redistributions in binaryform must reproduce the above copyright notice,
00011  this list of conditions and the following disclaimer in the documentation
00012  and/or other materials provided withthe distribution.
00013 
00014  THIS SOFTWARE IS PROVIDED BY THE URBAN AIRSHIP INC ``AS IS'' AND ANY EXPRESS OR
00015  IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
00016  MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
00017  EVENT SHALL URBAN AIRSHIP INC OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
00018  INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
00019  BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
00020  DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
00021  LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
00022  OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
00023  ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
00024  */
00025 
00026 #import <Foundation/Foundation.h>
00027 #import "UAInboxMessageViewController.h"
00028 #import "UAInboxMessageListController.h"
00029 #import "UAInboxNavigationController.h"
00030 #import "UAInboxMessageListControllerPad.h"
00031 #import "UAInboxMessageViewControllerPad.h"
00032 #import "UAViewUtils.h"
00033 #import "UAInboxAlertHandler.h"
00034 
00035 #define UA_INBOX_TR(key) [[UAInboxUI shared].localizationBundle localizedStringForKey:key value:@"" table:nil]
00036 
00037 typedef enum {
00038     NORMAL_QUIT,
00039     DEVICE_TOKEN_ERROR,
00040     USER_ERROR,
00041 } QuitReason;
00042 
00043 @class UAInboxMessageViewController;
00044 @class UAInboxAlertProtocol;
00045 
00046 @interface UAInboxUI : NSObject <UAInboxUIProtocol> {
00047     UIViewController *rootViewController;
00048     UAInboxMessageViewController* messageViewController;
00049     UAInboxMessageListController* messageListController;
00050     NSBundle *localizationBundle;
00051     BOOL isVisible;
00052     BOOL isiPad;
00053     NSString *messageListTitle;
00054     UIWindow *uaWindow;
00055         UAInboxAlertHandler *alertHandler;
00056         UIViewController *inboxParentController;
00057 }
00058 
00059 @property (nonatomic, retain) UIViewController* rootViewController;
00060 @property (nonatomic, retain) UAInboxMessageListController* messageListController;
00061 @property (nonatomic, retain) UAInboxMessageViewController* messageViewController;
00062 @property (nonatomic, retain) UIViewController* inboxParentController;
00063 @property (nonatomic, retain) NSBundle *localizationBundle;
00064 @property (assign) BOOL isVisible, isiPad;
00065 @property (nonatomic, retain) NSString *messageListTitle;
00066 @property (nonatomic, retain) UIWindow *uaWindow;
00067 
00068 SINGLETON_INTERFACE(UAInboxUI);
00069 
00070 + (void)quitInbox;
00071 - (void)quitInbox:(QuitReason)reason;
00072 + (void)displayInbox:(UIViewController *)viewController animated:(BOOL)animated;
00073 + (void)displayMessage:(UIViewController *)viewController message:(NSString*)messageID;
00074 + (void)setRuniPhoneTargetOniPad:(BOOL)value;
00075 + (void)land;
00076 + (void)loadLaunchMessage;
00077 
00078 @end
 All Classes Functions Variables Properties