aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPUserManager.h
diff options
context:
space:
mode:
authormltownsend <mltownsend@gmail.com>2010-02-02 05:54:45 +0000
committermltownsend <mltownsend@gmail.com>2010-02-02 05:54:45 +0000
commit71d01e1417607aebc4254b32258c91b09078672f (patch)
tree29929b80786de2e1e6eac3114d40e735b10fb367 /Source/SPUserManager.h
parentad907a934310fe46d1f4843d8e4e3fe971066440 (diff)
downloadsequelpro-71d01e1417607aebc4254b32258c91b09078672f.tar.gz
sequelpro-71d01e1417607aebc4254b32258c91b09078672f.tar.bz2
sequelpro-71d01e1417607aebc4254b32258c91b09078672f.zip
First stab at Schema Privileges. A UI redesign is on its way. Please test on non Production servers
Diffstat (limited to 'Source/SPUserManager.h')
-rw-r--r--Source/SPUserManager.h28
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