summaryrefslogtreecommitdiff
path: root/PushablePhotos.h
blob: fbc652fa7efd149d9de64198d8fdc7b35b7d36d1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
//
//  PushablePhotos
//
//  Created by Chris Lee on 2007-09-26.
//  Copyright (c) 2007. All rights reserved.
//

#import <UIKit/UIView.h>
#import <UIKit/UITable.h>
#import <UIKit/UIImageAndTextTableCell.h>

@class NSArray, NSString, MobilePushr, PushablePhotosTable, RemovablePhotoCell;

@interface PushablePhotos : UIView
{
	PushablePhotosTable *_table;
	NSArray *_photoList;
	MobilePushr *_pushr;
	UIWindow *_mainWindow;
}

- (id)initWithFrame: (struct CGRect)frame application: (MobilePushr *)pushr inWindow: (UIWindow *)window;
- (void)emptyRoll;
- (NSArray *)photosToPush;
- (void)promptUserToEditPhotos: (NSArray *)photoList;

@end

@interface PushablePhotosTable : UITable
{
	NSMutableArray *_photos;
	MobilePushr *_pushr;
	UIWindow *_mainWindow;
}

- (void)setPhotos: (NSArray *)photos;
- (void)setApp: (MobilePushr *)pushr inWindow: (UIWindow *)window;
- (void)removePhoto: (RemovablePhotoCell *)photoCell;
- (NSArray *)pushablePhotos;

@end

@interface RemovablePhotoCell : UIImageAndTextTableCell 
{
    PushablePhotosTable *_table;
    NSString *_path;
}

- (void)setTable: (PushablePhotosTable *)table;
- (void)setPath: (NSString *)path;
- (NSString *)path;

@end