00001
00002
00003
00004
00005
00006
00007 #import "NSObject.h"
00008
00009 @class ABPeoplePicker, AlbumScroller, AlbumView, EmptyAlbumView, ImageTileView, MLPhotoAlbum, MailComposeController, MobileMeHelper, MobileMeView, NSString, NSTimer, PLCropOverlay, UIAlertSheet, UIButtonBar, UIImageView, UIProgressHUD, UITransitionView, UIView, UIWindow;
00010
00011 @interface AlbumsController : NSObject
00012 {
00013 MLPhotoAlbum *_album;
00014 AlbumView *_albumView;
00015 struct __CFDictionary *_tileCache;
00016 AlbumScroller *_scroller;
00017 ImageTileView *_tiledView;
00018 EmptyAlbumView *_emptyCameraView;
00019 UIView *_fadeToBlackView;
00020 UITransitionView *_slideshowTransitionView;
00021 UITransitionView *_cameraTransitionView;
00022 struct __CFArray *_imageIndexes;
00023 unsigned int _currentIndex;
00024 unsigned int _deletedIndex;
00025 int _deviceOrientation;
00026 int _slideshowStatus;
00027 BOOL _tvOutOn;
00028 BOOL _beingRotated;
00029 BOOL _ignoreGestures;
00030 BOOL _animating;
00031 BOOL _performActionAfterOrientationChange;
00032 BOOL _updateRotationAfterGestures;
00033 BOOL _resumeSlideshowAfterRotation;
00034 int _directionToMoveAfterSmoothScrollCompletes;
00035 double _lastButtonClickTime;
00036 int _lastActionMenuButtonIndex;
00037 struct CGSize _contentStartSize;
00038 float _startDegrees;
00039 float _startScale;
00040 float _endScale;
00041 UIButtonBar *_buttonBar;
00042 UIAlertSheet *_alertSheet;
00043 UIAlertSheet *_popupAlert;
00044 UIAlertSheet *_actionView;
00045 UIProgressHUD *_savingPhotoHud;
00046 NSTimer *_toolbarTimer;
00047 NSTimer *_playTimer;
00048 NSTimer *_scrubTimer;
00049 BOOL _scrubbingTopSpeed;
00050 BOOL _scrubbingStarted;
00051 PLCropOverlay *_cropOverlay;
00052 MailComposeController *_composeController;
00053 UIImageView *_emailAnimationView;
00054 struct CGRect _emailAnimationDestinationRect;
00055 struct __CFData *_emailImageData;
00056 BOOL _animateToShowComposeWindow;
00057 BOOL _emailButtonEnabled;
00058 BOOL _emailDeliveryFailed;
00059 NSString *_emailErrorTitle;
00060 NSString *_emailErrorDescription;
00061 SEL _emailPhotoAction;
00062 ABPeoplePicker *_picker;
00063 struct CPRecord *_person;
00064 MobileMeHelper *_mobileMeHelper;
00065 MobileMeView *_mobileMeView;
00066 NSString *_mobileMeAlbumName;
00067 NSString *_mobileMeEmailAddress;
00068 UIView *_fromView;
00069 UIView *_toView;
00070 int _imageScrollerLastSmoothScrollDirection;
00071 double _lastRubberbandScrollTime;
00072 UIWindow *_tvOutWindow;
00073 UIView *_tvOutContentView;
00074 AlbumScroller *_tvOutScroller;
00075 ImageTileView *_tvOutTiledView;
00076 struct __CFDictionary *_tvOutTileCache;
00077 UITransitionView *_tvOutTransitionView;
00078 UIView *_tvOutFromView;
00079 UIView *_tvOutToView;
00080 }
00081
00082 - (void)_resetIndexArrayStartingWithIndex:(int)fp8 shuffleImages:(BOOL)fp12 keepPhotoAtStartingIndex:(BOOL)fp16;
00083 - (void)_clearFullScreenView;
00084 - (void)_fadeOut;
00085 - (void)_fadeIn;
00086 - (BOOL)_albumScrollerIsVisible;
00087 - (id)_retainedImageViewForModelImage:(id)fp8;
00088 - (id)_scrollerForImageView:(id)fp8 size:(struct CGSize)fp12;
00089 - (void)_preloadImage:(id)fp8 albumImageIndex:(int)fp12 cache:(struct __CFDictionary *)fp16;
00090 - (void)_preloadImage:(id)fp8 albumImageIndex:(int)fp12;
00091 - (id)_imageScrollerForIndex:(int)fp8 image:(id)fp12 tileCache:(struct __CFDictionary *)fp16;
00092 - (id)_imageScrollerForIndex:(int)fp8 image:(id)fp12;
00093 - (int)_albumImageIndexForTileIndex:(int)fp8;
00094 - (int)_currentIndexFromScrollPosition;
00095 - (void)_configureScroller:(id *)fp8 tiledView:(id *)fp12;
00096 - (void)_pictureWasTaken:(id)fp8;
00097 - (void)_startSlideshowTimer;
00098 - (void)_cancelSlideshowTimer;
00099 - (void)_cancelToolbarTimer;
00100 - (int)_allowedRotationGesture;
00101 - (void)_setZoomAndRotationEnabled:(BOOL)fp8;
00102 - (void)_clearTileCache;
00103 - (id)_modelImageForIndex:(int)fp8;
00104 - (void)cameraAlbumDidChange;
00105 - (BOOL)_canEmailPhoto;
00106 - (void)_capabilitiesChanged;
00107 - (id)init;
00108 - (void)dealloc;
00109 - (void)_resizeViewForStatusBarHeightChange:(id)fp8;
00110 - (void)statusBarHeightDidChange:(id)fp8;
00111 - (void)_showOverlaysForResume;
00112 - (void)applicationResumed:(id)fp8;
00113 - (void)applicationSuspended:(id)fp8;
00114 - (void)applicationWillBeginSuspendAnimation:(id)fp8;
00115 - (void)storeCurrentConfiguration:(id)fp8;
00116 - (void)loadCurrentConfiguration:(id)fp8;
00117 - (void)setAlbumScrollerEnabled:(BOOL)fp8;
00118 - (BOOL)isBeingRotated;
00119 - (void)setBeingRotated:(BOOL)fp8;
00120 - (id)album;
00121 - (void)setAlbum:(id)fp8;
00122 - (id)_albumView;
00123 - (id)albumView;
00124 - (id)albumScroller;
00125 - (void)scrollCurrentImageToVisible;
00126 - (void)animateToIndex;
00127 - (double)durationForTransition:(int)fp8;
00128 - (void)transitionViewDidComplete:(id)fp8 fromView:(id)fp12 toView:(id)fp16;
00129 - (void)transitionToFullScreenDidComplete;
00130 - (void)transitionToFullScreenImage:(id)fp8;
00131 - (void)playSlideshow;
00132 - (void)fadeOutAnimation:(id)fp8 finished:(id)fp12;
00133 - (void)fadeInAnimation:(id)fp8 finished:(id)fp12;
00134 - (void)_cleanseCache:(struct __CFDictionary **)fp8 albumImageIndex:(int)fp12;
00135 - (void)_updateTVOutOffset;
00136 - (void)updateAfterAnimation;
00137 - (BOOL)canShowNextImage;
00138 - (BOOL)canShowPreviousImage;
00139 - (id)currentImage;
00140 - (id)nextImage;
00141 - (id)previousImage;
00142 - (void)_transitionToImage:(id)fp8 fromOldIndex:(int)fp12 toNewIndex:(int)fp16 transition:(int)fp20 transitionView:(id)fp24;
00143 - (void)_transitionToImage:(id)fp8 fromOldIndex:(int)fp12 toNewIndex:(int)fp16 transition:(int)fp20;
00144 - (void)animationDidStop:(id)fp8 finished:(BOOL)fp12;
00145 - (void)_runLKTransition:(id)fp8 transitionView:(id)fp12 fromView:(id)fp16 toView:(id)fp20;
00146 - (void)_runLKTransition:(id)fp8;
00147 - (void)showNextImageWithTransition:(int)fp8;
00148 - (void)showPreviousImageWithTransition:(int)fp8;
00149 - (void)finishDelete;
00150 - (void)prepareDeleteImageWithNextSlide;
00151 - (void)prepareDeleteImagePreviousSlide;
00152 - (void)openTrash;
00153 - (void)didFinishSuckingToTrash:(id)fp8 finished:(id)fp12 context:(void *)fp16;
00154 - (void)suckToTrash:(id)fp8 transitionParent:(id)fp12;
00155 - (void)prepareForSucking;
00156 - (void)deleteCurrentImage;
00157 - (void)buttonBar:(id)fp8 didFinishAnimation:(int)fp12 forButton:(int)fp16;
00158 - (void)_flushTileCache;
00159 - (void)_removeTileCacheEntryForAlbumImageIndex:(int)fp8;
00160 - (void)_updateRotationView:(id)fp8 imageView:(id)fp12 forCreate:(BOOL)fp16;
00161 - (void)tileView:(id)fp8 createdTile:(id)fp12;
00162 - (void)tileWasRemoved:(id)fp8;
00163 - (void)tileWillBeDisplayed:(id)fp8;
00164 - (void)albumScrollerDidEndSmoothScroll;
00165 - (void)scrollerWillStartSmoothScrolling:(id)fp8;
00166 - (void)albumScrollerWillStartTrackingMouse:(id)fp8;
00167 - (void)albumScrollerFinishedScroll:(id)fp8;
00168 - (void)albumScrollerCanceledScroll:(id)fp8;
00169 - (int)deviceOrientationForTrackingInScroller:(id)fp8;
00170 - (void)scrollerWillStartDragging:(id)fp8;
00171 - (void)scrollerDidEndDragging:(id)fp8;
00172 - (void)handleSingleTap:(struct __GSEvent *)fp8;
00173 - (id)imageScrollerSiblingForDirection:(int)fp8;
00174 - (void)view:(id)fp8 handleTapWithCount:(int)fp12 event:(struct __GSEvent *)fp16 fingerCount:(int)fp20;
00175 - (void)viewHandleTouchPause:(id)fp8 isDown:(BOOL)fp12;
00176 - (float)_rotationDegreesForDeviceRotation:(int)fp8;
00177 - (float)_rotationDegreesToAchieveDeviceRotation:(int)fp8;
00178 - (void)_setDeviceOrientation:(int)fp8 force:(BOOL)fp12;
00179 - (void)orientationChanged:(id)fp8;
00180 - (void)_configureScrollerOrientation;
00181 - (void)_updateRotationAfterGestures;
00182 - (void)willStartGesturesInView:(id)fp8 forEvent:(struct __GSEvent *)fp12;
00183 - (void)willStartGesture:(int)fp8 inView:(id)fp12 forEvent:(struct __GSEvent *)fp16;
00184 - (void)gestureDidChange:(int)fp8 inView:(id)fp12 forEvent:(struct __GSEvent *)fp16;
00185 - (int)_deviceOrientationAfterRotatingByDegrees:(float)fp8;
00186 - (void)didFinishGesture:(int)fp8 inView:(id)fp12 forEvent:(struct __GSEvent *)fp16;
00187 - (void)imageViewWillSwitchToFullSizeImage:(id)fp8;
00188 - (void)imageViewDidSwitchToFullSizeImage:(id)fp8;
00189 - (void)_cancelScrubTimer;
00190 - (void)_resetScrubTimerForDirection:(int)fp8;
00191 - (void)_scrubTimerFired:(id)fp8;
00192 - (void)_stopScrubbing:(id)fp8;
00193 - (void)_handleDirectionButtonMouseDown:(id)fp8 direction:(int)fp12;
00194 - (void)mouseDownInLeftButton:(id)fp8;
00195 - (void)mouseDownInRightButton:(id)fp8;
00196 - (void)_showCropOverlayWithTitle:(id)fp8 subtitle:(id)fp12 cropButtonTitle:(id)fp16;
00197 - (void)_dismissCropOverlay;
00198 - (void)_backgroundSavePhoto:(id)fp8;
00199 - (void)_savePhoto;
00200 - (void)_savePhotoFinished:(id)fp8;
00201 - (void)cropOverlayWasCancelled:(id)fp8;
00202 - (void)cropOverlayWasOKed:(id)fp8;
00203 - (void)_reallyDismissActionMenu;
00204 - (void)_dismissActionMenuAndShowButtonBar:(BOOL)fp8;
00205 - (void)_showPeoplePicker;
00206 - (void)_dismissPeoplePicker;
00207 - (void)_dismissPeoplePickerFinished;
00208 - (BOOL)peoplePicker:(id)fp8 shouldShowCardForPerson:(struct CPRecord *)fp12;
00209 - (void)peoplePickerDidEndPicking:(id)fp8;
00210 - (BOOL)_shouldRespondToButtonBarButtons;
00211 - (void)playSlideshowClicked:(id)fp8;
00212 - (void)deleteImageClicked:(id)fp8;
00213 - (void)actionButtonClicked:(id)fp8;
00214 - (int)_transitionForButtonClickInDirection:(int)fp8;
00215 - (void)leftButtonClicked:(id)fp8;
00216 - (void)rightButtonClicked:(id)fp8;
00217 - (void)cancelButtonClicked:(id)fp8;
00218 - (void)_sendPhotoUsingSelector:(SEL)fp8 delay:(float)fp12;
00219 - (void)_showMobileMeAlbums;
00220 - (void)mobileMeHelperDidFinishValidatingAlbums:(id)fp8 foundValidAccount:(BOOL)fp12;
00221 - (void)mobileMeConnectionFailed:(id)fp8;
00222 - (void)_dismissMobileMeView;
00223 - (void)_dismissMobileMeViewFinished;
00224 - (void)mobileMeView:(id)fp8 selectedAlbum:(id)fp12;
00225 - (void)mobileMeViewDidCancel:(id)fp8;
00226 - (void)mobileMeClicked;
00227 - (struct CGRect)_animationDestinationRectForImageSize:(struct CGSize)fp8;
00228 - (void)_performSendViaEmail;
00229 - (void)_animateSendToEmail;
00230 - (void)didDismissAlertSheet:(id)fp8;
00231 - (void)sendViaEmailClicked;
00232 - (void)_cameraImageIsReady:(id)fp8;
00233 - (void)_setEmailButtonEnabled:(BOOL)fp8;
00234 - (void)delaySuspendCountChanged:(id)fp8;
00235 - (void)_emailAnimationFinished;
00236 - (void)mailComposeController:(id)fp8 loadedAttachments:(id)fp12;
00237 - (void)_finishedSlidingUpCompose;
00238 - (void)_finishedSlidingDownImage;
00239 - (void)mailComposeControllerCompositionFinished:(id)fp8;
00240 - (void)_saveEmailDraft;
00241 - (void)_restoreEmailDraft;
00242 - (BOOL)mailComposeControllerIsEditingDraft:(id)fp8;
00243 - (void)_finishedSlidingDownCompose;
00244 - (void)_finishedDeliveringEmail:(struct __CFArray *)fp8;
00245 - (void)_backgroundDeliverEmail:(struct __CFArray *)fp8;
00246 - (void)mailComposeControllerDidAttemptToSend:(id)fp8 mailDelivery:(id)fp12;
00247 - (void)assignToContactClicked;
00248 - (void)_performSetWallpaper;
00249 - (void)useAsScreenSaverClicked;
00250 - (id)_scrubOverlayTitle;
00251 - (void)_showButtonGroup:(int)fp8 withDuration:(int)fp12;
00252 - (void)updateStatusBar;
00253 - (void)updateButtonBar;
00254 - (void)updateOverlays;
00255 - (void)_animateAlphaOfView:(id)fp8 startAlpha:(float)fp12 endAlpha:(float)fp16 duration:(float)fp20;
00256 - (id)_buttonBarSuperview;
00257 - (id)buttonBar;
00258 - (void)resetToolbarTimer;
00259 - (void)delayToolbarFade;
00260 - (void)showSystemStatusBarWithDuration:(float)fp8;
00261 - (void)showStatusBarWithDuration:(float)fp8;
00262 - (void)showButtonBarWithDuration:(float)fp8;
00263 - (void)showOverlaysWithDuration:(float)fp8;
00264 - (void)hideOverlays;
00265 - (void)_presentAlertSheetWithTitle:(id)fp8 buttonTitles:(id)fp12 defaultButtonIndex:(int)fp16 redButtonIndex:(int)fp20 context:(id)fp24;
00266 - (void)_dismissAlertSheet;
00267 - (void)alertSheet:(id)fp8 buttonClicked:(int)fp12;
00268 - (void)_prepareForTVOut;
00269 - (void)_removeTVOutWindow;
00270 - (void)startSlideShow;
00271 - (void)stopPlaying;
00272 - (void)playTimerFired;
00273 - (void)togglePlay;
00274
00275 @end
00276