-
Notifications
You must be signed in to change notification settings - Fork 38
/
AppGrouping.h
39 lines (29 loc) · 915 Bytes
/
AppGrouping.h
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
//
// AppGrouping.h
// ASiST
//
// Created by Oliver on 21.10.09.
// Copyright 2009 Drobnik.com. All rights reserved.
//
#import <Foundation/Foundation.h>
#import "Database.h"
@interface AppGrouping : NSObject {
NSUInteger primaryKey;
NSString * myDescription;
NSMutableSet *apps;
// Opaque reference to the underlying database.
sqlite3 *database;
BOOL assignmentsChanged;
}
- (id) initWithAppSet:(NSSet *)appSet;
- (BOOL)containsAppsOfSet:(NSSet *)appSet;
- (void)appendAppsOfSet:(NSSet *)appSet;
- (id)initWithPrimaryKey:(NSInteger)pk database:(sqlite3 *)db;
- (void)insertIntoDatabase:(sqlite3 *)db;
- (void)updateInDatabase;
- (void)deleteFromDatabase;
- (void)snatchReportsFromAppGrouping:(AppGrouping *)otherGrouping;
@property (nonatomic, readonly) NSUInteger primaryKey;
@property (nonatomic, retain) NSString *myDescription;
@property (nonatomic, retain) NSMutableSet *apps;
@end