Permalink
Browse files

first import

git-svn-id: https://svn.cocoanetics.com/myappsales/trunk@2 3a964c32-7461-4f60-ae82-ad05498e24dc
  • Loading branch information...
1 parent 90d7aa3 commit c30b76281d2fede01e5c063afb085ba0385513bc oliver committed Mar 29, 2009
Showing 304 changed files with 30,175 additions and 0 deletions.
View
BIN ASiST.jpg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View

Large diffs are not rendered by default.

Oops, something went wrong.
View

Large diffs are not rendered by default.

Oops, something went wrong.

Large diffs are not rendered by default.

Oops, something went wrong.
View
@@ -0,0 +1,8 @@
+//
+// Prefix header for all source files of the 'ASiST' target in the 'ASiST' project
+//
+
+#ifdef __OBJC__
+ #import <Foundation/Foundation.h>
+ #import <UIKit/UIKit.h>
+#endif
View
72 App.h
@@ -0,0 +1,72 @@
+//
+// App.h
+// ASiST
+//
+// Created by Oliver Drobnik on 20.12.08.
+// Copyright 2008 __MyCompanyName__. All rights reserved.
+//
+
+#import <Foundation/Foundation.h>
+#import <sqlite3.h>
+
+@interface App : NSObject {
+ // fields
+ NSString *title;
+ NSString *vendor_identifier;
+ NSUInteger apple_identifier;
+ NSString *company_name;
+
+ // Internal state variables. Hydrated tracks whether attribute data is in the object or the database.
+ //BOOL hydrated;
+ // Dirty tracks whether there are in-memory changes to data which have no been written to the database.
+ BOOL dirty;
+
+ // This is set to true if it was added during this session
+ BOOL isNew;
+
+ // Opaque reference to the underlying database.
+ sqlite3 *database;
+
+ // for Downloading Icon image
+ NSMutableData *receivedData;
+ NSURLConnection *theConnection;
+
+ UIImage *iconImage;
+ UIImage *iconImageNano;
+
+ // for sorting by average daily sales
+ double averageRoyaltiesPerDay;
+
+}
+
+- (id)initWithPrimaryKey:(NSInteger)pk database:(sqlite3 *)db;
+- (id) initWithTitle:(NSString *)title vendor_identifier:(NSString *)vendor_identifier apple_identifier:(NSUInteger)apple_identifier company_name:(NSString *)company_name database:(sqlite3 *)db;
+
+- (void)insertIntoDatabase:(sqlite3 *)db;
+- (void)deleteFromDatabase;
+- (void)updateInDatabase; // used if title changes
+
+- (void) loadImageFromBirne;
+
+// Property exposure for primary key and other attributes. The primary key is 'assign' because it is not an object,
+// nonatomic because there is no need for concurrent access, and readonly because it cannot be changed without
+// corrupting the database.
+@property (assign, nonatomic) NSUInteger apple_identifier;
+// The remaining attributes are copied rather than retained because they are value objects.
+@property (copy, nonatomic) NSString *title;
+@property (copy, nonatomic) NSString *vendor_identifier;
+@property (copy, nonatomic) NSString *company_name;
+
+@property (retain, nonatomic) UIImage *iconImage;
+@property (retain, nonatomic) UIImage *iconImageNano;
+
+@property (assign, nonatomic) BOOL isNew;
+
+@property (assign, nonatomic) double averageRoyaltiesPerDay;
+
+- (NSComparisonResult)compareBySales:(App *)otherApp;
+
+
+
+
+@end
Oops, something went wrong.

0 comments on commit c30b762

Please sign in to comment.