-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathBookShelfColumnGridViewController.h
More file actions
72 lines (45 loc) · 1.91 KB
/
BookShelfColumnGridViewController.h
File metadata and controls
72 lines (45 loc) · 1.91 KB
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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
//
// BookShelfColumnGridViewController.h
// Milestones
//
// Created by anonymous on 6/28/11.
// Copyright 2011 companyName Studio. All rights reserved.
//
#import <UIKit/UIKit.h>
#import <StoreKit/StoreKit.h>
#import "AQGridView.h"
#import "BookShelfManager.h"
#import "BookShelfColumnGridViewCell.h"
#import "Material.h"
//#import "ASIHTTPRequest.h" // to allow Base64 encryption in exchanging receipt.
//#import "DownloadManager.h"
//#import "ZipArchive.h"
@interface BookShelfColumnGridViewController : UIViewController <AQGridViewDelegate, AQGridViewDataSource> { //, ImageDemoCellChooserDelegate, ASIHTTPRequestDelegate,, SKProductsRequestDelegate, SKPaymentTransactionObserver
NSArray * bookcovers ;
AQGridView * gridView;
// temp, copied exmample
UILabel *pageNumberLabel;
int pageNumber;
// download related
// REF. DownAndASIRequest project from cocoachina.com/bbs
BookShelfColumnGridViewCell *currentProcessingCell ; // used to indicate the last user interact material, used to load material after download finish.
}
@property (nonatomic, retain) IBOutlet AQGridView * gridView;
@property (retain) BookShelfColumnGridViewCell *currentProcessingCell ;
// temp: debug use
//@property (nonatomic, retain) IBOutlet UILabel *pageNumberLabel;
//@property (nonatomic, retain) IBOutlet UILabel *numberTitle;
- (id)initWithPageNumber:(int)page;
/// experimental
//-(void) loadOrBuy:(Material *)material ;
//-(void) loadOrBuy:(BookShelfColumnGridViewCell *)cell ;
//-(BOOL) canLoadBookByProductIdentifier:(Material*) material;
//-(NSString *)gridIndexToBookInfo:(int)gridIndex forAttribute:(NSString *)attrName ;
//-(NSDictionary *)gridIndexToBookInfo:(int)gridIndex ;
//-(void)useMaterial:( BookShelfColumnGridViewCell *)cell ;
//-(void)downloadMaterial:( BookShelfColumnGridViewCell *)cell ;
@end
// TODO: remove me, debugging code
@interface UIView (debug)
- (NSString *)recursiveDescription;
@end