/*
 *     Generated by class-dump 3.1.2.
 *
 *     class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2007 by Steve Nygard.
 */

struct CGColor;

struct CGImage;

struct CGPoint {
    float x;
    float y;
};

struct CGRect {
    struct CGPoint origin;
    struct CGSize size;
};

struct CGSize {
    float width;
    float height;
};

struct CalEventOccurrence;

struct _NSRange {
    unsigned int location;
    unsigned int length;
};

struct __CFArray;

struct __CFDictionary;

struct __CFTimeZone;

struct __GSEvent;

struct __GSFont;

typedef struct {
    int year;
    char month;
    char day;
    char hour;
    char minute;
    double second;
} CDAnonymousStruct1;

/*
 * File: Applications/MobileCal.app/MobileCal
 */

@protocol CalendarView
- (void)setModel:(id)fp8;
- (id)navigationTitle;
- (void)cleanUp;
- (void)finishedTransition;
@end

@interface CalendarNavigationBar : UINavigationBar
{
    UIThreePartButton *_todayButton;
}

- (void)dealloc;
- (id)todayButton;
- (id)createButtonWithContents:(id)fp8 width:(float)fp12 barStyle:(int)fp16 buttonStyle:(int)fp20 isRight:(BOOL)fp24;

@end

@interface SloppySegmentedControl : UISegmentedControl
{
}

- (BOOL)pointInside:(struct CGPoint)fp8 forEvent:(struct __GSEvent *)fp16;

@end

@interface CalendarApplication : UIApplication
{
    UIWindow *_window;
    UITransitionView *_transitionView;
    UIView *_contentView;
    UITransitionView *_currentContainerView;
    CalendarNavigationBar *_navBar;
    UISegmentedControl *_segmentButton;
    struct CGRect _segmentButtonRect;
    UIView<CalendarView> *_currentView;
    CalendarEventDetailView *_detailView;
    int _currentViewType;
    int _lastStandardViewType;
    CalendarModel *_model;
    unsigned int _animationEnabled:1;
}

- (void)applicationDidFinishLaunching:(id)fp8;
- (void)dealloc;
- (BOOL)applicationSuspend:(struct __GSEvent *)fp8 settings:(id)fp12;
- (void)applicationDidResumeForEventsOnly;
- (void)applicationOpenURL:(id)fp8;
- (void)significantTimeChange;
- (void)setCurrentView:(int)fp8;
- (void)dismissCurrentView;
- (void)transitionViewDidComplete:(id)fp8;
- (BOOL)transitioning;
- (void)occurrenceSelected:(id)fp8;
- (void)occurrencesChanged:(id)fp8;
- (void)navigationBar:(id)fp8 buttonClicked:(int)fp12;
- (void)segmentedControl:(id)fp8 selectedSegmentChanged:(int)fp12;
- (struct CGRect)_segmentButtonRect;
- (void)updateNavBarButtons;
- (void)navigationBar:(id)fp8 poppedItem:(id)fp12;

@end

@interface CalendarModel : NSObject
{
    struct __CFArray *_occurrences;
    struct __CFArray *_selectedDateOccurrences;
    double _selectedDate;
    CDAnonymousStruct1 _selectedDateGr;
    CDAnonymousStruct1 _selectedDateTimeGr;
    double _start;
    double _end;
    CDAnonymousStruct1 _startGr;
    CDAnonymousStruct1 _endGr;
    int _cachedDayCount;
    int _cachedOccurrenceCount;
    struct __CFArray *_cachedDayIndexes;
    struct __CFArray *_cachedOccurrences;
    struct __CFArray *_cachedDays;
    struct _NSRange _cachedDayRange;
    int _cachedFakeTodayIndex;
    CDAnonymousStruct1 _bkgndStartGr;
    CDAnonymousStruct1 _bkgndEndGr;
    struct __CFArray *_bkgndResults;
    NSLock *_bkgndLock;
    NSConditionLock *_bkgndSignal;
    NSConditionLock *_bkgndCompletion;
    struct CalEventOccurrence *_selectedOccurrence;
    BOOL _selectedOccurrenceDirty;
}

- (id)init;
- (void)dealloc;
- (void)_reloadOccurrences:(struct __CFTimeZone *)fp8;
- (void)_setDisplayedDateRange:(CDAnonymousStruct1)fp8:(CDAnonymousStruct1)fp24 loadType:(int)fp40;
- (void)getDisplayedDateRange:(CDAnonymousStruct1 *)fp8:(CDAnonymousStruct1 *)fp12;
- (void)setSelectedDate:(CDAnonymousStruct1)fp8 loadType:(int)fp24;
- (CDAnonymousStruct1)selectedDate;
- (struct __CFArray *)displayedOccurrences:(BOOL)fp8;
- (struct __CFArray *)selectedDateOccurrences:(BOOL)fp8 loadIsComplete:(char *)fp12;
- (struct __CFArray *)selectedDateOccurrences:(BOOL)fp8;
- (int)numberOfDaysWithCachedOccurrences;
- (int)numberOfCachedOccurrences;
- (void)_loadCachedOccurrencesForDayAtIndex:(int)fp8;
- (int)dayWithCachedOccurrencesAtIndex:(int)fp8;
- (int)dayOfCachedOccurrenceAtIndex:(int)fp8;
- (int)indexOfFirstCachedOccurrenceOnDayAtIndex:(int)fp8;
- (int)indexOfFirstDayWithCachedOccurrencesAfterDate:(int)fp8;
- (struct CalEventOccurrence *)cachedOccurrenceAtIndex:(int)fp8;
- (BOOL)cachedOccurrencesAreBeingGenerated;
- (void)_occurrenceCacheBeganRegenerating:(id)fp8;
- (void)_invalidateCachedOccurrences;
- (void)_processReload:(id)fp8 forCacheOnly:(BOOL)fp12 postSelectionChange:(BOOL)fp16;
- (void)_calendarStoreChanged:(id)fp8;
- (void)_significantTimeChange:(id)fp8;
- (void)_timeZoneChanged:(id)fp8;
- (void)beginBackgroundLoadForDateRange:(CDAnonymousStruct1)fp8:(CDAnonymousStruct1)fp24;
- (void)_backgroundLoader;
- (void)_backgroundLoadCompleted;
- (BOOL)waitForBackgroundLoad;
- (void)setSelectedOccurrence:(struct CalEventOccurrence *)fp8;
- (struct CalEventOccurrence *)selectedOccurrence;
- (void)saveSelectedOccurrence;
- (void)setSelectedOccurrenceIsDirty:(BOOL)fp8;
- (void)addEvent:(void *)fp8;
- (void)deleteSelectedOccurrence:(BOOL)fp8;
- (void)detachSelectedOccurrence:(BOOL)fp8;

@end

@interface CalendarDayView : UIView <CalendarView>
{
    CalendarDayBanner *_banner;
    CalendarDayAllDayView *_allDayView;
    CalendarDayOccurrenceView *_selectedOccurrenceView;
    UIScroller *_scroller;
    CalendarDayGrid *_grid;
    CalendarModel *_model;
    UIScrollAnimation *_scrollAnimation;
    double _dayStart;
    double _dayStartGMTOffset;
    double _dayEndGMTOffset;
    unsigned int _loadingOccurrences:1;
}

- (id)initWithFrame:(struct CGRect)fp8;
- (void)dealloc;
- (void)scrollToSecond:(int)fp8 animating:(BOOL)fp12;
- (void)scrollToAbsoluteSecond:(int)fp8;
- (void)_finishedScrollToSecond;
- (void)_selectedDateChanged:(id)fp8;
- (void)_occurrencesChanged:(id)fp8;
- (CDAnonymousStruct1)_selectedDate;
- (void)calendarDayBanner:(id)fp8 arrowClicked:(int)fp12;
- (void)_handleOccurrenceViewClick:(id)fp8;
- (void)calendarDayOccurrenceViewClicked:(id)fp8;
- (void)calendarDayAllDayView:(id)fp8 occurrenceViewClicked:(id)fp12;
- (void)_selectedOccurrenceChanged:(id)fp8;
- (void)removeAllOccurrences;
- (void)filterInOccurrences:(id)fp8 animating:(BOOL)fp12;
- (void)setModel:(id)fp8;
- (id)navigationTitle;
- (void)cleanUp;
- (void)finishedTransition;

@end

@interface CalendarDayBannerNameView : UIView
{
    CDAnonymousStruct1 _day;
}

- (void)setDay:(CDAnonymousStruct1)fp8;
- (void)drawRect:(struct CGRect)fp8;

@end

@interface CalendarDayBanner : UIView
{
    CalendarArrowButton *_leftArrow;
    CalendarArrowButton *_rightArrow;
    CalendarDayBannerNameView *_nameView;
    id _delegate;
}

+ (float)defaultHeight;
- (id)initWithFrame:(struct CGRect)fp8;
- (void)dealloc;
- (void)setDelegate:(id)fp8;
- (void)setDay:(CDAnonymousStruct1)fp8;
- (BOOL)isTracking;
- (void)calendarArrowButtonActivated:(id)fp8 forRepeat:(BOOL)fp12;

@end

@interface CalendarDayGrid : UIView
{
    float _timeWidth;
}

+ (float)defaultHeight;
+ (float)hourHeight;
- (id)initWithFrame:(struct CGRect)fp8;
- (struct CGRect)rectForStartSeconds:(int)fp8 endSeconds:(int)fp12;
- (float)defaultRectWidth;
- (float)timeWidth;
- (float)positionOfSecond:(int)fp8;
- (int)secondAtPosition:(float)fp8;
- (void)drawRect:(struct CGRect)fp8;

@end

@interface CalendarDayOccurrenceView : UIControl
{
    NSString *_title;
    NSString *_location;
    float _visibleHeight;
    struct CalEventOccurrence *_occurrence;
    id _delegate;
}

+ (void)initialize;
+ (float)bottomShadowMargin;
+ (id)occurrenceViewWithFrame:(struct CGRect)fp8 title:(id)fp24 location:(id)fp28;
+ (float)minimumHeight;
- (id)initWithFrame:(struct CGRect)fp8 title:(id)fp24 location:(id)fp28;
- (void)setTitle:(id)fp8;
- (void)setLocation:(id)fp8;
- (void)setOccurrence:(struct CalEventOccurrence *)fp8;
- (struct CalEventOccurrence *)occurrence;
- (void)dealloc;
- (void)removeFromSuperview;
- (void)setVisibleHeight:(float)fp8;
- (void)setDelegate:(id)fp8;
- (void)setFrame:(struct CGRect)fp8;
- (void)drawRect:(struct CGRect)fp8;
- (void)mouseUp:(struct __GSEvent *)fp8;
- (BOOL)shouldTrack;

@end

@interface CalendarMonthView : UIView <CalendarView>
{
    UITable *_occurrenceTable;
    CalendarMonthControl *_monthControl;
    UIImageView *_shadowView;
    UITextLabel *_noEventsView;
    NSMutableArray *_selectedDayOccurrences;
    unsigned int _monthEventState;
    unsigned int _prevMonthEventState;
    unsigned int _nextMonthEventState;
    unsigned int _shouldAnimateMonthChange:1;
    CalendarModel *_model;
}

- (id)initWithFrame:(struct CGRect)fp8;
- (void)dealloc;
- (void)adjustSubviews;
- (void)adjustTableHeight;
- (void)updateMonthDisplayForFilteredInOccurrences:(id)fp8 rangeStart:(CDAnonymousStruct1)fp12 rangeEnd:(CDAnonymousStruct1)fp28;
- (void)_reloadMonthStatesForMonth:(CDAnonymousStruct1)fp8 synchronously:(BOOL)fp24;
- (void)_updateOccurrenceTable;
- (void)_selectedDateChanged:(id)fp8;
- (void)_occurrencesChanged:(id)fp8;
- (void)_selectedOccurrenceChanged:(id)fp8;
- (void)setModel:(id)fp8;
- (id)navigationTitle;
- (void)cleanUp;
- (void)finishedTransition;
- (void)calendarMonthControl:(id)fp8 arrowClicked:(int)fp12 forRepeat:(BOOL)fp16;
- (void)calendarMonthControl:(id)fp8 selectedDate:(CDAnonymousStruct1)fp12;
- (void)calendarMonthControlSizeChanged:(id)fp8;
- (int)numberOfRowsInTable:(id)fp8;
- (id)table:(id)fp8 cellForRow:(int)fp12 column:(id)fp16;
- (void)tableSelectionDidChange:(id)fp8;

@end

@interface CalendarMonthDayHeadingsView : UIView
{
}

- (id)initWithFrame:(struct CGRect)fp8;
- (void)drawRect:(struct CGRect)fp8;

@end

@interface CalendarMonthNameView : UIView
{
    NSString *_name;
    float _maxWidth;
}

- (id)initWithFrame:(struct CGRect)fp8;
- (void)setName:(id)fp8;
- (void)setMaxWidth:(float)fp8;
- (void)dealloc;
- (void)drawRect:(struct CGRect)fp8;

@end

@interface CalendarMonthControl : UIControl
{
    UIImageView *_bannerBkgnd;
    CalendarArrowButton *_leftArrow;
    CalendarArrowButton *_rightArrow;
    CalendarMonthNameView *_nameView;
    CalendarMonthDayHeadingsView *_headingsView;
    UIView *_tilesView;
    UIImageView *_tilesClipView;
    NSMutableArray *_tiles[2];
    struct __CFDictionary *_disabledTiles[2];
    UIView *_highlightView;
    CDAnonymousStruct1 _month;
    struct _NSRange _previousMonthRange;
    struct _NSRange _nextMonthRange;
    unsigned int _markedDays;
    unsigned int _prevMarkedDays;
    unsigned int _nextMarkedDays;
    unsigned int _daysHaveBeenMarked:1;
    int _selectedTile;
    unsigned int _currentSet:1;
    id _delegate;
}

- (id)initWithFrame:(struct CGRect)fp8;
- (void)dealloc;
- (void)setFrame:(struct CGRect)fp8;
- (void)setDelegate:(id)fp8;
- (CDAnonymousStruct1)displayedMonth;
- (void)_insertBottomLineSubviewInTilesView;
- (id)_tileForDayNumber:(int)fp8 fromSet:(int)fp12;
- (void)_removeTilesGreaterThanDay:(int)fp8 fromSet:(int)fp12;
- (id)_disabledTileForDayNumber:(int)fp8 fromSet:(int)fp12;
- (void)setDisplayedMonth:(CDAnonymousStruct1)fp8 animating:(BOOL)fp24;
- (void)_monthChangeAnimationFinished;
- (void)setSelectedDate:(CDAnonymousStruct1)fp8;
- (void)setMarkedDays:(unsigned int)fp8 prevMarkedDays:(unsigned int)fp12 nextMarkedDays:(unsigned int)fp16;
- (id)hitTest:(struct CGPoint)fp8 forEvent:(struct __GSEvent *)fp16;
- (id)_tileAtPoint:(struct CGPoint)fp8;
- (void)_tileSelected:(id)fp8;
- (void)calendarArrowButtonActivated:(id)fp8 forRepeat:(BOOL)fp12;
- (id)_highlightView;
- (BOOL)beginTrackingAt:(struct CGPoint)fp8 withEvent:(struct __GSEvent *)fp16;
- (BOOL)continueTrackingAt:(struct CGPoint)fp8 previous:(struct CGPoint)fp16 withEvent:(struct __GSEvent *)fp24;
- (void)endTrackingAt:(struct CGPoint)fp8 previous:(struct CGPoint)fp16 withEvent:(struct __GSEvent *)fp24;

@end

@interface CalendarMonthNameView (SyntheticEvents)
- (id)_automationID;
- (id)_automationValue;
@end

@interface CalendarArrowButton : UIImageView
{
    id _delegate;
    unsigned int _didRepeat:1;
}

- (id)initWithArrowType:(int)fp8;
- (void)dealloc;
- (int)arrowType;
- (BOOL)pointInside:(struct CGPoint)fp8 forEvent:(struct __GSEvent *)fp16;
- (void)setDelegate:(id)fp8;
- (void)_notifyArrowDown;
- (void)_performDownRepeat;
- (void)_buttonDown:(id)fp8;
- (void)_repeatCancelled;
- (id)_automationID;

@end

@interface CalendarMonthDayTile : UIView
{
    int _state;
    int _day;
    unsigned int _marked:1;
}

+ (struct CGSize)defaultSize;
- (id)initWithDayNumber:(int)fp8;
- (int)dayNumber;
- (void)setState:(int)fp8;
- (int)state;
- (void)setMarked:(BOOL)fp8;
- (void)drawRect:(struct CGRect)fp8;
- (id)_automationID;
- (id)_automationValue;

@end

@interface CalendarOccurrenceCell : UITableCell
{
    NSString *_title;
    NSString *_timeString;
    unsigned int _designator:2;
    unsigned int _isAllDay:1;
}

+ (void)_calculateWidths;
+ (float)hourWidth;
+ (float)timeWidth;
- (id)initWithFrame:(struct CGRect)fp8 title:(id)fp24 startDate:(double)fp28 allDay:(BOOL)fp36;
- (void)dealloc;
- (void)setTitle:(id)fp8;
- (void)setIsAllDay:(BOOL)fp8;
- (void)setStartDate:(double)fp8;
- (void)drawContentInRect:(struct CGRect)fp8 selected:(BOOL)fp24;

@end

@interface CalendarListView : UISectionList <CalendarView>
{
    CalendarModel *_model;
    UIScrollAnimation *_scrollAnimation;
    UIProgressHUD *_progressHUD;
    unsigned int _regenerationInProgress:1;
    unsigned int _selectedDateIsDirty:1;
    unsigned int _changingSelection:1;
}

- (id)initWithFrame:(struct CGRect)fp8;
- (void)dealloc;
- (void)_selectedDateChanged:(id)fp8;
- (void)_absorbSelectedDate:(BOOL)fp8;
- (void)_occurrencesWillChange:(id)fp8;
- (void)_reloadDataAndCheckBottom;
- (void)_occurrencesChanged:(id)fp8;
- (void)_selectedOccurrenceChanged:(id)fp8;
- (void)_displayProgressHUD;
- (void)_cacheBeganRegenerating:(id)fp8;
- (void)_finishedScrollAnimation;
- (void)setModel:(id)fp8;
- (id)navigationTitle;
- (void)cleanUp;
- (void)finishedTransition;
- (int)numberOfSectionsInSectionList:(id)fp8;
- (id)sectionList:(id)fp8 titleForSection:(int)fp12;
- (int)sectionList:(id)fp8 rowForSection:(int)fp12;
- (id)sectionList:(id)fp8 headerCellForSection:(int)fp12 reusing:(id)fp16;
- (int)numberOfRowsInTable:(id)fp8;
- (id)table:(id)fp8 cellForRow:(int)fp12 column:(id)fp16 reusing:(id)fp20;
- (void)tableSelectionDidChange:(id)fp8;
- (void)scrollerDidEndDragging:(id)fp8 willSmoothScroll:(BOOL)fp12;

@end

@interface CalendarListHeaderCell : UISectionHeaderCell
{
    double _date;
}

- (void)setDate:(double)fp8;
- (void)drawRect:(struct CGRect)fp8;

@end

@interface NSString (CalendarTextRendering)
- (id)stringMetricsForDrawingInRect:(struct CGRect)fp8 usingFont:(struct __GSFont *)fp24 ellipsisStyle:(int)fp28 flowingFromX:(float)fp32 lastLineEnd:(struct CGPoint *)fp36 startOnSecondLineIfPossible:(BOOL)fp40;
- (void)drawUsingMetrics:(id)fp8 inRect:(struct CGRect)fp12 usingFont:(struct __GSFont *)fp28 ellipsisStyle:(int)fp32 firstLineX:(float)fp36;
@end

@interface CalendarDayAllDayView : UIView
{
    NSMutableArray *_occurrenceViews;
    UITextLabel *_allDay;
    float _occurrenceWidth;
    id _delegate;
}

- (id)initWithFrame:(struct CGRect)fp8;
- (void)dealloc;
- (void)setDelegate:(id)fp8;
- (void)setOccurrenceWidth:(float)fp8;
- (void)setOccurrences:(id)fp8;
- (void)calendarDayOccurrenceViewClicked:(id)fp8;

@end

@interface CalendarEventEditOverlayView : UIView <CalendarView>
{
    UITransitionView *_transitionView;
    UINavigationBar *_navBar;
    UIAlertSheet *_alertSheet;
    CalendarModel *_model;
    CalendarEventEditView *_editView;
    CalendarEventEditItemView *_itemView;
    id _dirtyValue;
    unsigned int _backNavigating:1;
    unsigned int _dirtyFromResume:1;
}

+ (void)_clearDirtyOccurrenceValues;
+ (BOOL)willResumeToEditor;
+ (struct CalEventOccurrence *)copyDirtyOccurrenceToRestore;
- (id)initWithFrame:(struct CGRect)fp8;
- (void)dealloc;
- (void)dismiss;
- (void)removeFromSuperview;
- (void)showDetailView;
- (void)calendarEventEditView:(id)fp8 transitionToEditItemView:(id)fp12;
- (void)performSaveOfEditItem;
- (void)calendarEventEditViewItemCompletedEditing:(id)fp8;
- (void)_editedOccurrenceDateChanged:(id)fp8;
- (BOOL)calendarEventEditViewItemShouldCompleteEditing:(id)fp8;
- (void)performDeleteOfSelectedOccurrence:(BOOL)fp8;
- (void)deleteSelectedOccurrence;
- (void)calendarEventEditViewDeleteClicked:(id)fp8;
- (void)alertSheet:(id)fp8 buttonClicked:(int)fp12;
- (void)setModel:(id)fp8;
- (id)navigationTitle;
- (void)cleanUp;
- (void)_save;
- (BOOL)isDirty;
- (void)finishedTransition;
- (void)_updateNavBarButtons;
- (void)navigationBar:(id)fp8 buttonClicked:(int)fp12;
- (void)navigationBar:(id)fp8 poppedItem:(id)fp12;

@end

@interface CalendarEventEditView : CalendarPreferencesTable
{
    BOOL _editable;
    BOOL _deleteable;
}

+ (id)_editItems;
- (id)initWithFrame:(struct CGRect)fp8;
- (void)setupForOccurrence:(struct CalEventOccurrence *)fp8 givenModel:(id)fp12 useDate:(int)fp16;
- (BOOL)isEditable;
- (void)saveIntoEvent:(void *)fp8;
- (CDAnonymousStruct1)calendarEventRecurrenceEditItemMinimumEndDate:(id)fp8;
- (void)selectRow:(int)fp8 byExtendingSelection:(BOOL)fp12 withFade:(BOOL)fp16;
- (void)selectItemWithIdentifier:(id)fp8 subitemIndex:(int)fp12;
- (void)_deleteClicked:(id)fp8;
- (void)highlightView:(id)fp8 state:(BOOL)fp12;
- (void)calendarEventEditItemViewDidComplete:(id)fp8;
- (int)numberOfRowsInTable:(id)fp8;
- (int)numberOfGroupsInPreferencesTable:(id)fp8;
- (int)preferencesTable:(id)fp8 numberOfRowsInGroup:(int)fp12;
- (id)preferencesTable:(id)fp8 cellForRow:(int)fp12 inGroup:(int)fp16;
- (float)preferencesTable:(id)fp8 heightForRow:(int)fp12 inGroup:(int)fp16 withProposedHeight:(float)fp20;
- (BOOL)table:(id)fp8 showDisclosureForRow:(int)fp12;
- (void)calendarPreferencesTable:(id)fp8 valueWontFitForRow:(int)fp12 inGroup:(int)fp16;

@end

@interface CalendarEventEditItem : NSObject
{
    id _delegate;
}

- (id)identifier;
- (id)serializedValue;
- (void)absorbValueFromOccurrence:(struct CalEventOccurrence *)fp8 givenModel:(id)fp12;
- (void)absorbValueFromView:(id)fp8;
- (BOOL)editItemViewDirty:(id)fp8;
- (void)saveIntoEvent:(void *)fp8;
- (BOOL)canDetachSingleOccurrence;
- (BOOL)requiresDetachmentForView:(id)fp8;
- (void)setDelegate:(id)fp8;
- (float)defaultCellHeightForSubitemAtIndex:(int)fp8 forWidth:(float)fp12;
- (BOOL)hasChangeableRowHeights;
- (int)numberOfSubitems;
- (BOOL)cellShowsDisclosureForSubitemAtIndex:(int)fp8;
- (id)cellForSubitemAtIndex:(int)fp8;
- (void)setupShorterValueForCell:(id)fp8 atIndex:(int)fp12;
- (id)detailViewWithFrame:(struct CGRect)fp8 forSubitemAtIndex:(int)fp24;

@end

@interface CalendarEventTitleEditItemView : CalendarEventEditItemView
{
    UIPreferencesTable *_table;
    NSString *_title;
    NSString *_location;
}

- (id)initWithFrame:(struct CGRect)fp8;
- (void)dealloc;
- (id)navigationTitle;
- (void)setTitle:(id)fp8;
- (id)title;
- (void)setLocation:(id)fp8;
- (id)location;
- (void)absorbValueFromSerializedValue:(id)fp8;
- (void)becomeFirstResponder;
- (void)resignFirstResponder;
- (void)_absorbValueFromCell:(id)fp8;
- (int)numberOfRowsInTable:(id)fp8;
- (int)numberOfGroupsInPreferencesTable:(id)fp8;
- (int)preferencesTable:(id)fp8 numberOfRowsInGroup:(int)fp12;
- (id)preferencesTable:(id)fp8 cellForRow:(int)fp12 inGroup:(int)fp16;
- (float)preferencesTable:(id)fp8 heightForRow:(int)fp12 inGroup:(int)fp16 withProposedHeight:(float)fp20;

@end

@interface CalendarEventTitleEditItem : CalendarEventEditItem
{
    NSString *_title;
    NSString *_location;
}

- (id)identifier;
- (void)dealloc;
- (void)absorbValueFromOccurrence:(struct CalEventOccurrence *)fp8 givenModel:(id)fp12;
- (void)absorbValueFromView:(id)fp8;
- (id)serializedValue;
- (BOOL)editItemViewDirty:(id)fp8;
- (void)saveIntoEvent:(void *)fp8;
- (float)defaultCellHeightForSubitemAtIndex:(int)fp8 forWidth:(float)fp12;
- (id)cellForSubitemAtIndex:(int)fp8;
- (id)detailViewWithFrame:(struct CGRect)fp8 forSubitemAtIndex:(int)fp24;

@end

@interface PreferencesTablePlaceholderCell : UIPreferencesTableCell
{
}

- (id)valueTextLabel;
- (void)updateHighlightColors;

@end

@interface PreferencesMultiLineCell : UIPreferencesTableCell
{
}

+ (struct CGSize)fitValue:(id)fp8 forWidth:(float)fp12;
- (id)valueTextLabel;
- (struct CGImage *)_cachedBackgroundImage;
- (void)drawContentInRect:(struct CGRect)fp8 selected:(BOOL)fp24;

@end

@interface CalendarPreferencesTable : UIPreferencesTable
{
    unsigned int _delegateCanSelectRow:1;
    unsigned int _dataSourceValueWontFit:1;
}

- (void)setDelegate:(id)fp8;
- (void)setDataSource:(id)fp8;
- (BOOL)canSelectRow:(int)fp8;
- (void)_sendValueWontFitForCell:(id)fp8;

@end

@interface PreferencesTableControlCell : UIPreferencesControlTableCell
{
}

- (void)setControl:(id)fp8;
- (void)layoutSubviews;

@end

@interface PreferencesTableDoubleCell : UIPreferencesTableCell
{
    NSString *_title2;
    NSString *_value2;
    UITextLabel *_titleLabel2;
    UITextLabel *_valueLabel2;
    unsigned int _valuePlaceholder:2;
}

- (void)dealloc;
- (void)setEnabled:(BOOL)fp8;
- (id)titleLabel2;
- (id)valueLabel2;
- (void)setValue:(id)fp8;
- (void)setTitle2:(id)fp8;
- (void)setValue2:(id)fp8;
- (void)setValueIsPlaceholder:(BOOL)fp8;
- (void)setValue2IsPlaceholder:(BOOL)fp8;
- (void)updateHighlightColors;
- (void)layoutSubviews;

@end

@interface PreferencesDoubleTwoPartValueCell : PreferencesTableDoubleCell
{
    unsigned int _notifiedShort;
}

+ (Class)valueTextLabelClass;
- (void)_updatePart2Widths;
- (void)setValuePart1:(id)fp8 part2:(id)fp12;
- (void)setValuePart1:(id)fp8;
- (void)setValue2Part1:(id)fp8 part2:(id)fp12;
- (void)setValue2Part1:(id)fp8;
- (BOOL)firstValueHasTwoParts;
- (BOOL)secondValueHasTwoParts;
- (void)layoutSubviews;

@end

@interface PreferencesTwoPartValueCell : UIPreferencesTableCell
{
    unsigned int _notifiedShort;
}

+ (Class)valueTextLabelClass;
- (void)setValuePart1:(id)fp8 part2:(id)fp12;
- (void)setValuePart1:(id)fp8;
- (BOOL)hasTwoParts;
- (float)rightmostDisplayedPartWidth;
- (void)setMinimumPart2Width:(float)fp8;
- (void)layoutSubviews;

@end

@interface CalendarEventDateEditItemView : CalendarEventEditItemView
{
    UIPreferencesTable *_table;
    UIDatePicker *_datePicker;
    CDAnonymousStruct1 _startGr;
    CDAnonymousStruct1 _endGr;
    int _lastSelectedRow;
    BOOL _allDay;
    unsigned int _changingDate:1;
    unsigned int _switchChanging:1;
    unsigned int _endTimeWasMessedUp:1;
    unsigned int _dontAnimateDateChange:1;
    unsigned int _rowsTooLong:2;
}

- (id)initWithFrame:(struct CGRect)fp8;
- (void)dealloc;
- (id)navigationTitle;
- (BOOL)_endDateIsBeforeStartDate;
- (struct CGColor *)_dateColor;
- (void)_updateDateColors;
- (BOOL)_cellShouldUseShortDate:(id)fp8;
- (void)_updateTimeWidths;
- (void)_resetStartString:(BOOL)fp8 endString:(BOOL)fp12;
- (void)setStartDate:(CDAnonymousStruct1)fp8;
- (CDAnonymousStruct1)startDate;
- (void)setEndDate:(CDAnonymousStruct1)fp8;
- (CDAnonymousStruct1)endDate;
- (void)_allDayChanged:(id)fp8;
- (void)setAllDay:(BOOL)fp8;
- (BOOL)isAllDay;
- (void)absorbValueFromSerializedValue:(id)fp8;
- (BOOL)canComplete;
- (void)complete;
- (void)alertSheet:(id)fp8 buttonClicked:(int)fp12;
- (BOOL)calendarPreferencesTable:(id)fp8 canSelectRow:(int)fp12 inGroup:(int)fp16;
- (void)tableSelectionDidChange:(id)fp8;
- (void)datePickerChanged:(id)fp8;
- (int)numberOfRowsInTable:(id)fp8;
- (int)numberOfGroupsInPreferencesTable:(id)fp8;
- (int)preferencesTable:(id)fp8 numberOfRowsInGroup:(int)fp12;
- (id)preferencesTable:(id)fp8 cellForRow:(int)fp12 inGroup:(int)fp16;
- (float)preferencesTable:(id)fp8 heightForRow:(int)fp12 inGroup:(int)fp16 withProposedHeight:(float)fp20;
- (void)calendarPreferencesTable:(id)fp8 valueWontFitForRow:(int)fp12 inGroup:(int)fp16;

@end

@interface CalendarEventDateEditItem : CalendarEventEditItem
{
    CDAnonymousStruct1 _startGr;
    CDAnonymousStruct1 _endGr;
    BOOL _allDay;
}

- (id)identifier;
- (void)absorbValueFromOccurrence:(struct CalEventOccurrence *)fp8 givenModel:(id)fp12 overrideDate:(int)fp16;
- (void)absorbValueFromOccurrence:(struct CalEventOccurrence *)fp8 givenModel:(id)fp12;
- (void)_postStartDateChange;
- (void)absorbValueFromView:(id)fp8;
- (id)serializedValue;
- (BOOL)editItemViewDirty:(id)fp8;
- (void)saveIntoEvent:(void *)fp8;
- (CDAnonymousStruct1)startDate;
- (float)defaultCellHeightForSubitemAtIndex:(int)fp8 forWidth:(float)fp12;
- (id)cellForSubitemAtIndex:(int)fp8;
- (void)setupShorterValueForCell:(id)fp8 atIndex:(int)fp12;
- (id)detailViewWithFrame:(struct CGRect)fp8 forSubitemAtIndex:(int)fp24;

@end

@interface CalendarEventRecurrenceEndEditItemView : CalendarEventEditItemView
{
    UIPreferencesTable *_table;
    UIDatePicker *_datePicker;
    CDAnonymousStruct1 _repeatEndGr;
    CDAnonymousStruct1 _preNeverEndDate;
    unsigned int _updatingPicker:1;
}

- (id)initWithFrame:(struct CGRect)fp8;
- (void)dealloc;
- (id)navigationTitle;
- (id)_stringForEndDate;
- (void)setRepeatEndDate:(CDAnonymousStruct1)fp8;
- (CDAnonymousStruct1)repeatEndDate;
- (void)setMinimumEndDate:(CDAnonymousStruct1)fp8;
- (void)absorbValueFromSerializedValue:(id)fp8;
- (void)completeCancelled;
- (void)datePickerChanged:(id)fp8;
- (BOOL)_showsNeverButton;
- (void)_neverClicked:(id)fp8;
- (int)numberOfRowsInTable:(id)fp8;
- (int)numberOfGroupsInPreferencesTable:(id)fp8;
- (int)preferencesTable:(id)fp8 numberOfRowsInGroup:(int)fp12;
- (id)preferencesTable:(id)fp8 cellForRow:(int)fp12 inGroup:(int)fp16;
- (void)tableSelectionDidChange:(id)fp8;

@end

@interface CalendarEventRecurrenceTypeEditItemView : CalendarEventEditItemView
{
    UIPreferencesTable *_table;
    NSString *_customString;
    int _repeatType;
}

- (id)initWithFrame:(struct CGRect)fp8;
- (void)dealloc;
- (id)navigationTitle;
- (void)setRepeatType:(int)fp8;
- (int)repeatType;
- (void)absorbValueFromSerializedValue:(id)fp8;
- (void)setCustomString:(id)fp8;
- (void)_cellChecked:(id)fp8;
- (int)numberOfRowsInTable:(id)fp8;
- (int)numberOfGroupsInPreferencesTable:(id)fp8;
- (int)preferencesTable:(id)fp8 numberOfRowsInGroup:(int)fp12;
- (id)preferencesTable:(id)fp8 cellForRow:(int)fp12 inGroup:(int)fp16;
- (BOOL)preferencesTable:(id)fp8 isRadioGroup:(int)fp12;
- (BOOL)table:(id)fp8 showDisclosureForRow:(int)fp12;
- (float)preferencesTable:(id)fp8 heightForRow:(int)fp12 inGroup:(int)fp16 withProposedHeight:(float)fp20;

@end

@interface CalendarEventRecurrenceEditItem : CalendarEventEditItem
{
    int _repeatType;
    int _originalRepeatType;
    CDAnonymousStruct1 _repeatEndGr;
    NSString *_customRepeatDescription;
}

- (id)identifier;
- (void)dealloc;
- (void)absorbValueFromOccurrence:(struct CalEventOccurrence *)fp8 givenModel:(id)fp12;
- (void)absorbValueFromView:(id)fp8;
- (id)serializedValue;
- (BOOL)editItemViewDirty:(id)fp8;
- (BOOL)canDetachSingleOccurrence;
- (BOOL)requiresDetachmentForView:(id)fp8;
- (void)_setEndDateForRecurrence:(void *)fp8;
- (void)saveIntoEvent:(void *)fp8;
- (int)numberOfSubitems;
- (id)cellForSubitemAtIndex:(int)fp8;
- (id)detailViewWithFrame:(struct CGRect)fp8 forSubitemAtIndex:(int)fp24;

@end

@interface CalendarEventAlarmEditItemView : CalendarEventEditItemView
{
    UIPreferencesTable *_table;
    NSString *_customString;
    int _alarmIndex;
    int _intervalIndex;
    BOOL _customSelected;
}

- (id)initWithFrame:(struct CGRect)fp8;
- (void)dealloc;
- (id)navigationTitle;
- (void)setAlarmIndex:(int)fp8;
- (int)alarmIndex;
- (int)_rowForIntervalIndex:(int)fp8;
- (int)_intervalIndexForRow:(int)fp8;
- (void)setCustomString:(id)fp8;
- (BOOL)customSelected;
- (void)setIntervalIndex:(int)fp8;
- (int)intervalIndex;
- (void)absorbValueFromSerializedValue:(id)fp8;
- (void)_cellChecked:(id)fp8;
- (int)numberOfRowsInTable:(id)fp8;
- (int)numberOfGroupsInPreferencesTable:(id)fp8;
- (int)preferencesTable:(id)fp8 numberOfRowsInGroup:(int)fp12;
- (id)preferencesTable:(id)fp8 cellForRow:(int)fp12 inGroup:(int)fp16;
- (BOOL)preferencesTable:(id)fp8 isRadioGroup:(int)fp12;

@end

@interface CalendarEventAlarmEditItem : CalendarEventEditItem
{
    union {
        int triggerInterval;
        CDAnonymousStruct1 triggerDate;
    } _trigger[2];
    unsigned int _triggerIsAbsolute:2;
    unsigned int _alarmCount:2;
    unsigned int _dirty:1;
}

- (id)identifier;
- (void)absorbValueFromOccurrence:(struct CalEventOccurrence *)fp8 givenModel:(id)fp12;
- (void)absorbValueFromView:(id)fp8;
- (id)_createDictionaryRepresentationForAlarmAtIndex:(int)fp8;
- (id)serializedValue;
- (BOOL)editItemViewDirty:(id)fp8;
- (void)saveIntoEvent:(void *)fp8;
- (BOOL)cellShowsDisclosureForSubitemAtIndex:(int)fp8;
- (int)numberOfSubitems;
- (id)_stringValueForTriggerAtIndex:(int)fp8;
- (id)cellForSubitemAtIndex:(int)fp8;
- (id)detailViewWithFrame:(struct CGRect)fp8 forSubitemAtIndex:(int)fp24;

@end

@interface CalendarEventEditItemView : UIView
{
    id _delegate;
    CalendarEventEditItem *_item;
    int _subitemIndex;
}

- (id)initWithFrame:(struct CGRect)fp8;
- (void)dealloc;
- (void)setDelegate:(id)fp8;
- (void)setItem:(id)fp8;
- (id)item;
- (void)setSubitemIndex:(int)fp8;
- (int)subitemIndex;
- (id)navigationTitle;
- (void)absorbValueFromSerializedValue:(id)fp8;
- (BOOL)canComplete;
- (void)complete;
- (void)completeCancelled;
- (BOOL)isDirty;

@end

@interface CalendarEventNotesEditItemView : CalendarEventEditItemView
{
    UIPreferencesTable *_table;
    UITextView *_textView;
}

- (id)initWithFrame:(struct CGRect)fp8;
- (void)dealloc;
- (id)navigationTitle;
- (void)setNoteText:(id)fp8;
- (id)noteText;
- (void)absorbValueFromSerializedValue:(id)fp8;
- (void)resignFirstResponder;
- (int)numberOfRowsInTable:(id)fp8;
- (int)numberOfGroupsInPreferencesTable:(id)fp8;
- (int)preferencesTable:(id)fp8 numberOfRowsInGroup:(int)fp12;
- (id)preferencesTable:(id)fp8 cellForRow:(int)fp12 inGroup:(int)fp16;
- (float)preferencesTable:(id)fp8 heightForRow:(int)fp12 inGroup:(int)fp16 withProposedHeight:(float)fp20;

@end

@interface CalendarEventNotesEditItem : CalendarEventEditItem
{
    NSString *_description;
}

- (id)identifier;
- (void)dealloc;
- (void)absorbValueFromOccurrence:(struct CalEventOccurrence *)fp8 givenModel:(id)fp12;
- (void)absorbValueFromView:(id)fp8;
- (id)serializedValue;
- (BOOL)editItemViewDirty:(id)fp8;
- (void)saveIntoEvent:(void *)fp8;
- (float)defaultCellHeightForSubitemAtIndex:(int)fp8 forWidth:(float)fp12;
- (BOOL)hasChangeableRowHeights;
- (id)cellForSubitemAtIndex:(int)fp8;
- (id)detailViewWithFrame:(struct CGRect)fp8 forSubitemAtIndex:(int)fp24;

@end

@interface CalendarEventDetailView : UIPreferencesTable
{
    UITextLabel *_titleView;
    UITextLabel *_locationView;
    UITextLabel *_dateView;
    UITextLabel *_timeView;
    UITextLabel *_alertTitleView;
    UITextLabel *_alertView;
    UITextLabel *_alert2View;
    UITextLabel *_notesTitleView;
    UITextLabel *_notesView;
    UIView *_postTimeSeparator;
    UIView *_postAlertSeparator;
    UIPreferencesTableCell *_cell;
    unsigned int _occurrenceIsEditable:1;
}

- (id)initWithFrame:(struct CGRect)fp8;
- (void)dealloc;
- (id)_titleView;
- (id)_locationView;
- (id)_dateView;
- (id)_timeView;
- (id)_alertTitleView;
- (id)_alertView;
- (id)_alert2View;
- (id)_notesTitleView;
- (id)_notesView;
- (void)tileItems:(int)fp8;
- (void)setDisplayedOccurrence:(struct CalEventOccurrence *)fp8;
- (BOOL)isEditable;
- (int)numberOfRowsInTable:(id)fp8;
- (int)numberOfGroupsInPreferencesTable:(id)fp8;
- (int)preferencesTable:(id)fp8 numberOfRowsInGroup:(int)fp12;
- (id)preferencesTable:(id)fp8 cellForRow:(int)fp12 inGroup:(int)fp16;
- (float)preferencesTable:(id)fp8 heightForRow:(int)fp12 inGroup:(int)fp16 withProposedHeight:(float)fp20;

@end

@interface TwoPartTextLabel : UITextLabel
{
    NSString *_secondTextPart;
    struct CGSize _part2Size;
    float _minPart2Width;
}

- (void)dealloc;
- (void)setTextPart1:(id)fp8 part2:(id)fp12;
- (void)setTextPart1:(id)fp8;
- (struct CGSize)textPart2Size;
- (BOOL)hasTwoParts;
- (struct CGSize)textSize;
- (float)rightmostDisplayedPartWidth;
- (void)setMinimumPart2Width:(float)fp8;
- (void)drawContentsInRect:(struct CGRect)fp8;

@end

