1
0
mirror of https://github.com/altlinux/admc.git synced 2025-03-21 02:50:43 +03:00
admc/tests/admc_test_member_of_tab.h

55 lines
1.4 KiB
C
Raw Permalink Normal View History

2021-06-25 17:03:44 +04:00
/*
* ADMC - AD Management Center
*
2025-01-09 15:46:38 +04:00
* Copyright (C) 2020-2025 BaseALT Ltd.
* Copyright (C) 2020-2025 Dmitry Degtyarev
2021-06-25 17:03:44 +04:00
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef ADMC_TEST_MEMBER_OF_TAB_H
#define ADMC_TEST_MEMBER_OF_TAB_H
#include "admc_test.h"
class QTreeView;
2021-12-22 16:26:03 +04:00
class AttributeEdit;
2021-06-25 17:03:44 +04:00
class QStandardItemModel;
class QPushButton;
class ADMCTestMemberOfTab : public ADMCTest {
2021-06-30 14:24:51 +04:00
Q_OBJECT
2021-06-25 17:03:44 +04:00
private slots:
void init() override;
void load_empty();
void load();
void remove();
void add();
private:
2021-12-22 16:26:03 +04:00
AttributeEdit *edit;
2021-06-25 17:03:44 +04:00
QTreeView *view;
QStandardItemModel *model;
QString user_dn;
QString group_dn;
QPushButton *add_button;
QPushButton *remove_button;
int get_group_row(const QString &dn);
2021-06-25 17:03:44 +04:00
};
#endif /* ADMC_TEST_MEMBER_OF_TAB_H */