- Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDatabaseHelper.h
More file actions
Latest commit
32 lines (25 loc) · 1.02 KB
/
Copy pathDatabaseHelper.h
File metadata and controls
32 lines (25 loc) · 1.02 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
//
// DatabaseHelper.h
// Timer
//
// Created by Chris Monahan on 4/30/14.
// Copyright 2014 Core Coding. All rights reserved.
//
#import<Foundation/Foundation.h>
#import"Note.h"
#import"Timesheet.h"
@interfaceDatabaseHelper : NSObject {
}
// CoreData objects
@property (readonly, strong, nonatomic) NSManagedObjectContext *managedObjectContext;
@property (readonly, strong, nonatomic) NSManagedObjectModel *managedObjectModel;
@property (readonly, strong, nonatomic) NSPersistentStoreCoordinator *persistentStoreCoordinator;
- (void)saveContext;
- (void)eraseAllContent;
- (NSArray *)grabAllEntries;
- (NSManagedObjectID *)addEntryWithDate:(NSDate *)datewithTitle:(NSString *)titlewithClient:(NSString *)client;
- (void)addNote:(NSString *)activityToTimesheet:(NSManagedObjectID *)object;
- (Timesheet *)getEntryFromObject:(NSManagedObjectID *)object;
- (unsignedint)getDurationFromCompletedTasksWithCurrentTasks:(NSArray *)databaseObjects;
- (void)updateSheet:(Timesheet *)sheetwithEndDate:(NSDate *)theDate;
@end