![]() |
Ignite Tools
|
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 <UIKit/UIKit.h> 00027 00028 @interface UAPushSettingsViewController : UIViewController <UITableViewDelegate, UITableViewDataSource> { 00029 IBOutlet UITableView *tableView; 00030 00031 IBOutlet UITableViewCell *pushEnabledCell; 00032 IBOutlet UILabel *pushEnabledLabel; 00033 IBOutlet UISwitch *pushEnabledSwitch; 00034 00035 IBOutlet UITableViewCell *quietTimeEnabledCell; 00036 IBOutlet UILabel *quietTimeLabel; 00037 IBOutlet UISwitch *quietTimeSwitch; 00038 UITableViewCell *fromCell; 00039 UITableViewCell *toCell; 00040 00041 IBOutlet UIDatePicker *datePicker; 00042 CGRect pickerShownFrame, pickerHiddenFrame; 00043 00044 @private 00045 BOOL dirty; 00046 BOOL pickerDisplayed; 00047 } 00048 00049 @property (nonatomic, retain)UITableView *tableView; 00050 @property (nonatomic, retain)UIDatePicker *datePicker; 00051 00052 @property (nonatomic, retain)UITableViewCell *pushEnabledCell; 00053 @property (nonatomic, retain)UILabel *pushEnabledLabel; 00054 @property (nonatomic, retain)UISwitch *pushEnabledSwitch; 00055 00056 @property (nonatomic, retain)UITableViewCell *quietTimeEnabledCell; 00057 @property (nonatomic, retain)UILabel *quietTimeLabel; 00058 @property (nonatomic, retain)UISwitch *quietTimeSwitch; 00059 @property (nonatomic, retain)UITableViewCell *fromCell; 00060 @property (nonatomic, retain)UITableViewCell *toCell; 00061 00062 00063 - (IBAction)quit; 00064 - (IBAction)pickerValueChanged:(id)sender; 00065 - (IBAction)switchValueChanged:(id)sender; 00066 00067 // Private Methods 00068 - (void)initViews; 00069 - (void)updatePickerLayout; 00070 - (void)updateDatePicker:(BOOL)show; 00071 - (void)updateQuietTime; 00072 00073 00074 @end