diff options
Diffstat (limited to 'Source/SPUserManager.h')
-rw-r--r-- | Source/SPUserManager.h | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/Source/SPUserManager.h b/Source/SPUserManager.h index 0e619563..76a790e5 100644 --- a/Source/SPUserManager.h +++ b/Source/SPUserManager.h @@ -41,6 +41,21 @@ IBOutlet NSTabView *tabView; IBOutlet NSTreeController *treeController; IBOutlet NSMutableDictionary *privsSupportedByServer; + + IBOutlet NSArrayController *schemaController; + IBOutlet NSArrayController *grantedController; + IBOutlet NSArrayController *availableController; + + IBOutlet NSTableView *schemasTableView; + IBOutlet NSTableView *grantedTableView; + IBOutlet NSTableView *availableTableView; + IBOutlet NSButton *addSchemaPrivButton; + IBOutlet NSButton *removeSchemaPrivButton; + + + NSMutableArray *schemas; + NSMutableArray *grantedSchemaPrivs; + NSMutableArray *availablePrivs; } @property (nonatomic, retain) MCPConnection *mySqlConnection; @@ -49,6 +64,10 @@ @property (nonatomic, retain, readonly) NSManagedObjectContext *managedObjectContext; @property (nonatomic, retain) NSMutableDictionary *privsSupportedByServer; +@property (nonatomic, retain) NSMutableArray *schemas; +@property (nonatomic, retain) NSMutableArray *grantedSchemaPrivs; +@property (nonatomic, retain) NSMutableArray *availablePrivs; + // Add/Remove users - (IBAction)addUser:(id)sender; - (IBAction)removeUser:(id)sender; @@ -62,12 +81,21 @@ - (IBAction)checkAllPrivileges:(id)sender; - (IBAction)uncheckAllPrivileges:(id)sender; +// Schema Privieges +- (IBAction)addSchemaPriv:(id)sender; +- (IBAction)removeSchemaPriv:(id)sender; + +// Refresh +- (IBAction)refresh:(id)sender; + // Core Data notifications - (void)contextDidSave:(NSNotification *)notification; - (BOOL)insertUsers:(NSArray *)insertedUsers; - (BOOL)deleteUsers:(NSArray *)deletedUsers; - (BOOL)updateUsers:(NSArray *)updatedUsers; - (BOOL)grantPrivilegesToUser:(NSManagedObject *)user; +- (BOOL)grantDbPrivilegesWithPrivilege:(NSManagedObject *)user; + - (NSArray *)treeSortDescriptors; @end |