aboutsummaryrefslogtreecommitdiffstats
path: root/iphone/FixMyStreet/Classes/Report.m
diff options
context:
space:
mode:
Diffstat (limited to 'iphone/FixMyStreet/Classes/Report.m')
-rw-r--r--iphone/FixMyStreet/Classes/Report.m64
1 files changed, 64 insertions, 0 deletions
diff --git a/iphone/FixMyStreet/Classes/Report.m b/iphone/FixMyStreet/Classes/Report.m
new file mode 100644
index 000000000..afd71ede4
--- /dev/null
+++ b/iphone/FixMyStreet/Classes/Report.m
@@ -0,0 +1,64 @@
+//
+// Report.m
+// FixMyStreet
+//
+// Created by Matthew on 29/09/2008.
+// Copyright 2008 UK Citizens Online Democracy. All rights reserved.
+//
+
+/*
+#import "Report.h"
+
+static Report *sharedReport = nil;
+
+@implementation Report
+
+@synthesize image, location, subject;
+
+-(void)uploadReport {
+}
+
+// See "Creating a Singleton Instance" in the Cocoa Fundamentals Guide for more info
+
++ (Report *)sharedInstance {
+ @synchronized(self) {
+ if (sharedReport == nil) {
+ [[self alloc] init]; // assignment not done here
+ }
+ }
+ return sharedReport;
+}
+
++ (id)allocWithZone:(NSZone *)zone {
+ @synchronized(self) {
+ if (sharedReport == nil) {
+ sharedReport = [super allocWithZone:zone];
+ return sharedReport; // assignment and return on first allocation
+ }
+ }
+ return nil; // on subsequent allocation attempts return nil
+}
+
+- (id)copyWithZone:(NSZone *)zone
+{
+ return self;
+}
+
+- (id)retain {
+ return self;
+}
+
+- (unsigned)retainCount {
+ return UINT_MAX; // denotes an object that cannot be released
+}
+
+- (void)release {
+ //do nothing
+}
+
+- (id)autorelease {
+ return self;
+}
+
+@end
+*/