File: MAUserAdministration.h

package info (click to toggle)
mysql-gui-tools 5.0r12-1
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 105,540 kB
  • ctags: 50,897
  • sloc: sql: 348,439; pascal: 285,780; cpp: 94,578; ansic: 90,768; objc: 33,761; sh: 25,629; xml: 10,924; yacc: 10,755; java: 9,986; php: 2,806; python: 2,068; makefile: 1,945; perl: 3
file content (110 lines) | stat: -rw-r--r-- 3,423 bytes parent folder | download | duplicates (2)
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
/* MAUserAdministration */

#import <Cocoa/Cocoa.h>

#import "MAPanel.h"
#include "myx_admin_public_interface.h"

@class MOutlineView;
@class MFilteredSchemaDataSource;
@class MUserListDataSource;
@class PrivilegeDataSource;
@class MUserItem;

@interface MAUserAdministration : MAPanel
{
    IBOutlet NSTextField *confirmText;
    IBOutlet NSTextView *contactText;
    IBOutlet NSTextField *descriptionText;
    IBOutlet NSTextField *emailText;
    IBOutlet NSTextField *fullNameText;
    IBOutlet NSTableView *globalAssignedTable;
    IBOutlet NSTableView *globalAvailableTable;
    IBOutlet NSImageView *iconView;
    IBOutlet NSTextField *maxConnectionsText;
    IBOutlet NSTextField *maxQuestionText;
    IBOutlet NSTextField *maxUpdatesText;
    IBOutlet NSTextField *passwordText;
    IBOutlet NSTableView *schemaAssignedTable;
    IBOutlet NSTableView *schemaAvailableTable;
    IBOutlet NSOutlineView *schemaOutline;
    IBOutlet NSTextField *schemaSearch;
//    IBOutlet NSView *sideBox;
    IBOutlet NSTableView *tableAssignedTable;
    IBOutlet NSTableView *tableAvailableTable;
    IBOutlet NSOutlineView *tableOutline;
    IBOutlet NSTextField *tableSearch;
    IBOutlet NSTextField *usernameText;
    IBOutlet MOutlineView *userOutline;
    IBOutlet NSSearchField *userSearch;
    IBOutlet NSTextField *userLabel1;
    IBOutlet NSTextField *userLabel2;
    IBOutlet NSTextField *userLabel3;
    IBOutlet NSTextField *userLabel4;
    IBOutlet NSTabView *tabView;

    IBOutlet NSPanel *addHostPanel;
    IBOutlet NSMatrix *addHostMatrix;
    IBOutlet NSTextField *addHostText;


    MUserListDataSource *_userDS;
    PrivilegeDataSource *_globalPrivDS;
    PrivilegeDataSource *_schemaPrivDS;
    PrivilegeDataSource *_tablePrivDS;
    PrivilegeDataSource *_columnPrivDS;
    PrivilegeDataSource *_routinePrivDS;
	
    MFilteredSchemaDataSource *_schemaDS;
    MFilteredSchemaDataSource *_objectDS;
    
    id globalPageView;
    BOOL globalVisible;
    id tablePageView;
    BOOL tableVisible;

    NSString *_oldHost;
    MUserItem *_oldUser;
    int _oldRow;
    
    // privilege templates
    MYX_USER_OBJECT_PRIVILEGES *_globalPrivs;
    MYX_USER_OBJECT_PRIVILEGES *_schemaPrivs;
    MYX_USER_OBJECT_PRIVILEGES *_tablePrivs;    
    MYX_USER_OBJECT_PRIVILEGES *_columnPrivs;
    MYX_USER_OBJECT_PRIVILEGES *_routinePrivs;
    
    NSImage *_privilegeIcon;
	
    int _selectedUserRow;
}
- (IBAction)addUser:(id)sender;
- (IBAction)removeUser:(id)sender;
- (IBAction)addHost:(id)sender;
- (IBAction)removeHost:(id)sender;
- (IBAction)chooseIcon:(id)sender;
- (IBAction)discardChanges:(id)sender;
- (IBAction)globalAddPrivilege:(id)sender;
- (IBAction)globalRemovePrivilege:(id)sender;
- (IBAction)saveChanges:(id)sender;
- (IBAction)schemaAddPrivilege:(id)sender;
- (IBAction)schemaRemovePrivilege:(id)sender;
- (IBAction)tableAddPrivilege:(id)sender;
- (IBAction)tableRemovePrivilege:(id)sender;

- (IBAction)addHostAdd:(id)sender;
- (IBAction)addHostCancel:(id)sender;

- (IBAction)filterTableList:(id)sender;
- (IBAction)filterSchemaList:(id)sender;
- (IBAction)filterUserList:(id)sender;

- (IBAction)refreshUserList:(id)sender;

- (void)showUser:(MUserItem*)user host:(NSString*)host;
- (void)showUser:(MUserItem*)user host:(NSString*)host keepAccountInfo:(BOOL)flag;

- (void)removeUserAlertDidEnd:(NSAlert *)alert returnCode:(int)returnCode
                  contextInfo:(void *)contextInfo;

@end