3
* TOra - An Oracle Toolkit for DBA's and developers
4
* Copyright (C) 2003-2005 Quest Software, Inc
5
* Portions Copyright (C) 2005 Other Contributors
7
* This program is free software; you can redistribute it and/or
8
* modify it under the terms of the GNU General Public License
9
* as published by the Free Software Foundation; only version 2 of
10
* the License is valid for this program.
12
* This program is distributed in the hope that it will be useful,
13
* but WITHOUT ANY WARRANTY; without even the implied warranty of
14
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15
* GNU General Public License for more details.
17
* You should have received a copy of the GNU General Public License
18
* along with this program; if not, write to the Free Software
19
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
21
* As a special exception, you have permission to link this program
22
* with the Oracle Client libraries and distribute executables, as long
23
* as you follow the requirements of the GNU GPL in regard to all of the
24
* software in the executable aside from Oracle client libraries.
26
* Specifically you are not permitted to link this program with the
27
* Qt/UNIX, Qt/Windows or Qt Non Commercial products of TrollTech.
28
* And you are not permitted to distribute binaries compiled against
29
* these libraries without written consent from Quest Software, Inc.
30
* Observe that this does not disallow linking to the Qt Free Edition.
32
* You may link this product with any GPL'd Qt library such as Qt/Free
34
* All trademarks belong to their respective owners.
52
class toSecurityQuota;
54
class toSecuritySystem : public toListView
59
toSecuritySystem(QWidget *parent);
60
void changeUser(const QString &);
61
void eraseUser(bool all = true);
62
void sql(const QString &user, std::list<QString> &sql);
65
virtual void changed(QListViewItem *item);
68
class toSecurityRoleGrant : public toListView
72
QCheckListItem *findChild(QListViewItem *parent, const QString &name);
74
toSecurityRoleGrant(QWidget *parent);
75
void changeUser(bool user, const QString &);
76
void sql(const QString &user, std::list<QString> &sql);
77
void eraseUser(bool user, bool all = true);
80
virtual void changed(QListViewItem *item);
83
class toSecurityObject : public toListView
88
toSecurityObject(QWidget *parent);
89
void changeUser(const QString &);
90
void sql(const QString &user, std::list<QString> &sql);
91
void eraseUser(bool all = true);
94
virtual void changed(QListViewItem *item);
97
class toSecurity : public toToolWidget
108
privilege(const QString &owner, const QString &object, const QString &access,
109
const QString &value, bool admin)
110
: Owner(owner), Object(object), Access(access), Value(value), Admin(admin)
117
QPopupMenu *ToolMenu;
118
toListView *UserList;
119
toSecuritySystem *SystemGrant;
120
toSecurityRoleGrant *RoleGrant;
121
toSecurityObject *ObjectGrant;
122
toSecurityPage *General;
123
toSecurityQuota *Quota;
124
QToolButton *DropButton;
125
QToolButton *CopyButton;
127
std::list<QString> sql(void);
129
toSecurity(QWidget *parent, toConnection &connection);
130
virtual void changeUser(bool);
133
virtual void refresh(void);
134
virtual void changeUser(QListViewItem *)
138
virtual void saveChanges(void);
139
virtual void addUser(void);
140
virtual void addRole(void);
141
virtual void drop(void);
142
virtual void copy(void);
143
virtual void displaySQL(void);
144
virtual void windowActivated(QWidget *widget);