id
int64
0
877k
file_name
stringlengths
3
109
file_path
stringlengths
13
185
content
stringlengths
31
9.38M
size
int64
31
9.38M
language
stringclasses
1 value
extension
stringclasses
11 values
total_lines
int64
1
340k
avg_line_length
float64
2.18
149k
max_line_length
int64
7
2.22M
alphanum_fraction
float64
0
1
repo_name
stringlengths
6
66
repo_stars
int64
94
47.3k
repo_forks
int64
0
12k
repo_open_issues
int64
0
3.4k
repo_license
stringclasses
11 values
repo_extraction_date
stringclasses
197 values
exact_duplicates_redpajama
bool
2 classes
near_duplicates_redpajama
bool
2 classes
exact_duplicates_githubcode
bool
2 classes
exact_duplicates_stackv2
bool
1 class
exact_duplicates_stackv1
bool
2 classes
near_duplicates_githubcode
bool
2 classes
near_duplicates_stackv1
bool
2 classes
near_duplicates_stackv2
bool
1 class
1,538,799
security_sort_warning_dialog.h
altlinux_admc/src/admc/security_sort_warning_dialog.h
/* * ADMC - AD Management Center * * Copyright (C) 2020-2022 BaseALT Ltd. * Copyright (C) 2020-2022 Dmitry Degtyarev * * 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 SECURITY_SORT_WARNING_DIALOG #define SECURITY_SORT_WARNING_DIALOG /** * Dialog that warns about incorrect ACL sort order and * offers to fix it. Opens when switching to security * tab and incorrect order is detected. */ #include <QDialog> namespace Ui { class SecuritySortWarningDialog; } class SecuritySortWarningDialog final : public QDialog { Q_OBJECT public: Ui::SecuritySortWarningDialog *ui; SecuritySortWarningDialog(QWidget *parent); ~SecuritySortWarningDialog(); }; #endif /* SECURITY_SORT_WARNING_DIALOG */
1,327
C++
.h
38
32.710526
72
0.76815
altlinux/admc
36
14
14
GPL-3.0
9/20/2024, 10:44:59 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
1,538,800
error_log_dialog.h
altlinux_admc/src/admc/error_log_dialog.h
/* * ADMC - AD Management Center * * Copyright (C) 2020-2022 BaseALT Ltd. * Copyright (C) 2020-2022 Dmitry Degtyarev * * 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 ERROR_LOG_DIALOG_H #define ERROR_LOG_DIALOG_H /** * Dialog for displaying the error log messages. */ #include <QDialog> namespace Ui { class ErrorLogDialog; } class ErrorLogDialog final : public QDialog { Q_OBJECT public: Ui::ErrorLogDialog *ui; ErrorLogDialog(QWidget *parent); ~ErrorLogDialog(); void set_text(const QString &text); }; #endif /* ERROR_LOG_DIALOG_H */
1,182
C++
.h
37
29.621622
72
0.747359
altlinux/admc
36
14
14
GPL-3.0
9/20/2024, 10:44:59 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
1,538,801
utils.h
altlinux_admc/src/admc/utils.h
/* * ADMC - AD Management Center * * Copyright (C) 2020-2022 BaseALT Ltd. * Copyright (C) 2020-2022 Dmitry Degtyarev * * 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 UTILS_H #define UTILS_H class QAbstractItemModel; class QAbstractItemView; class QAbstractProxyModel; class QString; class QCheckBox; class QStandardItem; class QStandardItemModel; class QMenu; class QTreeView; class QLineEdit; class QPlainTextEdit; class QPoint; class QWidget; class QModelIndex; class QVariant; class QIcon; class AdInterface; class AdObject; class QPersistentModelIndex; class ConsoleWidget; class QMessageBox; template <typename T> class QList; template <typename K, typename T> class QMap; template <typename K, typename T> class QHash; #define UNUSED_ARG(x) (void) (x) #define debug_print(a, args...) printf("%s(%s:%d) " a, __func__, __FILE__, __LINE__, ##args) #define trace(a, args...) debug_print(a "\n", ##args) QList<QStandardItem *> make_item_row(const int count); // Convenience f-n so that you can pass a mapping of // column => label // Columns not in the map get empty labels void set_horizontal_header_labels_from_map(QStandardItemModel *model, const QMap<int, QString> &labels_map); // Prohibits leading zeroes void set_line_edit_to_decimal_numbers_only(QLineEdit *edit); void set_line_edit_to_hex_numbers_only(QLineEdit *edit); void set_line_edit_to_time_span_format(QLineEdit *edit); void enable_widget_on_selection(QWidget *widget, QAbstractItemView *view); void show_busy_indicator(); void hide_busy_indicator(); bool confirmation_dialog(const QString &text, QWidget *parent); void set_data_for_row(const QList<QStandardItem *> &row, const QVariant &data, const int role); // Wrappers over is_connected() that also open an error // messagebox if failed to connect. You should generally use // these in GUI code instead of is_connected(). bool ad_connected(const AdInterface &ad, QWidget *parent); bool ad_failed(const AdInterface &ad, QWidget *parent); // Filter that accepts only given classes QString get_classes_filter(const QList<QString> &class_list); // Filter that accepts only container classes QString is_container_filter(); void limit_edit(QLineEdit *edit, const QString &attribute); void limit_plain_text_edit(QPlainTextEdit *edit, const QString &attribute); QList<QPersistentModelIndex> persistent_index_list(const QList<QModelIndex> &indexes); QList<QModelIndex> normal_index_list(const QList<QPersistentModelIndex> &indexes); QString advanced_features_filter(const QString &filter); void dev_mode_search_results(QHash<QString, AdObject> &results, AdInterface &ad, const QString &base); // NOTE: these f-ns replace QMessageBox static f-ns. The // static f-ns use exec(), which block execution and makes // testing a hassle. These f-ns use open(). QMessageBox *message_box_critical(QWidget *parent, const QString &title, const QString &text); QMessageBox *message_box_information(QWidget *parent, const QString &title, const QString &text); QMessageBox *message_box_question(QWidget *parent, const QString &title, const QString &text); QMessageBox *message_box_warning(QWidget *parent, const QString &title, const QString &text); QList<QString> index_list_to_dn_list(const QList<QModelIndex> &index_list, const int dn_role); QList<QString> get_selected_dn_list(ConsoleWidget *console, const int type, const int dn_role); QString get_selected_target_dn(ConsoleWidget *console, const int type, const int dn_role); void center_widget(QWidget *widget); // If base name is "New X", then this will generate a name // "New X (n)" where this name won't conflict with any // existing names. For example "New Folder (7)" QString generate_new_name(const QList<QString> &existing_name_list, const QString &base_name); QList<QString> variant_list_to_string_list(const QList<QVariant> &variant_list); QList<QVariant> string_list_to_variant_list(const QList<QString> &string_list); bool string_contains_bad_chars(const QString &string, const QString &bad_chars); bool verify_object_name(const QString &name, QWidget *parent); // Setup an autofill of from one line edit into // another, so that when src is edited, input is copied // into dest. void setup_lineedit_autofill(QLineEdit *src, QLineEdit *dest); // (first name + last name) -> full name void setup_full_name_autofill(QLineEdit *first_name_edit, QLineEdit *last_name_edit, QLineEdit *full_name_edit); QString gpo_status_from_int(int status); QString current_dc_dns_host_name(AdInterface &ad); #endif /* UTILS_H */
5,124
C++
.h
108
45.981481
112
0.779695
altlinux/admc
36
14
14
GPL-3.0
9/20/2024, 10:44:59 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
1,538,802
console_filter_dialog.h
altlinux_admc/src/admc/console_filter_dialog.h
/* * ADMC - AD Management Center * * Copyright (C) 2020-2022 BaseALT Ltd. * Copyright (C) 2020-2022 Dmitry Degtyarev * * 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 CONSOLE_FILTER_DIALOG_H #define CONSOLE_FILTER_DIALOG_H /** * Dialog used to enter a filter that is applied to objects * in the console. Allows showing all objects, objects of * certain type or entering a custom filter. */ #include <QDialog> #include <QVariant> class QRadioButton; namespace Ui { class ConsoleFilterDialog; }; class ConsoleFilterDialog final : public QDialog { Q_OBJECT public: Ui::ConsoleFilterDialog *ui; ConsoleFilterDialog(QWidget *parent); ~ConsoleFilterDialog(); void accept() override; QVariant save_state() const; void restore_state(const QVariant &state); QString get_filter() const; bool get_filter_enabled() const; private: QHash<QString, QRadioButton *> button_state_name_map; QVariant original_state; QVariant filter_dialog_state; QString custom_filter; void open_custom_dialog(); void on_custom_button(); void on_classes_button(); }; #endif /* CONSOLE_FILTER_DIALOG_H */
1,766
C++
.h
53
30.433962
72
0.748087
altlinux/admc
36
14
14
GPL-3.0
9/20/2024, 10:44:59 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
1,538,803
create_object_helper.h
altlinux_admc/src/admc/create_object_helper.h
/* * ADMC - AD Management Center * * Copyright (C) 2020-2022 BaseALT Ltd. * Copyright (C) 2020-2022 Dmitry Degtyarev * * 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 CREATE_OBJECT_HELPER_H #define CREATE_OBJECT_HELPER_H /** * Base class for dialogs that create objects. */ #include <QObject> class QDialog; class QLineEdit; class QDialogButtonBox; class AttributeEdit; class QPushButton; class CreateObjectHelper : public QObject { Q_OBJECT public: CreateObjectHelper(QLineEdit *name_edit, QDialogButtonBox *button_box, const QList<AttributeEdit *> &edits_list, const QList<QLineEdit *> &required_list, const QString &object_class, const QString &parent_dn, QDialog *parent_dialog); bool accept() const; void on_edited(); QString get_created_name() const; QString get_created_dn() const; private: QDialog *parent_dialog; QString parent_dn; QLineEdit *name_edit; QList<AttributeEdit *> m_edit_list; QList<QLineEdit *> m_required_list; QPushButton *ok_button; QString m_object_class; }; #endif /* CREATE_OBJECT_HELPER_H */
1,700
C++
.h
48
32.729167
237
0.751674
altlinux/admc
36
14
14
GPL-3.0
9/20/2024, 10:44:59 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
1,538,804
changelog_dialog.h
altlinux_admc/src/admc/changelog_dialog.h
/* * ADMC - AD Management Center * * Copyright (C) 2020-2022 BaseALT Ltd. * Copyright (C) 2020-2022 Dmitry Degtyarev * * 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 CHANGELOG_DIALOG_H #define CHANGELOG_DIALOG_H /** * Dialog displaying contents of CHANGELOG.txt. */ #include <QDialog> namespace Ui { class ChangelogDialog; } class ChangelogDialog : public QDialog { Q_OBJECT public: Ui::ChangelogDialog *ui; ChangelogDialog(QWidget *parent); ~ChangelogDialog(); }; #endif /* CHANGELOG_DIALOG_H */
1,139
C++
.h
36
29.416667
72
0.753425
altlinux/admc
36
14
14
GPL-3.0
9/20/2024, 10:44:59 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
1,538,805
globals.h
altlinux_admc/src/admc/globals.h
/* * ADMC - AD Management Center * * Copyright (C) 2020-2022 BaseALT Ltd. * Copyright (C) 2020-2022 Dmitry Degtyarev * * 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 GLOBALS_H #define GLOBALS_H class AdConfig; class AdInterface; class Status; class IconManager; extern AdConfig *g_adconfig; extern Status *g_status; extern IconManager *g_icon_manager; void load_g_adconfig(AdInterface &ad); #endif /* GLOBALS_H */
1,036
C++
.h
30
32.733333
72
0.767
altlinux/admc
36
14
14
GPL-3.0
9/20/2024, 10:44:59 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
1,538,806
main_window.h
altlinux_admc/src/admc/main_window.h
/* * ADMC - AD Management Center * * Copyright (C) 2020-2022 BaseALT Ltd. * Copyright (C) 2020-2022 Dmitry Degtyarev * * 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 MAIN_WINDOW_H #define MAIN_WINDOW_H #include <QMainWindow> class AdInterface; class QLabel; namespace Ui { class MainWindow; } class MainWindow final : public QMainWindow { Q_OBJECT public: Ui::MainWindow *ui; MainWindow(AdInterface &ad, QWidget *parent = nullptr); ~MainWindow(); protected: void closeEvent(QCloseEvent *event); private: QLabel *login_label; void on_log_searches_changed(); void on_show_login_changed(); void open_manual(); void open_connection_options(); void open_changelog(); void open_about(); void edit_fsmo_roles(); void reload_console_tree(); }; #endif /* MAIN_WINDOW_H */
1,446
C++
.h
47
27.957447
72
0.736311
altlinux/admc
36
14
14
GPL-3.0
9/20/2024, 10:44:59 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
1,538,807
search_thread.h
altlinux_admc/src/admc/search_thread.h
/* * ADMC - AD Management Center * * Copyright (C) 2020-2022 BaseALT Ltd. * Copyright (C) 2020-2022 Dmitry Degtyarev * * 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 SEARCH_THREAD_H #define SEARCH_THREAD_H /** * A thread that performs an AD search operation. Useful for * searches that are expected to take a long time. For * regular small searches this is overkill. results_ready() * signal returns search results as they arrive. If search * has multiple pages, then results_ready() will be emitted * multiple times. Use stop() to stop search. Note that search is * not stopped immediately but when current results page is * done processing. Note that creator of thread should call * thread's deleteLater() in the finished() slot. */ #include <QThread> #include "ad_defines.h" class AdObject; class AdMessage; class SearchThread final : public QThread { Q_OBJECT public: SearchThread(const QString base, const SearchScope scope, const QString &filter, const QList<QString> attributes); void stop(); int get_id() const; bool failed_to_connect() const; bool hit_object_display_limit() const; QList<AdMessage> get_ad_messages() const; signals: void results_ready(const QHash<QString, AdObject> &results); void over_object_display_limit(); private: bool stop_flag; QString base; SearchScope scope; QString filter; QList<QString> attributes; int id; bool m_failed_to_connect; bool m_hit_object_display_limit; QList<AdMessage> ad_messages; void run() override; }; // Call this in your finished() slot to display any // error dialogs. Search thread can't display them // because it is run in non-GUI thread. void search_thread_display_errors(SearchThread *thread, QWidget *parent); #endif /* SEARCH_THREAD_H */
2,420
C++
.h
65
34.430769
118
0.748079
altlinux/admc
36
14
14
GPL-3.0
9/20/2024, 10:44:59 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
1,538,808
status.h
altlinux_admc/src/admc/status.h
/* * ADMC - AD Management Center * * Copyright (C) 2020-2022 BaseALT Ltd. * Copyright (C) 2020-2022 Dmitry Degtyarev * * 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 STATUS_H #define STATUS_H /** * Collects status messages and displays them in a status * bar and status log. Can also display a log of recent * error messages in a dialog. */ class QTextEdit; class QStatusBar; class QString; class QWidget; class AdInterface; class AdMessage; template <typename T> class QList; enum StatusType { StatusType_Success, StatusType_Error }; class Status { public: void init(QStatusBar *statusbar, QTextEdit *message_log); void add_message(const QString &msg, const StatusType &type); void display_ad_messages(const QList<AdMessage> &messages, QWidget *parent); void display_ad_messages(const AdInterface &ad, QWidget *parent); // Display all messages in status log without dialogs void log_messages(const QList<AdMessage> &messages); void log_messages(const AdInterface &ad); private: QStatusBar *m_status_bar; QTextEdit *m_message_log; }; // Opens a dialog containing ad error messages in a // scrollable list. Nothing is done if no errors occured. void ad_error_log(const QList<AdMessage> &messages, QWidget *parent); void ad_error_log(const AdInterface &ad, QWidget *parent); void error_log(const QList<QString> error_list, QWidget *parent); #endif /* STATUS_BAR_H */
2,041
C++
.h
57
33.438596
80
0.759635
altlinux/admc
36
14
14
GPL-3.0
9/20/2024, 10:44:59 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
1,538,809
settings.h
altlinux_admc/src/admc/settings.h
/* * ADMC - AD Management Center * * Copyright (C) 2020-2022 BaseALT Ltd. * Copyright (C) 2020-2022 Dmitry Degtyarev * * 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 SETTINGS_H #define SETTINGS_H /** * Utility f-ns for saving and loading settings using * QSettings. */ #include <QVariant> class QAction; class QVariant; class QWidget; class QHeaderView; class QDialog; class QObject; // NOTE: define setting names this way to guarantee that all // setting names are unique // const QString SETTING = "SETTING"; #define DEFINE_SETTING(SETTING) \ const QString SETTING = #SETTING; // Widget state DEFINE_SETTING(SETTING_main_window_state); DEFINE_SETTING(SETTING_attributes_tab_filter_state); DEFINE_SETTING(SETTING_console_widget_state); DEFINE_SETTING(SETTING_policy_results_state); DEFINE_SETTING(SETTING_policy_ou_results_state); DEFINE_SETTING(SETTING_inheritance_widget_state); DEFINE_SETTING(SETTING_find_results_state); DEFINE_SETTING(SETTING_console_filter_dialog_state); DEFINE_SETTING(SETTING_select_object_advanced_dialog_console_state); DEFINE_SETTING(SETTING_find_object_dialog_console_state); DEFINE_SETTING(SETTING_find_policy_dialog_console_state); // Widget geometry DEFINE_SETTING(SETTING_main_window_geometry); DEFINE_SETTING(SETTING_properties_dialog_geometry); DEFINE_SETTING(SETTING_console_filter_dialog_geometry); DEFINE_SETTING(SETTING_find_object_dialog_geometry); DEFINE_SETTING(SETTING_select_object_dialog_geometry); DEFINE_SETTING(SETTING_select_container_dialog_geometry); DEFINE_SETTING(SETTING_object_multi_dialog_geometry); DEFINE_SETTING(SETTING_connection_options_dialog_geometry); DEFINE_SETTING(SETTING_changelog_dialog_geometry); DEFINE_SETTING(SETTING_error_log_dialog_geometry); DEFINE_SETTING(SETTING_select_well_known_trustee_dialog_geometry); DEFINE_SETTING(SETTING_select_object_match_dialog_geometry); DEFINE_SETTING(SETTING_edit_query_item_dialog_geometry); DEFINE_SETTING(SETTING_create_user_dialog_geometry); DEFINE_SETTING(SETTING_create_group_dialog_geometry); DEFINE_SETTING(SETTING_create_computer_dialog_geometry); DEFINE_SETTING(SETTING_create_ou_dialog_geometry); DEFINE_SETTING(SETTING_rename_user_dialog_geometry); DEFINE_SETTING(SETTING_rename_group_dialog_geometry); DEFINE_SETTING(SETTING_rename_other_dialog_geometry); DEFINE_SETTING(SETTING_rename_policy_dialog_geometry); DEFINE_SETTING(SETTING_create_query_folder_dialog_geometry); DEFINE_SETTING(SETTING_create_query_item_dialog_geometry); DEFINE_SETTING(SETTING_edit_query_folder_dialog_geometry); DEFINE_SETTING(SETTING_password_dialog_geometry); DEFINE_SETTING(SETTING_create_policy_dialog_geometry); DEFINE_SETTING(SETTING_select_object_advanced_dialog_geometry); DEFINE_SETTING(SETTING_select_policy_dialog_geometry); DEFINE_SETTING(SETTING_filter_dialog_geometry); DEFINE_SETTING(SETTING_class_filter_dialog_geometry); DEFINE_SETTING(SETTING_logon_hours_dialog_geometry); DEFINE_SETTING(SETTING_logon_computers_dialog_geometry); DEFINE_SETTING(SETTING_bool_attribute_dialog_geometry); DEFINE_SETTING(SETTING_datetime_attribute_dialog_geometry); DEFINE_SETTING(SETTING_list_attribute_dialog_geometry); DEFINE_SETTING(SETTING_octet_attribute_dialog_geometry); DEFINE_SETTING(SETTING_string_attribute_dialog_geometry); DEFINE_SETTING(SETTING_number_attribute_dialog_geometry); DEFINE_SETTING(SETTING_hex_number_attribute_dialog_geometry); DEFINE_SETTING(SETTING_fsmo_dialog_geometry); DEFINE_SETTING(SETTING_create_shared_folder_dialog_geometry); DEFINE_SETTING(SETTING_create_contact_dialog_geometry); DEFINE_SETTING(SETTING_find_policy_dialog_geometry); DEFINE_SETTING(SETTING_time_span_attribute_dialog_geometry); // Header state DEFINE_SETTING(SETTING_results_header); DEFINE_SETTING(SETTING_find_results_header); DEFINE_SETTING(SETTING_attributes_tab_header_state); DEFINE_SETTING(SETTING_select_object_header_state); DEFINE_SETTING(SETTING_membership_tab_header_state); DEFINE_SETTING(SETTING_organization_tab_header_state); DEFINE_SETTING(SETTING_security_tab_header_state); DEFINE_SETTING(SETTING_select_object_match_header_state); // Bool DEFINE_SETTING(SETTING_advanced_features); DEFINE_SETTING(SETTING_confirm_actions); DEFINE_SETTING(SETTING_show_non_containers_in_console_tree); DEFINE_SETTING(SETTING_last_name_before_first_name); DEFINE_SETTING(SETTING_log_searches); DEFINE_SETTING(SETTING_timestamp_log); DEFINE_SETTING(SETTING_sasl_nocanon); DEFINE_SETTING(SETTING_show_login); DEFINE_SETTING(SETTING_show_password); DEFINE_SETTING(SETTING_domain_is_default); DEFINE_SETTING(SETTING_load_optional_attribute_values); // Other DEFINE_SETTING(SETTING_host); DEFINE_SETTING(SETTING_locale); DEFINE_SETTING(SETTING_query_folders); DEFINE_SETTING(SETTING_query_items); DEFINE_SETTING(SETTING_port); DEFINE_SETTING(SETTING_cert_strategy); DEFINE_SETTING(SETTING_last_opened_version); DEFINE_SETTING(SETTING_object_filter); DEFINE_SETTING(SETTING_object_filter_enabled); DEFINE_SETTING(SETTING_object_display_limit); DEFINE_SETTING(SETTING_custom_domain); DEFINE_SETTING(SETTING_current_icon_theme); DEFINE_SETTING(SETTING_custom_icon_themes_path) // Feature flags // // NOTE: this set of settings is not editable anywhere // within the app. Instead it should be manually edited // by hand in ADMC.conf. If you want to forcefully // enable it for a new version, set it manually in // main.cpp so that it overwrites default value as well // as any values defined in .conf file. DEFINE_SETTING(SETTING_feature_logon_computers); DEFINE_SETTING(SETTING_feature_profile_tab); DEFINE_SETTING(SETTING_feature_dev_mode); DEFINE_SETTING(SETTING_feature_current_locale_first); QVariant settings_get_variant(const QString setting); void settings_set_variant(const QString setting, const QVariant &value); // Does two things. First it restores previously saved // geometry, if it exists. Then it connects to dialogs // finished() signal so that it's geometry is saved when // dialog is finished. void settings_setup_dialog_geometry(const QString setting, QDialog *dialog); // NOTE: If setting is present, restore is performed, // otherwise f-n does nothing and returns false. You // should check for the return and perform default // sizing in the false case. bool settings_restore_geometry(const QString setting, QWidget *widget); void settings_save_header_state(const QString setting, QHeaderView *header); bool settings_restore_header_state(const QString setting, QHeaderView *header); #endif /* SETTINGS_H */
7,069
C++
.h
156
44.051282
79
0.821227
altlinux/admc
36
14
14
GPL-3.0
9/20/2024, 10:44:59 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
1,538,810
connection_options_dialog.h
altlinux_admc/src/admc/connection_options_dialog.h
/* * ADMC - AD Management Center * * Copyright (C) 2020-2022 BaseALT Ltd. * Copyright (C) 2020-2022 Dmitry Degtyarev * * 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 CONNECTION_OPTIONS_DIALOG_H #define CONNECTION_OPTIONS_DIALOG_H /** * Dialog that allows user to change connection options. */ #include <QDialog> #define CERT_STRATEGY_NEVER_define "never" namespace Ui { class ConnectionOptionsDialog; } class QStringList; class QString; class QVariant; class ConnectionOptionsDialog : public QDialog { Q_OBJECT public: Ui::ConnectionOptionsDialog *ui; ConnectionOptionsDialog(QWidget *parent); ~ConnectionOptionsDialog(); void accept() override; private: bool any_hosts_available; QStringList default_host_list; QString default_domain; QStringList custom_host_list; QString custom_domain; void load_default_options(); void set_saved_host_current_item(); private slots: void host_button_toggled(bool is_default_checked); void get_hosts(); signals: void host_changed(const QString &host); }; // Load connection options from settings and apply to // AdInterface void load_connection_options(const QHash<QString, QVariant> &settings = QHash<QString, QVariant>()); #endif /* CONNECTION_OPTIONS_DIALOG_H */
1,896
C++
.h
57
30.561404
100
0.763447
altlinux/admc
36
14
14
GPL-3.0
9/20/2024, 10:44:59 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
1,538,811
main_window_connection_error.h
altlinux_admc/src/admc/main_window_connection_error.h
/* * ADMC - AD Management Center * * Copyright (C) 2020-2022 BaseALT Ltd. * Copyright (C) 2020-2022 Dmitry Degtyarev * * 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 MAIN_WINDOW_PRE_H #define MAIN_WINDOW_PRE_H #include <QMainWindow> namespace Ui { class MainWindowConnectionError; } class MainWindowConnectionError final : public QMainWindow { Q_OBJECT public: Ui::MainWindowConnectionError *ui; MainWindowConnectionError(); ~MainWindowConnectionError(); private: void on_retry_button(); void open_connection_options(); }; #endif /* MAIN_WINDOW_PRE_H */
1,202
C++
.h
36
31
72
0.759931
altlinux/admc
36
14
14
GPL-3.0
9/20/2024, 10:44:59 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
1,538,812
about_dialog.h
altlinux_admc/src/admc/about_dialog.h
/* * ADMC - AD Management Center * * Copyright (C) 2020-2022 BaseALT Ltd. * Copyright (C) 2020-2022 Dmitry Degtyarev * * 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 ABOUT_DIALOG_H #define ABOUT_DIALOG_H /** * Dialog that contains current version text, a short * description and a copyright notice. */ #include <QDialog> namespace Ui { class AboutDialog; } class AboutDialog : public QDialog { Q_OBJECT public: Ui::AboutDialog *ui; AboutDialog(QWidget *parent); ~AboutDialog(); }; #endif /* ABOUT_DIALOG_H */
1,152
C++
.h
37
28.918919
72
0.747064
altlinux/admc
36
14
14
GPL-3.0
9/20/2024, 10:44:59 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
1,538,813
password_dialog.h
altlinux_admc/src/admc/password_dialog.h
/* * ADMC - AD Management Center * * Copyright (C) 2020-2022 BaseALT Ltd. * Copyright (C) 2020-2022 Dmitry Degtyarev * * 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 PASSWORD_DIALOG_H #define PASSWORD_DIALOG_H #include <QDialog> class AttributeEdit; class AdInterface; class QLineEdit; namespace Ui { class PasswordDialog; } // Accepts input of new password and changes password when done class PasswordDialog final : public QDialog { Q_OBJECT public: Ui::PasswordDialog *ui; PasswordDialog(AdInterface &ad, const QString &dn, QWidget *parent); ~PasswordDialog(); public slots: void accept(); private: QString target; QList<AttributeEdit *> edits; AttributeEdit *pass_expired_edit; QList<QLineEdit *> required_list; void on_edited(); }; #endif /* PASSWORD_DIALOG_H */
1,435
C++
.h
45
29.355556
72
0.75417
altlinux/admc
36
14
14
GPL-3.0
9/20/2024, 10:44:59 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
1,538,814
rename_object_helper.h
altlinux_admc/src/admc/rename_object_helper.h
/* * ADMC - AD Management Center * * Copyright (C) 2020-2022 BaseALT Ltd. * Copyright (C) 2020-2022 Dmitry Degtyarev * * 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 RENAME_OBJECT_HELPER_H #define RENAME_OBJECT_HELPER_H #include <QDialogButtonBox> #include <QObject> #include <QPushButton> class QLineEdit; class QDialog; class AttributeEdit; class AdInterface; class RenameObjectHelper : public QObject { Q_OBJECT public: RenameObjectHelper(AdInterface &ad, const QString &target_arg, QLineEdit *name_edit_arg, const QList<AttributeEdit *> &edits_arg, QDialog *parent_dialog, QList<QLineEdit *> required = QList<QLineEdit *>(), QDialogButtonBox *button_box = nullptr); static void success_msg(const QString &old_name); static void fail_msg(const QString &old_name); bool accept() const; QString get_new_name() const; QString get_new_dn() const; private slots: void on_edited(); private: QString target; QLineEdit *name_edit; QList<AttributeEdit *> edits; QDialog *parent_dialog; QList<QLineEdit *> required_list; QPushButton *ok_button; }; #endif /* RENAME_OBJECT_HELPER_H */
1,759
C++
.h
48
33.895833
250
0.750735
altlinux/admc
36
14
14
GPL-3.0
9/20/2024, 10:44:59 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
1,538,815
find_policy_dialog_p.h
altlinux_admc/src/admc/find_widgets/find_policy_dialog_p.h
/* * ADMC - AD Management Center * * Copyright (C) 2020-2022 BaseALT Ltd. * Copyright (C) 2020-2022 Dmitry Degtyarev * * 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 FIND_POLICY_DIALOG_P_H #define FIND_POLICY_DIALOG_P_H enum SearchItem { SearchItem_Name, SearchItem_GUID, }; #endif /* FIND_POLICY_DIALOG_P_H */
938
C++
.h
26
33.961538
72
0.750275
altlinux/admc
36
14
14
GPL-3.0
9/20/2024, 10:44:59 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
1,538,816
find_widget.h
altlinux_admc/src/admc/find_widgets/find_widget.h
/* * ADMC - AD Management Center * * Copyright (C) 2020-2022 BaseALT Ltd. * Copyright (C) 2020-2022 Dmitry Degtyarev * * 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 FIND_WIDGET_H #define FIND_WIDGET_H /** * Provides a way for user to find objects. FilterWidget is * used for filter input and FindResults for displaying * objects. Used by FindObjectDialog and SelectObjectDialog. */ #include <QWidget> class QStandardItem; class AdObject; class QMenu; class ObjectImpl; class ConsoleWidget; namespace Ui { class FindWidget; } class FindWidget final : public QWidget { Q_OBJECT public: Ui::FindWidget *ui; FindWidget(QWidget *parent = nullptr); ~FindWidget(); void set_classes(const QList<QString> &class_list, const QList<QString> &selected_list); void set_default_base(const QString &default_base); // NOTE: this is only for the console state, filter // widget is untouched QVariant save_console_state() const; void restore_console_state(const QVariant &state); void setup_action_menu(QMenu *menu); void setup_view_menu(QMenu *menu); void set_buddy_console(ConsoleWidget *buddy_console); // NOTE: returned items need to be re-parented or deleted! QList<QString> get_selected_dns() const; void enable_filtering_all_classes(); private slots: void find(); void handle_find_thread_results(const QHash<QString, AdObject> &results); private: ObjectImpl *object_impl; QStandardItem *head_item; QAction *action_view_icons; QAction *action_view_list; QAction *action_view_detail; QAction *action_customize_columns; QAction *action_toggle_description_bar; void on_clear_button(); void clear_results(); }; #endif /* FIND_WIDGET_H */
2,370
C++
.h
68
31.661765
92
0.744196
altlinux/admc
36
14
14
GPL-3.0
9/20/2024, 10:44:59 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
1,538,817
find_policy_dialog.h
altlinux_admc/src/admc/find_widgets/find_policy_dialog.h
/* * ADMC - AD Management Center * * Copyright (C) 2020-2022 BaseALT Ltd. * Copyright (C) 2020-2022 Dmitry Degtyarev * * 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 FIND_POLICY_DIALOG_H #define FIND_POLICY_DIALOG_H /** * Find policy objects and perform actions on them. */ #include <QDialog> class QStandardItem; class AdObject; class ConsoleWidget; namespace Ui { class FindPolicyDialog; } class FindPolicyDialog final : public QDialog { Q_OBJECT public: Ui::FindPolicyDialog *ui; FindPolicyDialog(ConsoleWidget *console_widget, QWidget *parent); ~FindPolicyDialog(); private: QStandardItem *head_item; void add_filter(); void find(); void handle_search_thread_results(const QHash<QString, AdObject> &results); void clear_results(); }; #endif /* FIND_POLICY_DIALOG_H */
1,437
C++
.h
45
29.444444
79
0.753802
altlinux/admc
36
14
14
GPL-3.0
9/20/2024, 10:44:59 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
1,538,818
find_object_dialog.h
altlinux_admc/src/admc/find_widgets/find_object_dialog.h
/* * ADMC - AD Management Center * * Copyright (C) 2020-2022 BaseALT Ltd. * Copyright (C) 2020-2022 Dmitry Degtyarev * * 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 FIND_OBJECT_DIALOG_H #define FIND_OBJECT_DIALOG_H /** * Find objects and perform actions on them. */ #include <QDialog> class ConsoleWidget; namespace Ui { class FindObjectDialog; } class FindObjectDialog final : public QDialog { Q_OBJECT public: Ui::FindObjectDialog *ui; FindObjectDialog(ConsoleWidget *buddy_console, const QString &default_base, QWidget *parent); ~FindObjectDialog(); }; #endif /* FIND_OBJECT_DIALOG_H */
1,234
C++
.h
37
31.135135
97
0.757576
altlinux/admc
36
14
14
GPL-3.0
9/20/2024, 10:44:59 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
1,538,819
icon_manager.h
altlinux_admc/src/admc/icon_manager/icon_manager.h
#ifndef ICON_MANAGER_H #define ICON_MANAGER_H #include "ad_defines.h" #include <QObject> #include <QIcon> #include <QMap> #include <QSize> #include <QLocale> enum ItemIconType { ItemIconType_Policy_Clean, ItemIconType_OU_Clean, ItemIconType_OU_InheritanceBlocked, ItemIconType_Policy_Link, ItemIconType_Policy_Link_Disabled, ItemIconType_Policy_Enforced, ItemIconType_Policy_Enforced_Disabled, ItemIconType_Domain_Clean, ItemIconType_Domain_InheritanceBlocked, ItemIconType_Person_Clean, ItemIconType_Person_Blocked, ItemIconType_Site_Clean, // ItemIconType_Container_Clean, // ItemIconType_Configuration, // ItemIconType_Settings, ItemIconType_Computer_Clean, ItemIconType_Computer_Blocked, ItemIconType_Group_Clean, ItemIconType_LAST }; class AdObject; class QAction; template <typename T, typename U> class QMap; class ConsoleWidget; class IconManager final { public: const QString search_indicator = "search-indicator"; const QString warning_indicator = "warning-indicator"; const QString link_indicator = "link-indicator"; const QString block_indicator = "block-indicator"; const QString enforced_indicator = "enforced-indicator"; const QString inheritance_indicator = "inheritance-indicator"; const QSize max_icon_size = QSize(64, 64); explicit IconManager(); void init(QMap<QString, QAction*> category_action_map); const QIcon& get_icon_for_type(ItemIconType icon_type) const; QIcon get_object_icon(const AdObject &object) const; QIcon get_object_icon(const QString& object_category) const; QIcon get_indicator_icon(const QString &indicator_icon_name) const; void set_theme(const QString &icons_theme); // Adds actions and their categories for further update. // NOTE: Categories may not correspond objectCategory object attribute, // for example, query folder and query items are not AD objects void append_actions(const QMap<QString, QAction*> &categorized_actions); QStringList get_available_themes(); QString get_localized_theme_name(const QLocale locale, const QString &theme); private: QIcon type_index_icons_array[ItemIconType_LAST]; QMap<QString, QList<QString>> category_to_icon_list; QMap<QString, QList<QString>> indicator_map; QMap<QString, QAction*> category_action_map; QString error_icon; const QString fallback_icon_name = "fallback"; QString theme; // system_theme field contains current system theme // name that may not be fallback. QString system_theme; const QString system_icons_dir_path = "/usr/share/icons"; //Enums positions where scope item icon can be overlayed //by another icon enum IconOverlayPosition { IconOverlayPosition_TopLeft, IconOverlayPosition_BottomLeft, IconOverlayPosition_TopRight, IconOverlayPosition_BottomRight }; QIcon overlay_scope_item_icon(const QIcon &clean_icon, const QIcon &overlay_icon, IconOverlayPosition position = IconOverlayPosition_BottomRight) const; QIcon overlay_scope_item_icon(const QIcon &clean_icon, const QIcon &overlay_icon, const QSize &clean_icon_size, const QSize &overlay_icon_size, const QPoint &pos) const; void update_icons_array(); void update_action_icons(); }; #endif // ICON_MANAGER_H
3,442
C++
.h
84
35.761905
115
0.736369
altlinux/admc
36
14
14
GPL-3.0
9/20/2024, 10:44:59 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
1,538,820
select_container_dialog.h
altlinux_admc/src/admc/select_dialogs/select_container_dialog.h
/* * ADMC - AD Management Center * * Copyright (C) 2020-2022 BaseALT Ltd. * Copyright (C) 2020-2022 Dmitry Degtyarev * * 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 SELECT_CONTAINER_DIALOG_H #define SELECT_CONTAINER_DIALOG_H /** * Displays a tree of container objects, similarly to * Containers widget. User can selected a container. */ #include <QDialog> class QTreeView; class QStandardItemModel; class QSortFilterProxyModel; class AdInterface; namespace Ui { class SelectContainerDialog; } enum ContainerRole { ContainerRole_DN = Qt::UserRole + 1, ContainerRole_Fetched = Qt::UserRole + 2, }; class SelectContainerDialog : public QDialog { Q_OBJECT public: Ui::SelectContainerDialog *ui; SelectContainerDialog(AdInterface &ad, QWidget *parent); ~SelectContainerDialog(); QString get_selected() const; private: QStandardItemModel *model; QSortFilterProxyModel *proxy_model; void fetch_node(const QModelIndex &proxy_index); void on_item_expanded(const QModelIndex &index); }; #endif /* SELECT_CONTAINER_DIALOG_H */
1,693
C++
.h
51
30.666667
72
0.764886
altlinux/admc
36
14
14
GPL-3.0
9/20/2024, 10:44:59 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
1,538,821
select_policy_dialog.h
altlinux_admc/src/admc/select_dialogs/select_policy_dialog.h
/* * ADMC - AD Management Center * * Copyright (C) 2020-2022 BaseALT Ltd. * Copyright (C) 2020-2022 Dmitry Degtyarev * * 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 SELECT_POLICY_DIALOG_H #define SELECT_POLICY_DIALOG_H #include <QDialog> class QStandardItemModel; class AdInterface; namespace Ui { class SelectPolicyDialog; } class SelectPolicyDialog final : public QDialog { Q_OBJECT public: Ui::SelectPolicyDialog *ui; SelectPolicyDialog(AdInterface &ad, QWidget *parent); ~SelectPolicyDialog(); QList<QString> get_selected_dns() const; private: QStandardItemModel *model; }; #endif /* SELECT_POLICY_DIALOG_H */
1,265
C++
.h
38
30.921053
72
0.763353
altlinux/admc
36
14
14
GPL-3.0
9/20/2024, 10:44:59 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
1,538,822
select_object_dialog.h
altlinux_admc/src/admc/select_dialogs/select_object_dialog.h
/* * ADMC - AD Management Center * * Copyright (C) 2020-2022 BaseALT Ltd. * Copyright (C) 2020-2022 Dmitry Degtyarev * * 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 SELECT_OBJECT_DIALOG_H #define SELECT_OBJECT_DIALOG_H #include <QDialog> class QStandardItemModel; class AdObject; class AdInterface; namespace Ui { class SelectObjectDialog; } enum SelectObjectDialogMultiSelection { SelectObjectDialogMultiSelection_Yes, SelectObjectDialogMultiSelection_No }; struct SelectedObjectData { QString dn; QString category; }; class SelectObjectDialog final : public QDialog { Q_OBJECT public: Ui::SelectObjectDialog *ui; SelectObjectDialog(const QList<QString> class_list_arg, const SelectObjectDialogMultiSelection multi_selection_arg, QWidget *parent); ~SelectObjectDialog(); static QList<QString> header_labels(); QList<QString> get_selected() const; QList<SelectedObjectData> get_selected_advanced() const; public slots: void accept() override; private: QStandardItemModel *model; QList<QString> class_list; SelectObjectDialogMultiSelection multi_selection; void on_add_button(); void on_remove_button(); void add_objects_to_list(const QList<QString> &dn_list); void add_objects_to_list(const QList<QString> &dn_list, AdInterface &ad); void open_advanced_dialog(); }; void add_select_object_to_model(QStandardItemModel *model, const AdObject &object); #endif /* SELECT_OBJECT_DIALOG_H */
2,099
C++
.h
59
32.644068
137
0.769269
altlinux/admc
36
14
14
GPL-3.0
9/20/2024, 10:44:59 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
1,538,823
select_object_advanced_dialog.h
altlinux_admc/src/admc/select_dialogs/select_object_advanced_dialog.h
/* * ADMC - AD Management Center * * Copyright (C) 2020-2022 BaseALT Ltd. * Copyright (C) 2020-2022 Dmitry Degtyarev * * 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 SELECT_OBJECT_ADVANCED_DIALOG_H #define SELECT_OBJECT_ADVANCED_DIALOG_H /** * Find objects and select them. */ #include <QDialog> namespace Ui { class SelectObjectAdvancedDialog; } class SelectObjectAdvancedDialog final : public QDialog { Q_OBJECT public: Ui::SelectObjectAdvancedDialog *ui; SelectObjectAdvancedDialog(const QList<QString> classes, QWidget *parent); ~SelectObjectAdvancedDialog(); QList<QString> get_selected_dns() const; }; #endif /* SELECT_OBJECT_ADVANCED_DIALOG_H */
1,300
C++
.h
37
32.810811
78
0.764753
altlinux/admc
36
14
14
GPL-3.0
9/20/2024, 10:44:59 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
1,538,824
select_object_match_dialog.h
altlinux_admc/src/admc/select_dialogs/select_object_match_dialog.h
/* * ADMC - AD Management Center * * Copyright (C) 2020-2022 BaseALT Ltd. * Copyright (C) 2020-2022 Dmitry Degtyarev * * 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 SELECT_OBJECT_MATCH_DIALOG_H #define SELECT_OBJECT_MATCH_DIALOG_H /** * Dialog for selecting from multiple matches in select * object dialog. */ #include <QDialog> class AdObject; class QStandardItemModel; namespace Ui { class SelectObjectMatchDialog; } class SelectObjectMatchDialog final : public QDialog { Q_OBJECT public: Ui::SelectObjectMatchDialog *ui; SelectObjectMatchDialog(const QHash<QString, AdObject> &search_results, QWidget *parent); ~SelectObjectMatchDialog(); QList<QString> get_selected() const; private: QStandardItemModel *model; }; #endif /* SELECT_OBJECT_MATCH_DIALOG_H */
1,415
C++
.h
42
31.357143
93
0.767254
altlinux/admc
36
14
14
GPL-3.0
9/20/2024, 10:44:59 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
1,538,825
properties_multi_dialog.h
altlinux_admc/src/admc/properties_widgets/properties_multi_dialog.h
/* * ADMC - AD Management Center * * Copyright (C) 2020-2022 BaseALT Ltd. * Copyright (C) 2020-2022 Dmitry Degtyarev * * 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 PROPERTIES_MULTI_DIALOG_H #define PROPERTIES_MULTI_DIALOG_H /** * Properties dialog for editing attributes of multiple * objects at the same time. Only editing, attribute values * aren't displayed. For most objects the only attribute is * description. Only users have many tabs/attributes. */ #include <QDialog> class AttributeEdit; class AdInterface; class QCheckBox; namespace Ui { class PropertiesMultiDialog; } class PropertiesMultiDialog final : public QDialog { Q_OBJECT public: Ui::PropertiesMultiDialog *ui; PropertiesMultiDialog(AdInterface &ad, const QList<QString> &target_list_arg, const QList<QString> &class_list); ~PropertiesMultiDialog(); signals: void applied(); private slots: void accept() override; void on_edited(); private: QList<QString> target_list; QList<AttributeEdit *> edit_list; QHash<AttributeEdit *, QCheckBox *> check_map; QPushButton *apply_button; bool apply(); }; #endif /* PROPERTIES_MULTI_DIALOG_H */
1,786
C++
.h
53
31.113208
116
0.758721
altlinux/admc
36
14
14
GPL-3.0
9/20/2024, 10:44:59 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
1,538,826
properties_dialog.h
altlinux_admc/src/admc/properties_widgets/properties_dialog.h
/* * ADMC - AD Management Center * * Copyright (C) 2020-2022 BaseALT Ltd. * Copyright (C) 2020-2022 Dmitry Degtyarev * * 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 PROPERTIES_DIALOG_H #define PROPERTIES_DIALOG_H /** * Shows info about object's attributes in multiple tabs. * Targeted at a particular object. Normally, a new dialog * is opened for each target. If a dialog is already opened * for selected target, it is focused. */ #include <QDialog> class PropertiesTab; class QAbstractItemView; class QPushButton; class AttributesTab; class AdInterface; class AdObject; class PropertiesWarningDialog; class AttributeEdit; class SecurityTab; class ConsoleWidget; namespace Ui { class PropertiesDialog; } class PropertiesDialog final : public QDialog { Q_OBJECT public: Ui::PropertiesDialog *ui; static QHash<QString, PropertiesDialog *> instances; // "dialog_is_new" flag is set to true if this is a // newly created dialog and false if a dialog was // already open for given target and reused. Use to know // whether to connect to applied() signal static PropertiesDialog *open_for_target(AdInterface &ad, const QString &target, bool *dialog_is_new = nullptr, ConsoleWidget *console = nullptr); static void open_when_view_item_activated(QAbstractItemView *view, const int dn_role); ~PropertiesDialog(); signals: // Emitted when changes are applide via apply or ok // button void applied(); private slots: void accept() override; void done(int r) override; void apply(); void reset(); private: QList<AttributeEdit *> edit_list; QList<AttributeEdit *> apply_list; QString target; QPushButton *apply_button; QPushButton *reset_button; AttributesTab *attributes_tab; PropertiesWarningDialog *warning_dialog; bool security_warning_was_rejected; SecurityTab *security_tab; // NOTE: ctor is private, use open_for_target() instead PropertiesDialog(AdInterface &ad, const QString &target_arg, ConsoleWidget *console); bool apply_internal(AdInterface &ad); void reset_internal(AdInterface &ad, const AdObject &object); void on_current_tab_changed(const int prev, const int current); void open_security_warning(); void on_security_warning_accepted(); void on_security_warning_rejected(); }; #endif /* PROPERTIES_DIALOG_H */
2,989
C++
.h
82
33.317073
150
0.752335
altlinux/admc
36
14
14
GPL-3.0
9/20/2024, 10:44:59 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
1,538,827
properties_warning_dialog.h
altlinux_admc/src/admc/properties_widgets/properties_warning_dialog.h
/* * ADMC - AD Management Center * * Copyright (C) 2020-2022 BaseALT Ltd. * Copyright (C) 2020-2022 Dmitry Degtyarev * * 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 PROPERTIES_WARNING_DIALOG_H #define PROPERTIES_WARNING_DIALOG_H /** * Dialog which opens when switching to/from attributes tab * while there are un-applied changes. Let's user choose * whether to apply changes and move to new tab or stay on * current tab. */ #include <QDialog> enum PropertiesWarningType { PropertiesWarningType_SwitchToAttributes, PropertiesWarningType_SwitchFromAttributes, }; namespace Ui { class PropertiesWarningDialog; } class PropertiesWarningDialog final : public QDialog { Q_OBJECT public: Ui::PropertiesWarningDialog *ui; PropertiesWarningDialog(const PropertiesWarningType type, QWidget *parent); ~PropertiesWarningDialog(); signals: void applied(); void discarded(); private: void on_apply_button(); void on_discard_button(); }; #endif /* PROPERTIES_WARNING_DIALOG_H */
1,637
C++
.h
49
30.897959
79
0.76728
altlinux/admc
36
14
14
GPL-3.0
9/20/2024, 10:44:59 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
1,538,828
attribute_dialog.h
altlinux_admc/src/admc/attribute_dialogs/attribute_dialog.h
/* * ADMC - AD Management Center * * Copyright (C) 2020-2022 BaseALT Ltd. * Copyright (C) 2020-2022 Dmitry Degtyarev * * 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 ATTRIBUTE_DIALOG_H #define ATTRIBUTE_DIALOG_H #include <QDialog> class QLabel; /** * Dialog for viewing and editing attribute values. */ class AttributeDialog : public QDialog { Q_OBJECT public: static AttributeDialog *make(const QString &attribute, const QList<QByteArray> &value_list, const bool read_only, const bool single_valued, QWidget *parent); AttributeDialog(const QString &attribute, const bool read_only, QWidget *parent); QString get_attribute() const; bool get_read_only() const; // Returns current value list, which includes // modifications made by the user virtual QList<QByteArray> get_value_list() const = 0; protected: // Load text of attribute label based on attribute void load_attribute_label(QLabel *attribute_label); private: QString m_attribute; bool m_read_only; }; #endif /* ATTRIBUTE_DIALOG_H */
1,669
C++
.h
44
35.113636
161
0.751395
altlinux/admc
36
14
14
GPL-3.0
9/20/2024, 10:44:59 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
1,538,829
number_attribute_dialog.h
altlinux_admc/src/admc/attribute_dialogs/number_attribute_dialog.h
/* * ADMC - AD Management Center * * Copyright (C) 2020-2022 BaseALT Ltd. * Copyright (C) 2020-2022 Dmitry Degtyarev * * 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 NUMBER_ATTRIBUTE_DIALOG_H #define NUMBER_ATTRIBUTE_DIALOG_H #include "attribute_dialogs/attribute_dialog.h" namespace Ui { class NumberAttributeDialog; } class NumberAttributeDialog final : public AttributeDialog { Q_OBJECT public: Ui::NumberAttributeDialog *ui; NumberAttributeDialog(const QList<QByteArray> &value_list, const QString &attribute, const bool read_only, QWidget *parent); ~NumberAttributeDialog(); QList<QByteArray> get_value_list() const override; }; #endif /* NUMBER_ATTRIBUTE_DIALOG_H */
1,317
C++
.h
34
36.382353
128
0.768627
altlinux/admc
36
14
14
GPL-3.0
9/20/2024, 10:44:59 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
1,538,830
octet_attribute_dialog.h
altlinux_admc/src/admc/attribute_dialogs/octet_attribute_dialog.h
/* * ADMC - AD Management Center * * Copyright (C) 2020-2022 BaseALT Ltd. * Copyright (C) 2020-2022 Dmitry Degtyarev * * 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 OCTET_ATTRIBUTE_DIALOG_H #define OCTET_ATTRIBUTE_DIALOG_H #include "attribute_dialogs/attribute_dialog.h" enum OctetDisplayFormat { OctetDisplayFormat_Hexadecimal = 0, OctetDisplayFormat_Binary, OctetDisplayFormat_Decimal, OctetDisplayFormat_Octal, }; namespace Ui { class OctetAttributeDialog; } class OctetAttributeDialog final : public AttributeDialog { Q_OBJECT public: Ui::OctetAttributeDialog *ui; OctetAttributeDialog(const QList<QByteArray> &value_list, const QString &attribute, const bool read_only, QWidget *parent); ~OctetAttributeDialog(); QList<QByteArray> get_value_list() const override; void accept() override; private: OctetDisplayFormat prev_format; bool check_input(const OctetDisplayFormat format); void on_format_combo(); }; QString octet_bytes_to_string(const QByteArray bytes, const OctetDisplayFormat format); QByteArray octet_string_to_bytes(const QString string, const OctetDisplayFormat format); #endif /* OCTET_ATTRIBUTE_DIALOG_H */
1,808
C++
.h
47
35.723404
127
0.776444
altlinux/admc
36
14
14
GPL-3.0
9/20/2024, 10:44:59 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
1,538,831
bool_attribute_dialog.h
altlinux_admc/src/admc/attribute_dialogs/bool_attribute_dialog.h
/* * ADMC - AD Management Center * * Copyright (C) 2020-2022 BaseALT Ltd. * Copyright (C) 2020-2022 Dmitry Degtyarev * * 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 BOOL_EDITOR_H #define BOOL_EDITOR_H #include "attribute_dialogs/attribute_dialog.h" namespace Ui { class BoolAttributeDialog; } class BoolAttributeDialog final : public AttributeDialog { Q_OBJECT public: Ui::BoolAttributeDialog *ui; BoolAttributeDialog(const QList<QByteArray> &value_list, const QString &attribute, const bool read_only, QWidget *parent); ~BoolAttributeDialog(); QList<QByteArray> get_value_list() const override; }; #endif /* BOOL_EDITOR_H */
1,271
C++
.h
34
35.029412
126
0.762408
altlinux/admc
36
14
14
GPL-3.0
9/20/2024, 10:44:59 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
1,538,832
string_attribute_dialog.h
altlinux_admc/src/admc/attribute_dialogs/string_attribute_dialog.h
/* * ADMC - AD Management Center * * Copyright (C) 2020-2022 BaseALT Ltd. * Copyright (C) 2020-2022 Dmitry Degtyarev * * 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 STRING_ATTRIBUTE_DIALOG_H #define STRING_ATTRIBUTE_DIALOG_H #include "attribute_dialogs/attribute_dialog.h" namespace Ui { class StringAttributeDialog; } class StringAttributeDialog final : public AttributeDialog { Q_OBJECT public: Ui::StringAttributeDialog *ui; StringAttributeDialog(const QList<QByteArray> &value_list, const QString &attribute, const bool read_only, QWidget *parent); ~StringAttributeDialog(); QList<QByteArray> get_value_list() const override; }; #endif /* STRING_ATTRIBUTE_DIALOG_H */
1,317
C++
.h
34
36.382353
128
0.768627
altlinux/admc
36
14
14
GPL-3.0
9/20/2024, 10:44:59 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
1,538,833
list_attribute_dialog.h
altlinux_admc/src/admc/attribute_dialogs/list_attribute_dialog.h
/* * ADMC - AD Management Center * * Copyright (C) 2020-2022 BaseALT Ltd. * Copyright (C) 2020-2022 Dmitry Degtyarev * * 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 LIST_ATTRIBUTE_DIALOG_H #define LIST_ATTRIBUTE_DIALOG_H #include "attribute_dialogs/attribute_dialog.h" class QListWidgetItem; enum ListAttributeDialogType { ListAttributeDialogType_String, ListAttributeDialogType_Octet, ListAttributeDialogType_Datetime, }; namespace Ui { class ListAttributeDialog; } class ListAttributeDialog final : public AttributeDialog { Q_OBJECT public: Ui::ListAttributeDialog *ui; ListAttributeDialog(const QList<QByteArray> &value_list, const QString &attribute, const bool read_only, QWidget *parent); ~ListAttributeDialog(); void accept() override; QList<QByteArray> get_value_list() const override; // Sets max length for input of individual values // of the list attribute, if it's of string type. // Note that this *does not* apply to the list // attribute itself. By default the limit from // schema is used, but most list attributes are // unlimited. void set_value_max_length(const int max_length); private: int max_length; void on_add_button(); void on_remove_button(); void add_value(const QByteArray value); QString bytes_to_string(const QByteArray bytes) const; QByteArray string_to_bytes(const QString string) const; ListAttributeDialogType get_type() const; void add_values_from_editor(AttributeDialog *editor); void edit_values_from_editor(AttributeDialog *editor); }; #endif /* LIST_ATTRIBUTE_DIALOG_H */
2,244
C++
.h
58
35.413793
126
0.755985
altlinux/admc
36
14
14
GPL-3.0
9/20/2024, 10:44:59 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
1,538,834
time_span_attribute_dialog.h
altlinux_admc/src/admc/attribute_dialogs/time_span_attribute_dialog.h
/* * ADMC - AD Management Center * * Copyright (C) 2023 BaseALT Ltd. * * 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 TIME_SPAN_ATTRIBUTE_DIALOG_H #define TIME_SPAN_ATTRIBUTE_DIALOG_H #include <QDialog> #include "attribute_dialogs/attribute_dialog.h" namespace Ui { class TimeSpanAttributeDialog; } class TimeSpanAttributeDialog final : public AttributeDialog { Q_OBJECT public: explicit TimeSpanAttributeDialog(const QList<QByteArray> &value_list, const QString &attribute, const bool read_only, QWidget *parent); ~TimeSpanAttributeDialog(); QList<QByteArray> get_value_list() const override; private: Ui::TimeSpanAttributeDialog *ui; }; #endif // TIME_SPAN_ATTRIBUTE_DIALOG_H
1,322
C++
.h
35
35.457143
139
0.773083
altlinux/admc
36
14
14
GPL-3.0
9/20/2024, 10:44:59 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
1,538,835
datetime_attribute_dialog.h
altlinux_admc/src/admc/attribute_dialogs/datetime_attribute_dialog.h
/* * ADMC - AD Management Center * * Copyright (C) 2020-2022 BaseALT Ltd. * Copyright (C) 2020-2022 Dmitry Degtyarev * * 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 DATETIME_ATTRIBUTE_DIALOG_H #define DATETIME_ATTRIBUTE_DIALOG_H #include "attribute_dialogs/attribute_dialog.h" namespace Ui { class DatetimeAttributeDialog; } class DatetimeAttributeDialog final : public AttributeDialog { Q_OBJECT public: Ui::DatetimeAttributeDialog *ui; DatetimeAttributeDialog(const QList<QByteArray> &value_list, const QString &attribute, const bool read_only, QWidget *parent); ~DatetimeAttributeDialog(); QList<QByteArray> get_value_list() const override; }; #endif /* DATETIME_ATTRIBUTE_DIALOG_H */
1,333
C++
.h
34
36.852941
130
0.771495
altlinux/admc
36
14
14
GPL-3.0
9/20/2024, 10:44:59 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
1,538,836
hex_number_attribute_dialog.h
altlinux_admc/src/admc/attribute_dialogs/hex_number_attribute_dialog.h
/* * ADMC - AD Management Center * * Copyright (C) 2023 BaseALT Ltd. * * 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 HEX_NUMBER_ATTRIBUTE_DIALOG_H #define HEX_NUMBER_ATTRIBUTE_DIALOG_H #include "attribute_dialogs/attribute_dialog.h" namespace Ui { class HexNumberAttributeDialog; } class HexNumberAttributeDialog final : public AttributeDialog { Q_OBJECT public: HexNumberAttributeDialog(const QList<QByteArray> &value_list, const QString &attribute, const bool read_only, QWidget *parent); ~HexNumberAttributeDialog(); QList<QByteArray> get_value_list() const override; private: Ui::HexNumberAttributeDialog *ui; }; #endif // HEX_NUMBER_ATTRIBUTE_DIALOG_H
1,301
C++
.h
34
35.941176
131
0.77363
altlinux/admc
36
14
14
GPL-3.0
9/20/2024, 10:44:59 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
1,538,837
find_policy_impl.h
altlinux_admc/src/admc/console_impls/find_policy_impl.h
/* * ADMC - AD Management Center * * Copyright (C) 2020-2022 BaseALT Ltd. * Copyright (C) 2020-2022 Dmitry Degtyarev * * 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 FIND_POLICY_IMPL_H #define FIND_POLICY_IMPL_H /** * Impl for root of the find tree in FindPolicyDialog. */ #include "console_widget/console_impl.h" class AdObject; enum FindPolicyColumn { FindPolicyColumn_Name, FindPolicyColumn_GUID, FindPolicyColumn_COUNT, }; class FindPolicyImpl final : public ConsoleImpl { Q_OBJECT public: FindPolicyImpl(ConsoleWidget *console_arg); QString get_description(const QModelIndex &index) const override; QList<QString> column_labels() const override; QList<int> default_columns() const override; }; QModelIndex get_find_policy_root(ConsoleWidget *console); #endif /* FIND_POLICY_IMPL_H */
1,451
C++
.h
41
32.829268
72
0.761803
altlinux/admc
36
14
14
GPL-3.0
9/20/2024, 10:44:59 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
1,538,838
domain_info_impl.h
altlinux_admc/src/admc/console_impls/domain_info_impl.h
/* * ADMC - AD Management Center * * Copyright (C) 2020-2023 BaseALT Ltd. * * 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 DOMAININFOIMPL_H #define DOMAININFOIMPL_H /** * Impl for root domain info item in the scope tree */ #include "console_widget/console_impl.h" class ConsoleWidget; class QModelIndex; template <typename T> class QList; class DomainInfoResultsWidget; class AdInterface; class DomainInfoImpl : public ConsoleImpl { Q_OBJECT public: explicit DomainInfoImpl(ConsoleWidget *console_arg); void selected_as_scope(const QModelIndex &index); void refresh(const QList<QModelIndex> &index_list) override; virtual QList<QAction *> get_all_custom_actions() const; QSet<QAction *> get_custom_actions(const QModelIndex &index, const bool single_selection) const override; QSet<StandardAction> get_standard_actions(const QModelIndex &index, const bool single_selection) const override; QList<QString> column_labels() const override; void load_domain_info_item(const AdInterface &ad); private: QAction *edit_fsmo_action; QAction *connection_options_action; DomainInfoResultsWidget *domain_info_results_widget; void open_fsmo_dialog(); void open_connection_options(); }; #endif // DOMAININFOIMPL_H
1,888
C++
.h
49
35.693878
116
0.769189
altlinux/admc
36
14
14
GPL-3.0
9/20/2024, 10:44:59 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
1,538,839
policy_ou_impl.h
altlinux_admc/src/admc/console_impls/policy_ou_impl.h
/* * ADMC - AD Management Center * * Copyright (C) 2020-2022 BaseALT Ltd. * Copyright (C) 2020-2022 Dmitry Degtyarev * * 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 POLICY_OU_IMPL_H #define POLICY_OU_IMPL_H /** * Impl for OU's in policy tree. Different from OU's in * object tree because in policy tree OU's have as children * only other OU's and GPO's that are linked to them. OU's * in policy tree also have different actions. Domain object * in policy tree also uses this impl even though it's not * an OU. */ #include "ad_interface.h" #include "console_impls/my_console_role.h" #include "console_widget/console_impl.h" enum PolicyOURole { PolicyOURole_DN = MyConsoleRole_LAST + 1, PolicyOURole_Gplink_String, PolicyOURole_Inheritance_Block, PolicyOURole_LAST, }; class AdInterface; class AdObject; class PolicyOUResultsWidget; class Gplink; class PolicyOUImpl final : public ConsoleImpl { Q_OBJECT public: PolicyOUImpl(ConsoleWidget *console_arg); void selected_as_scope(const QModelIndex &index) override; void fetch(const QModelIndex &index) override; bool can_drop(const QList<QPersistentModelIndex> &dropped_list, const QSet<int> &dropped_type_list, const QPersistentModelIndex &target, const int target_type) override; void drop(const QList<QPersistentModelIndex> &dropped_list, const QSet<int> &dropped_type_list, const QPersistentModelIndex &target, const int target_type) override; void refresh(const QList<QModelIndex> &index_list) override; void activate(const QModelIndex &index) override; QList<QAction *> get_all_custom_actions() const override; QSet<QAction *> get_custom_actions(const QModelIndex &index, const bool single_selection) const override; QSet<StandardAction> get_standard_actions(const QModelIndex &index, const bool single_selection) const override; QList<QString> column_labels() const override; QList<int> default_columns() const override; void rename(const QList<QModelIndex> &index_list) override; void properties(const QList<QModelIndex> &index_list) override; void delete_action(const QList<QModelIndex> &index_list) override; private: PolicyOUResultsWidget *policy_ou_results_widget; QAction *create_ou_action; QAction *create_and_link_gpo_action; QAction *link_gpo_action; QAction *find_gpo_action; mutable QAction *change_gp_options_action; void create_ou(); void create_and_link_gpo(); void link_gpo(); void link_gpo_to_ou(const QModelIndex &ou_index, const QString &ou_dn, const QList<QString> &gpo_list); void find_gpo(); void change_gp_options(); void update_gp_options_check_state() const; }; void policy_ou_impl_load_row(const QList<QStandardItem *> row, const AdObject &object); void policy_ou_impl_add_objects_from_dns(ConsoleWidget *console, AdInterface &ad, const QList<QString> &dn_list, const QModelIndex &parent); void policy_ou_impl_add_objects_to_console(ConsoleWidget *console, const QList<AdObject> &object_list, const QModelIndex &parent); void policy_ou_impl_load_item_data(QStandardItem *item, const AdObject &object); //Get policy index for a given parent that is not in All policies folder. //It is applied to exclude policy items from All policies folder //those can be found first QModelIndex get_ou_child_policy_index(ConsoleWidget *console, const QModelIndex &ou_index, const QString &policy_dn); //Searches OU's index with given dn under "Group policy objects" item QModelIndex search_gpo_ou_index(ConsoleWidget *console, const QString &ou_dn); void update_ou_item_gplink_data(const QString &gplink, const QModelIndex &ou_index, ConsoleWidget *console); #endif /* POLICY_OU_IMPL_H */
4,328
C++
.h
87
46.712644
173
0.766169
altlinux/admc
36
14
14
GPL-3.0
9/20/2024, 10:44:59 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
1,538,840
policy_root_impl.h
altlinux_admc/src/admc/console_impls/policy_root_impl.h
/* * ADMC - AD Management Center * * Copyright (C) 2020-2022 BaseALT Ltd. * Copyright (C) 2020-2022 Dmitry Degtyarev * * 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 POLICY_ROOT_IMPL_H #define POLICY_ROOT_IMPL_H /** * Impl for the root of the policy tree which contains the * root of the domain and "All policies" folder. */ #include "console_widget/console_impl.h" #include "console_widget/console_widget.h" class PolicyRootImpl final : public ConsoleImpl { Q_OBJECT public: PolicyRootImpl(ConsoleWidget *console_arg); void fetch(const QModelIndex &index) override; void refresh(const QList<QModelIndex> &index_list) override; QSet<StandardAction> get_standard_actions(const QModelIndex &index, const bool single_selection) const override; QList<QString> column_labels() const override; QList<int> default_columns() const override; }; void console_policy_tree_init(ConsoleWidget *console); QModelIndex get_policy_tree_root(ConsoleWidget *console); #endif /* POLICY_ROOT_IMPL_H */
1,638
C++
.h
40
38.475
116
0.764484
altlinux/admc
36
14
14
GPL-3.0
9/20/2024, 10:44:59 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
1,538,841
all_policies_folder_impl.h
altlinux_admc/src/admc/console_impls/all_policies_folder_impl.h
/* * ADMC - AD Management Center * * Copyright (C) 2020-2022 BaseALT Ltd. * Copyright (C) 2020-2022 Dmitry Degtyarev * * 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 ALL_POLICIES_FOLDER_IMPL_H #define ALL_POLICIES_FOLDER_IMPL_H /** * Impl for a virtual container for "All policies". Displays * all of the policies present in the domain. */ #include "console_widget/console_impl.h" #include "console_widget/console_widget.h" class AdObject; class AdInterface; class AllPoliciesFolderImpl final : public ConsoleImpl { Q_OBJECT public: AllPoliciesFolderImpl(ConsoleWidget *console_arg); void fetch(const QModelIndex &index) override; void refresh(const QList<QModelIndex> &index_list) override; QList<QAction *> get_all_custom_actions() const override; QSet<QAction *> get_custom_actions(const QModelIndex &index, const bool single_selection) const override; QSet<StandardAction> get_standard_actions(const QModelIndex &index, const bool single_selection) const override; QList<QString> column_labels() const override; QList<int> default_columns() const override; private: QAction *create_policy_action; void create_policy(); }; QModelIndex get_all_policies_folder_index(ConsoleWidget *console); void all_policies_folder_impl_add_objects(ConsoleWidget *console, const QList<AdObject> &object_list, const QModelIndex &parent); #endif /* ALL_POLICIES_FOLDER_IMPL_H */
2,039
C++
.h
47
40.723404
129
0.769581
altlinux/admc
36
14
14
GPL-3.0
9/20/2024, 10:44:59 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
1,538,842
my_console_role.h
altlinux_admc/src/admc/console_impls/my_console_role.h
/* * ADMC - AD Management Center * * Copyright (C) 2020-2022 BaseALT Ltd. * Copyright (C) 2020-2022 Dmitry Degtyarev * * 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 MY_CONSOLE_ROLE_H #define MY_CONSOLE_ROLE_H #include "console_widget/console_widget.h" enum MyConsoleRole { MyConsoleRole_SearchThreadId = ConsoleRole_LAST + 1, MyConsoleRole_LAST, }; #endif /* MY_CONSOLE_ROLE_H */
1,009
C++
.h
27
35.259259
72
0.755624
altlinux/admc
36
14
14
GPL-3.0
9/20/2024, 10:44:59 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
1,538,843
object_impl.h
altlinux_admc/src/admc/console_impls/object_impl.h
/* * ADMC - AD Management Center * * Copyright (C) 2020-2022 BaseALT Ltd. * Copyright (C) 2020-2022 Dmitry Degtyarev * * 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 OBJECT_IMPL_H #define OBJECT_IMPL_H /** * Impl for AD objects. Displays a hierarchical tree of * objects that exist in the domain. */ #include "adldap.h" #include "console_impls/my_console_role.h" #include "console_widget/console_impl.h" #include "console_widget/console_widget.h" class QStandardItem; class AdObject; class AdInterface; class ConsoleActions; class QMenu; template <typename T> class QList; class ConsoleWidget; class ConsoleFilterDialog; class GeneralUserTab; class GeneralGroupTab; class QStackedWidget; class PSOResultsWidget; enum ObjectRole { ObjectRole_DN = MyConsoleRole_LAST + 1, ObjectRole_ObjectClasses, ObjectRole_ObjectCategory, ObjectRole_CannotMove, ObjectRole_CannotRename, ObjectRole_CannotDelete, ObjectRole_AccountDisabled, ObjectRole_Fetching, ObjectRole_SearchId, ObjectRole_LAST, }; class ObjectImpl final : public ConsoleImpl { Q_OBJECT public: ObjectImpl(ConsoleWidget *console); // This is for cases where there are multiple consoles // in the app and you need to propagate changes from one // to another. For example, when objects are deleted in // this console, they will also get removed from the // buddy console. void set_buddy_console(ConsoleWidget *buddy_console); void fetch(const QModelIndex &index) override; bool can_drop(const QList<QPersistentModelIndex> &dropped_list, const QSet<int> &dropped_type_list, const QPersistentModelIndex &target, const int target_type) override; void drop(const QList<QPersistentModelIndex> &dropped_list, const QSet<int> &dropped_type_list, const QPersistentModelIndex &target, const int target_type) override; QString get_description(const QModelIndex &index) const override; void activate(const QModelIndex &index) override; QList<QAction *> get_all_custom_actions() const override; QSet<QAction *> get_custom_actions(const QModelIndex &index, const bool single_selection) const override; QSet<QAction *> get_disabled_custom_actions(const QModelIndex &index, const bool single_selection) const override; QSet<StandardAction> get_standard_actions(const QModelIndex &index, const bool single_selection) const override; QSet<StandardAction> get_disabled_standard_actions(const QModelIndex &index, const bool single_selection) const override; void rename(const QList<QModelIndex> &index_list) override; void properties(const QList<QModelIndex> &index_list) override; void refresh(const QList<QModelIndex> &index_list) override; void delete_action(const QList<QModelIndex> &index_list) override; void selected_as_scope(const QModelIndex &index) override; void update_results_widget(const QModelIndex &index) const override; void set_find_action_enabled(const bool enabled); void set_refresh_action_enabled(const bool enabled); void set_toolbar_actions(QAction *create_user, QAction *create_group, QAction *create_ou); QList<QString> column_labels() const override; QList<int> default_columns() const override; void refresh_tree(); void open_console_filter_dialog(); private slots: void on_new_user(); void on_new_computer(); void on_new_ou(); void on_new_group(); void on_new_shared_folder(); void on_new_inet_org_person(); void on_new_contact(); void on_create_pso(); void on_move(); void on_enable(); void on_disable(); void on_add_to_group(); void on_find(); void on_reset_password(); void on_edit_upn_suffixes(); void on_reset_account(); private: QList<ConsoleWidget *> console_list; QString object_filter; bool object_filter_enabled; QAction *find_action; QAction *move_action; QAction *add_to_group_action; QAction *enable_action; QAction *disable_action; QAction *reset_password_action; QAction *reset_account_action; QAction *edit_upn_suffixes_action; QAction *new_action; QAction *create_pso_action; QHash<QString, QAction *> new_action_map; QAction *toolbar_create_user; QAction *toolbar_create_group; QAction *toolbar_create_ou; QStackedWidget *stacked_widget; GeneralGroupTab *group_results_widget; GeneralUserTab *user_results_widget; PSOResultsWidget *pso_results_widget; bool find_action_enabled; bool refresh_action_enabled; void new_object(const QString &object_class); void set_disabled(const bool disabled); void move_and_rename(AdInterface &ad, const QHash<QString, QString> &old_dn_list, const QString &new_parent_dn); void move(AdInterface &ad, const QList<QString> &old_dn_list, const QString &new_parent_dn); void update_toolbar_actions(); }; void object_impl_add_objects_to_console(ConsoleWidget *console, const QList<AdObject> &object_list, const QModelIndex &parent); void object_impl_add_objects_to_console_from_dns(ConsoleWidget *console, AdInterface &ad, const QList<QString> &dn_list, const QModelIndex &parent); void console_object_load(const QList<QStandardItem *> row, const AdObject &object); void console_object_item_data_load(QStandardItem *item, const AdObject &object); void console_object_item_load_icon(QStandardItem *item, bool disabled); QList<QString> object_impl_column_labels(); QList<int> object_impl_default_columns(); QList<QString> console_object_search_attributes(); void console_object_search(ConsoleWidget *console, const QModelIndex &index, const QString &base, const SearchScope scope, const QString &filter, const QList<QString> &attributes); void console_object_tree_init(ConsoleWidget *console, AdInterface &ad); // NOTE: this may return an invalid index if there's no tree // of objects setup QModelIndex get_object_tree_root(ConsoleWidget *console); QString console_object_count_string(ConsoleWidget *console, const QModelIndex &index); void console_object_create(const QList<ConsoleWidget *> &console_list, const QString &object_class, const QString &parent_dn); void console_object_rename(const QList<ConsoleWidget *> &console_list, const QList<QModelIndex> &index_list, const int dn_role, const QString &object_class); void console_object_delete(const QList<ConsoleWidget *> &console_list, const QList<QModelIndex> &index_list, const int dn_role); void console_object_properties(const QList<ConsoleWidget *> &console_list, const QList<QModelIndex> &index_list, const int dn_role, const QList<QString> &class_list); bool console_object_deletion_dialog(ConsoleWidget *console, const QList<QModelIndex> &index_deleted_list); #endif /* OBJECT_IMPL_H */
7,347
C++
.h
154
44.175325
180
0.764098
altlinux/admc
36
14
14
GPL-3.0
9/20/2024, 10:44:59 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
1,538,844
policy_impl.h
altlinux_admc/src/admc/console_impls/policy_impl.h
/* * ADMC - AD Management Center * * Copyright (C) 2020-2022 BaseALT Ltd. * Copyright (C) 2020-2022 Dmitry Degtyarev * * 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 POLICY_IMPL_H #define POLICY_IMPL_H /** * Impl for policy objects which represent GPC + GPT. * Displayed as children of OU's which they are linked to * and in "All policies" folder. */ #include "console_widget/console_impl.h" #include "console_widget/console_widget.h" #include <QProcess> #include "gplink.h" class QStandardItem; class AdObject; class AdInterface; class ConsoleActions; class PolicyResultsWidget; template <typename T> class QList; enum PolicyRole { PolicyRole_DN = ConsoleRole_LAST + 1, PolicyRole_GPO_Status, PolicyRole_LAST, }; class PolicyImpl final : public ConsoleImpl { Q_OBJECT public: PolicyImpl(ConsoleWidget *console_arg); bool can_drop(const QList<QPersistentModelIndex> &dropped_list, const QSet<int> &dropped_type_list, const QPersistentModelIndex &target, const int target_type) override; void drop(const QList<QPersistentModelIndex> &dropped_list, const QSet<int> &dropped_type_list, const QPersistentModelIndex &target, const int target_type) override; void selected_as_scope(const QModelIndex &index) override; QList<QAction *> get_all_custom_actions() const override; QSet<QAction *> get_custom_actions(const QModelIndex &index, const bool single_selection) const override; QSet<StandardAction> get_standard_actions(const QModelIndex &index, const bool single_selection) const override; void rename(const QList<QModelIndex> &index_list) override; void delete_action(const QList<QModelIndex> &index_list) override; void refresh(const QList<QModelIndex> &index_list) override; void properties(const QList<QModelIndex> &index_list) override; private slots: void on_add_link(); void on_edit(); void on_ou_gplink_changed(const QString &ou_dn, const Gplink &gplink, const QString &policy_dn, GplinkOption option); private: PolicyResultsWidget *policy_results; QAction *add_link_action; QAction *edit_action; mutable QAction *enforce_action; mutable QAction *disable_action; void on_gpui_error(QProcess::ProcessError error); void set_policy_item_icon(const QModelIndex &policy_index, bool is_checked, GplinkOption option); void on_change_gplink_option_action(QAction *action); void update_gplink_option_check_actions() const; }; void console_policy_load(const QList<QStandardItem *> &row, const AdObject &object); void console_policy_load_item(QStandardItem *item, const AdObject &object); QList<QString> console_policy_search_attributes(); void console_policy_edit(ConsoleWidget *console, const int item_type, const int dn_role); void console_policy_rename(const QList<ConsoleWidget *> &console_list, PolicyResultsWidget *policy_results, const int item_type, const int dn_role); void console_policy_add_link(const QList<ConsoleWidget *> &console_list, PolicyResultsWidget *policy_results, const int item_type, const int dn_role); void console_policy_delete(const QList<ConsoleWidget *> &console_list, PolicyResultsWidget *policy_results, const int item_type, const int dn_role); void console_policy_properties(const QList<ConsoleWidget *> &console_list, PolicyResultsWidget *policy_results, const int item_type, const int dn_role); bool policy_is_enforced(QStandardItem *policy_item); bool policy_is_disabled(QStandardItem *policy_item); void set_policy_link_icon(QStandardItem *policy_item, bool is_enforced, bool is_disabled); void set_enforced_policy_icon(QStandardItem *policy_item, bool is_enforced); void set_disabled_policy_icon(QStandardItem *policy_item, bool is_disabled); #endif /* POLICY_IMPL_H */
4,352
C++
.h
85
48.458824
173
0.777124
altlinux/admc
36
14
14
GPL-3.0
9/20/2024, 10:44:59 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
1,538,845
find_object_impl.h
altlinux_admc/src/admc/console_impls/find_object_impl.h
/* * ADMC - AD Management Center * * Copyright (C) 2020-2022 BaseALT Ltd. * Copyright (C) 2020-2022 Dmitry Degtyarev * * 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 FIND_OBJECT_IMPL_H #define FIND_OBJECT_IMPL_H /** * Impl for root of the find object tree which displays * results of a "Find" operation. Used in Find Widget. */ #include "console_widget/console_impl.h" class FindObjectImpl final : public ConsoleImpl { Q_OBJECT public: FindObjectImpl(ConsoleWidget *console_arg); QString get_description(const QModelIndex &index) const override; QList<QString> column_labels() const override; QList<int> default_columns() const override; }; QModelIndex get_find_object_root(ConsoleWidget *console); #endif /* FIND_OBJECT_IMPL_H */
1,379
C++
.h
36
35.916667
72
0.757871
altlinux/admc
36
14
14
GPL-3.0
9/20/2024, 10:44:59 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
1,538,846
query_folder_impl.h
altlinux_admc/src/admc/console_impls/query_folder_impl.h
/* * ADMC - AD Management Center * * Copyright (C) 2020-2022 BaseALT Ltd. * Copyright (C) 2020-2022 Dmitry Degtyarev * * 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 QUERY_FOLDER_IMPL_H #define QUERY_FOLDER_IMPL_H /** * Impl for a query folder which stores query items. Located * in the query tree. */ #include "console_widget/console_impl.h" class QueryFolderImpl final : public ConsoleImpl { Q_OBJECT public: QueryFolderImpl(ConsoleWidget *console_arg); bool can_drop(const QList<QPersistentModelIndex> &dropped_list, const QSet<int> &dropped_type_list, const QPersistentModelIndex &target, const int target_type) override; void drop(const QList<QPersistentModelIndex> &dropped_list, const QSet<int> &dropped_type_list, const QPersistentModelIndex &target, const int target_type) override; QList<QAction *> get_all_custom_actions() const override; QSet<QAction *> get_custom_actions(const QModelIndex &index, const bool single_selection) const override; QSet<StandardAction> get_standard_actions(const QModelIndex &index, const bool single_selection) const override; void delete_action(const QList<QModelIndex> &index_list) override; void cut(const QList<QModelIndex> &index_list) override; void copy(const QList<QModelIndex> &index_list) override; void paste(const QList<QModelIndex> &index_list) override; QList<QString> column_labels() const override; QList<int> default_columns() const override; private: QAction *new_action; QAction *edit_action; QAction *import_action; bool copied_is_cut; QList<QPersistentModelIndex> copied_list; void on_import(); void on_create_query_folder(); void on_create_query_item(); void on_edit_query_folder(); }; void console_query_tree_init(ConsoleWidget *console); void console_query_tree_save(ConsoleWidget *console); QModelIndex get_query_tree_root(ConsoleWidget *console); QList<QString> console_query_folder_header_labels(); QList<int> console_query_folder_default_columns(); QString console_query_folder_path(const QModelIndex &index); QModelIndex console_query_folder_create(ConsoleWidget *console, const QString &name, const QString &description, const QModelIndex &parent); void console_query_folder_load(const QList<QStandardItem *> &row, const QString &name, const QString &description); bool console_query_or_folder_name_is_good(const QString &name, const QModelIndex &parent_index, QWidget *parent_widget, const QModelIndex &current_index); bool console_query_or_folder_name_is_good(const QString &name, const QList<QString> &sibling_names, QWidget *parent_widget); void query_action_delete(ConsoleWidget *console, const QList<QModelIndex> &index_list); QList<QString> get_sibling_name_list(const QModelIndex &parent_index, const QModelIndex &index_to_omit); #endif /* QUERY_FOLDER_IMPL_H */
3,463
C++
.h
65
50.4
173
0.773412
altlinux/admc
36
14
14
GPL-3.0
9/20/2024, 10:44:59 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
1,538,847
found_policy_impl.h
altlinux_admc/src/admc/console_impls/found_policy_impl.h
/* * ADMC - AD Management Center * * Copyright (C) 2020-2022 BaseALT Ltd. * Copyright (C) 2020-2022 Dmitry Degtyarev * * 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 FOUND_POLICY_IMPL_H #define FOUND_POLICY_IMPL_H /** * Impl for policy objects displayed in FindPolicyDialog. */ #include "console_widget/console_impl.h" #include "console_widget/console_widget.h" class AdObject; enum FoundPolicyRole { FoundPolicyRole_DN = ConsoleRole_LAST + 1, FoundPolicyRole_LAST = ConsoleRole_LAST + 2, }; class FoundPolicyImpl final : public ConsoleImpl { Q_OBJECT public: FoundPolicyImpl(ConsoleWidget *console_arg); void set_buddy_console(ConsoleWidget *buddy_console); QList<QAction *> get_all_custom_actions() const override; QSet<QAction *> get_custom_actions(const QModelIndex &index, const bool single_selection) const override; QSet<StandardAction> get_standard_actions(const QModelIndex &index, const bool single_selection) const override; void rename(const QList<QModelIndex> &index_list) override; void delete_action(const QList<QModelIndex> &index_list) override; void properties(const QList<QModelIndex> &index_list) override; private slots: void on_add_link(); void on_edit(); private: QList<ConsoleWidget *> console_list; QAction *add_link_action; QAction *edit_action; }; QList<QString> console_policy_search_attributes(); void found_policy_impl_load(const QList<QStandardItem *> &row, const AdObject &object); #endif /* FOUND_POLICY_IMPL_H */
2,145
C++
.h
53
37.584906
116
0.760116
altlinux/admc
36
14
14
GPL-3.0
9/20/2024, 10:44:59 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
1,538,848
item_type.h
altlinux_admc/src/admc/console_impls/item_type.h
/* * ADMC - AD Management Center * * Copyright (C) 2020-2022 BaseALT Ltd. * Copyright (C) 2020-2022 Dmitry Degtyarev * * 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 ITEM_TYPE_H #define ITEM_TYPE_H enum ItemType { ItemType_Unassigned, ItemType_Object, ItemType_PolicyRoot, ItemType_PolicyOU, ItemType_AllPoliciesFolder, ItemType_Policy, ItemType_QueryFolder, ItemType_QueryItem, ItemType_FindObject, ItemType_FindPolicy, ItemType_FoundPolicy, ItemType_DomainInfo, ItemType_LAST, }; #endif /* ITEM_TYPE_H */
1,179
C++
.h
37
28.864865
72
0.747803
altlinux/admc
36
14
14
GPL-3.0
9/20/2024, 10:44:59 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
1,538,849
query_item_impl.h
altlinux_admc/src/admc/console_impls/query_item_impl.h
/* * ADMC - AD Management Center * * Copyright (C) 2020-2022 BaseALT Ltd. * Copyright (C) 2020-2022 Dmitry Degtyarev * * 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 CONSOLE_QUERY_H #define CONSOLE_QUERY_H /** * Impl for query item which displays results of a saved * query, i.e. the objects that fit a particular filter. * Located in query tree, can be children of query folders * or query tree root. */ #include "console_impls/my_console_role.h" #include "console_widget/console_impl.h" enum QueryItemRole { QueryItemRole_Description = MyConsoleRole_LAST + 1, QueryItemRole_Filter, QueryItemRole_FilterState, QueryItemRole_Base, QueryItemRole_ScopeIsChildren, QueryItemRole_IsRoot, QueryItemRole_LAST, }; enum QueryColumn { QueryColumn_Name, QueryColumn_Description, QueryColumn_COUNT, }; class QueryFolderImpl; class QueryItemImpl final : public ConsoleImpl { Q_OBJECT public: QueryItemImpl(ConsoleWidget *console_arg); void set_query_folder_impl(QueryFolderImpl *impl); void fetch(const QModelIndex &index) override; QString get_description(const QModelIndex &index) const override; QList<QAction *> get_all_custom_actions() const override; QSet<QAction *> get_custom_actions(const QModelIndex &index, const bool single_selection) const override; QSet<StandardAction> get_standard_actions(const QModelIndex &index, const bool single_selection) const override; void refresh(const QList<QModelIndex> &index_list) override; void delete_action(const QList<QModelIndex> &index_list) override; void cut(const QList<QModelIndex> &index_list) override; void copy(const QList<QModelIndex> &index_list) override; QList<QString> column_labels() const override; QList<int> default_columns() const override; private slots: void on_export(); private: QAction *edit_action; QAction *export_action; QueryFolderImpl *query_folder_impl; void on_edit_query_item(); }; void console_query_item_load(const QList<QStandardItem *> row, const QString &name, const QString &description, const QString &filter, const QByteArray &filter_state, const QString &base, const bool scope_is_children); QModelIndex console_query_item_create(ConsoleWidget *console, const QString &name, const QString &description, const QString &filter, const QByteArray &filter_state, const QString &base, const bool scope_is_children, const QModelIndex &parent); QHash<QString, QVariant> console_query_item_save_hash(const QModelIndex &index); void console_query_item_load_hash(ConsoleWidget *console, const QHash<QString, QVariant> &data, const QModelIndex &parent_index); void get_query_item_data(const QModelIndex &index, QString *name, QString *description, bool *scope_is_children, QByteArray *filter_state, QString *filter); #endif /* CONSOLE_QUERY_H */
3,471
C++
.h
74
43.756757
244
0.769026
altlinux/admc
36
14
14
GPL-3.0
9/20/2024, 10:44:59 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
1,538,850
select_base_widget.h
altlinux_admc/src/admc/filter_widget/select_base_widget.h
/* * ADMC - AD Management Center * * Copyright (C) 2020-2022 BaseALT Ltd. * Copyright (C) 2020-2022 Dmitry Degtyarev * * 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 SELECT_BASE_WIDGET_H #define SELECT_BASE_WIDGET_H /** * Allows user to select a search base object. */ #include <QWidget> namespace Ui { class SelectBaseWidget; } class SelectBaseWidget final : public QWidget { Q_OBJECT public: Ui::SelectBaseWidget *ui; SelectBaseWidget(QWidget *parent = nullptr); ~SelectBaseWidget(); void set_default_base(const QString &default_base); QString get_base() const; QVariant save_state() const; void restore_state(const QVariant &state); private: void open_browse_dialog(); }; #endif /* SELECT_BASE_WIDGET_H */
1,375
C++
.h
42
30.119048
72
0.745647
altlinux/admc
36
14
14
GPL-3.0
9/20/2024, 10:44:59 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
1,538,851
filter_widget.h
altlinux_admc/src/admc/filter_widget/filter_widget.h
/* * ADMC - AD Management Center * * Copyright (C) 2020-2022 BaseALT Ltd. * Copyright (C) 2020-2022 Dmitry Degtyarev * * 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 FILTER_WIDGET_H #define FILTER_WIDGET_H /** * Allows user to enter a filter, which is then passed on to * a parent widget. Has tabs for different ways to enter a * filter: normal and advanced tab. */ #include <QWidget> class FilterWidgetTab; namespace Ui { class FilterWidget; } class FilterWidget final : public QWidget { Q_OBJECT public: Ui::FilterWidget *ui; FilterWidget(QWidget *parent = nullptr); ~FilterWidget(); void set_classes(const QList<QString> &class_list, const QList<QString> &selected_list); QString get_filter() const; QVariant save_state() const; void restore_state(const QVariant &state); void clear(); void enable_filtering_all_classes(); }; class FilterWidgetTab : public QWidget { Q_OBJECT public: virtual QString get_filter() const = 0; virtual void clear() = 0; }; #endif /* FILTER_WIDGET_H */
1,673
C++
.h
51
30.039216
92
0.738481
altlinux/admc
36
14
14
GPL-3.0
9/20/2024, 10:44:59 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
1,538,852
filter_widget_simple_tab.h
altlinux_admc/src/admc/filter_widget/filter_widget_simple_tab.h
/* * ADMC - AD Management Center * * Copyright (C) 2020-2022 BaseALT Ltd. * Copyright (C) 2020-2022 Dmitry Degtyarev * * 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 FILTER_WIDGET_SIMPLE_TAB_H #define FILTER_WIDGET_SIMPLE_TAB_H /** * Simple filter with just a class selection and name input. */ #include "filter_widget/filter_widget.h" namespace Ui { class FilterWidgetSimpleTab; } class FilterWidgetSimpleTab final : public FilterWidgetTab { Q_OBJECT public: Ui::FilterWidgetSimpleTab *ui; FilterWidgetSimpleTab(); ~FilterWidgetSimpleTab(); void set_classes(const QList<QString> &class_list, const QList<QString> &selected_list); void enable_filtering_all_classes(); QString get_filter() const; void clear(); QVariant save_state() const; void restore_state(const QVariant &state); }; #endif /* FILTER_WIDGET_SIMPLE_TAB_H */
1,494
C++
.h
42
32.880952
92
0.752255
altlinux/admc
36
14
14
GPL-3.0
9/20/2024, 10:44:59 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
1,538,853
class_filter_widget.h
altlinux_admc/src/admc/filter_widget/class_filter_widget.h
/* * ADMC - AD Management Center * * Copyright (C) 2020-2022 BaseALT Ltd. * Copyright (C) 2020-2022 Dmitry Degtyarev * * 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 CLASS_FILTER_WIDGET_H #define CLASS_FILTER_WIDGET_H /** * This widget is embedded in ConsoleFilterDialog. Contains * checkboxes of object classes. get_filter() returns a * filter which will filter out unselected classes. */ #include <QWidget> class QCheckBox; namespace Ui { class ClassFilterWidget; } class ClassFilterWidget final : public QWidget { Q_OBJECT public: Ui::ClassFilterWidget *ui; ClassFilterWidget(QWidget *parent = nullptr); ~ClassFilterWidget(); void set_classes(const QList<QString> &class_list, const QList<QString> &selected_list); QString get_filter() const; QList<QString> get_selected_classes() const; QVariant save_state() const; void restore_state(const QVariant &state); signals: // Emitted when any of the checkboxes are touched void changed(); private: QHash<QString, QCheckBox *> checkbox_map; QList<QString> class_list; void clear_selection(); void select_all(); }; #endif /* CLASS_FILTER_WIDGET_H */
1,791
C++
.h
52
31.596154
92
0.747826
altlinux/admc
36
14
14
GPL-3.0
9/20/2024, 10:44:59 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
1,538,854
class_filter_dialog.h
altlinux_admc/src/admc/filter_widget/class_filter_dialog.h
/* * ADMC - AD Management Center * * Copyright (C) 2020-2022 BaseALT Ltd. * Copyright (C) 2020-2022 Dmitry Degtyarev * * 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 CLASS_FILTER_DIALOG_H #define CLASS_FILTER_DIALOG_H /** * Dialog to select classes, opened from * SelectClassesWidget. Wraps ClassFilterWidget inside. */ #include <QDialog> #include <QVariant> class ClassFilterWidget; namespace Ui { class ClassFilterDialog; } class ClassFilterDialog final : public QDialog { Q_OBJECT public: Ui::ClassFilterDialog *ui; ClassFilterDialog(const QList<QString> &class_list, const QList<QString> &selected_list, const bool filtering_all_classes_is_enabled, const bool all_is_checked, QWidget *parent); ~ClassFilterDialog(); QString get_filter() const; QList<QString> get_selected_classes() const; bool get_all_is_checked() const; private: QVariant original_state; void reset(); void on_input_changed(); void on_all_checkbox(); }; #endif /* CLASS_FILTER_DIALOG_H */
1,637
C++
.h
47
32.170213
182
0.753329
altlinux/admc
36
14
14
GPL-3.0
9/20/2024, 10:44:59 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
1,538,855
select_classes_widget.h
altlinux_admc/src/admc/filter_widget/select_classes_widget.h
/* * ADMC - AD Management Center * * Copyright (C) 2020-2022 BaseALT Ltd. * Copyright (C) 2020-2022 Dmitry Degtyarev * * 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 SELECT_CLASSES_WIDGET_H #define SELECT_CLASSES_WIDGET_H /** * Widget embedded in find widget for selecting classes to * filter for. Displays currently selected classes in line * edit, with a button next to it which opens a dialog in * which classes can be selected. */ #include <QVariant> #include <QWidget> namespace Ui { class SelectClassesWidget; } class SelectClassesWidget final : public QWidget { Q_OBJECT public: Ui::SelectClassesWidget *ui; SelectClassesWidget(QWidget *parent = nullptr); ~SelectClassesWidget(); void set_classes(const QList<QString> &class_list, const QList<QString> &selected_list); void enable_filtering_all_classes(); QString get_filter() const; QVariant save_state() const; void restore_state(const QVariant &state); private: QList<QString> class_list; QList<QString> m_selected_list; bool filtering_all_classes_is_enabled; bool m_all_is_checked; void open_dialog(); void update_class_display(); }; #endif /* SELECT_CLASSES_WIDGET_H */
1,826
C++
.h
52
32.269231
92
0.749574
altlinux/admc
36
14
14
GPL-3.0
9/20/2024, 10:44:59 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
1,538,856
filter_widget_normal_tab.h
altlinux_admc/src/admc/filter_widget/filter_widget_normal_tab.h
/* * ADMC - AD Management Center * * Copyright (C) 2020-2022 BaseALT Ltd. * Copyright (C) 2020-2022 Dmitry Degtyarev * * 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 FILTER_WIDGET_NORMAL_TAB_H #define FILTER_WIDGET_NORMAL_TAB_H /** * Allows user to enter a filter in a structured way, * without requiring knowledge of LDAP filter syntax. * Presents possible attributes and possible filter * conditions. User can build filters and add them a to a * list. The list is composed into one single LDAP filter * string. */ #include "filter_widget/filter_widget.h" namespace Ui { class FilterWidgetNormalTab; } class FilterWidgetNormalTab final : public FilterWidgetTab { Q_OBJECT public: Ui::FilterWidgetNormalTab *ui; FilterWidgetNormalTab(); ~FilterWidgetNormalTab(); void set_classes(const QList<QString> &class_list, const QList<QString> &selected_list); void enable_filtering_all_classes(); QString get_filter() const; void clear(); QVariant save_state() const; void restore_state(const QVariant &state); private slots: void add_filter(); void remove_filter(); void clear_filters(); void update_attributes_combo(); void update_conditions_combo(); void update_value_edit(); }; #endif /* FILTER_WIDGET_NORMAL_TAB_H */
1,913
C++
.h
54
32.555556
92
0.74824
altlinux/admc
36
14
14
GPL-3.0
9/20/2024, 10:44:59 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
1,538,857
filter_widget_advanced_tab.h
altlinux_admc/src/admc/filter_widget/filter_widget_advanced_tab.h
/* * ADMC - AD Management Center * * Copyright (C) 2020-2022 BaseALT Ltd. * Copyright (C) 2020-2022 Dmitry Degtyarev * * 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 FILTER_WIDGET_ADVANCED_TAB_H #define FILTER_WIDGET_ADVANCED_TAB_H /** * Allows input of a plain LDAP filter string. */ #include "filter_widget/filter_widget.h" namespace Ui { class FilterWidgetAdvancedTab; } class FilterWidgetAdvancedTab final : public FilterWidgetTab { Q_OBJECT public: Ui::FilterWidgetAdvancedTab *ui; FilterWidgetAdvancedTab(); ~FilterWidgetAdvancedTab(); QString get_filter() const; void clear(); QVariant save_state() const; void restore_state(const QVariant &state); }; #endif /* FILTER_WIDGET_ADVANCED_TAB_H */
1,361
C++
.h
40
31.475
72
0.755149
altlinux/admc
36
14
14
GPL-3.0
9/20/2024, 10:44:59 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
1,538,858
filter_dialog.h
altlinux_admc/src/admc/filter_widget/filter_dialog.h
/* * ADMC - AD Management Center * * Copyright (C) 2020-2022 BaseALT Ltd. * Copyright (C) 2020-2022 Dmitry Degtyarev * * 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 FILTER_DIALOG_H #define FILTER_DIALOG_H /** * Dialog wrapper over filter widget. Contains the filter * widget and ok/cancel buttons. */ #include <QDialog> #include <QVariant> namespace Ui { class FilterDialog; } class FilterDialog final : public QDialog { Q_OBJECT public: Ui::FilterDialog *ui; FilterDialog(const QList<QString> &class_list, const QList<QString> &selected_list, QWidget *parent); ~FilterDialog(); QVariant save_state() const; void restore_state(const QVariant &state); void enable_filtering_all_classes(); QString get_filter() const; private: QVariant original_state; }; #endif /* FILTER_DIALOG_H */
1,449
C++
.h
44
30.386364
105
0.747489
altlinux/admc
36
14
14
GPL-3.0
9/20/2024, 10:44:59 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
1,538,859
edit_query_item_widget.h
altlinux_admc/src/admc/edit_query_widgets/edit_query_item_widget.h
/* * ADMC - AD Management Center * * Copyright (C) 2020-2022 BaseALT Ltd. * Copyright (C) 2020-2022 Dmitry Degtyarev * * 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 EDIT_QUERY_ITEM_WIDGET_H #define EDIT_QUERY_ITEM_WIDGET_H /** * Widget used for editing queries. Used in edit query * dialog and create query dialog. */ #include <QVariant> #include <QWidget> namespace Ui { class EditQueryItemWidget; } class EditQueryItemWidget : public QWidget { Q_OBJECT public: Ui::EditQueryItemWidget *ui; EditQueryItemWidget(QWidget *parent = nullptr); ~EditQueryItemWidget(); QString name() const; QString description() const; QString filter() const; QString base() const; bool scope_is_children() const; QByteArray filter_state() const; void set_data(const QString &name, const QString &description, const bool scope_is_children, const QByteArray &filter_state, const QString &filter); private: QVariant filter_dialog_state; void open_filter_dialog(); }; #endif /* EDIT_QUERY_ITEM_WIDGET_H */
1,666
C++
.h
48
31.9375
152
0.748443
altlinux/admc
36
14
14
GPL-3.0
9/20/2024, 10:44:59 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
1,538,860
edit_query_folder_dialog.h
altlinux_admc/src/admc/edit_query_widgets/edit_query_folder_dialog.h
/* * ADMC - AD Management Center * * Copyright (C) 2020-2022 BaseALT Ltd. * Copyright (C) 2020-2022 Dmitry Degtyarev * * 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 EDIT_QUERY_FOLDER_DIALOG_H #define EDIT_QUERY_FOLDER_DIALOG_H #include <QDialog> namespace Ui { class EditQueryFolderDialog; } class EditQueryFolderDialog : public QDialog { Q_OBJECT public: Ui::EditQueryFolderDialog *ui; EditQueryFolderDialog(QWidget *parent); ~EditQueryFolderDialog(); QString name() const; QString description() const; void set_data(const QList<QString> &sibling_name_list, const QString &name, const QString &description); void accept() override; private: QList<QString> sibling_name_list; }; #endif /* EDIT_QUERY_FOLDER_DIALOG_H */
1,382
C++
.h
39
32.794872
108
0.756189
altlinux/admc
36
14
14
GPL-3.0
9/20/2024, 10:44:59 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
1,538,861
edit_query_item_dialog.h
altlinux_admc/src/admc/edit_query_widgets/edit_query_item_dialog.h
/* * ADMC - AD Management Center * * Copyright (C) 2020-2022 BaseALT Ltd. * Copyright (C) 2020-2022 Dmitry Degtyarev * * 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 EDIT_QUERY_ITEM_DIALOG_H #define EDIT_QUERY_ITEM_DIALOG_H #include <QDialog> class EditQueryItemWidget; namespace Ui { class EditQueryItemDialog; } class EditQueryItemDialog : public QDialog { Q_OBJECT public: Ui::EditQueryItemDialog *ui; EditQueryItemDialog(const QList<QString> &sibling_name_list, QWidget *parent); ~EditQueryItemDialog(); void set_data(const QString &name, const QString &description, const bool scope_is_children, const QByteArray &filter_state, const QString &filter); QString name() const; QString description() const; QString filter() const; QString base() const; bool scope_is_children() const; QByteArray filter_state() const; void accept() override; private: QList<QString> sibling_name_list; }; #endif /* EDIT_QUERY_ITEM_DIALOG_H */
1,607
C++
.h
44
33.659091
152
0.753063
altlinux/admc
36
14
14
GPL-3.0
9/20/2024, 10:44:59 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
1,538,862
create_contact_dialog.h
altlinux_admc/src/admc/create_dialogs/create_contact_dialog.h
/* * ADMC - AD Management Center * * Copyright (C) 2020-2022 BaseALT Ltd. * Copyright (C) 2020-2022 Dmitry Degtyarev * * 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 CREATE_CONTACT_DIALOG_H #define CREATE_CONTACT_DIALOG_H #include "create_object_dialog.h" class CreateObjectHelper; namespace Ui { class CreateContactDialog; } class CreateContactDialog final : public CreateObjectDialog { Q_OBJECT public: Ui::CreateContactDialog *ui; CreateContactDialog(const QString &parent_dn, QWidget *parent); ~CreateContactDialog(); void accept() override; QString get_created_dn() const override; private: CreateObjectHelper *helper; }; #endif /* CREATE_CONTACT_DIALOG_H */
1,318
C++
.h
38
32.210526
72
0.764567
altlinux/admc
36
14
14
GPL-3.0
9/20/2024, 10:44:59 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
1,538,863
create_computer_dialog.h
altlinux_admc/src/admc/create_dialogs/create_computer_dialog.h
/* * ADMC - AD Management Center * * Copyright (C) 2020-2022 BaseALT Ltd. * Copyright (C) 2020-2022 Dmitry Degtyarev * * 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 CREATE_COMPUTER_DIALOG_H #define CREATE_COMPUTER_DIALOG_H #include "create_object_dialog.h" class CreateObjectHelper; namespace Ui { class CreateComputerDialog; } class CreateComputerDialog final : public CreateObjectDialog { Q_OBJECT public: Ui::CreateComputerDialog *ui; CreateComputerDialog(const QString &parent_dn, QWidget *parent); ~CreateComputerDialog(); void accept() override; QString get_created_dn() const override; private: CreateObjectHelper *helper; void autofill_sam_name(); }; #endif /* CREATE_COMPUTER_DIALOG_H */
1,357
C++
.h
39
32.230769
72
0.763581
altlinux/admc
36
14
14
GPL-3.0
9/20/2024, 10:44:59 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
1,538,864
create_object_dialog.h
altlinux_admc/src/admc/create_dialogs/create_object_dialog.h
/* * ADMC - AD Management Center * * Copyright (C) 2020-2022 BaseALT Ltd. * Copyright (C) 2020-2022 Dmitry Degtyarev * * 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 CREATE_OBJECT_DIALOG_H #define CREATE_OBJECT_DIALOG_H /** * Base class for dialogs that create objects. */ #include <QDialog> class CreateObjectDialog : public QDialog { public: using QDialog::QDialog; virtual QString get_created_dn() const = 0; }; #endif /* CREATE_OBJECT_DIALOG_H */
1,084
C++
.h
31
32.83871
72
0.751434
altlinux/admc
36
14
14
GPL-3.0
9/20/2024, 10:44:59 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
1,538,865
create_user_dialog.h
altlinux_admc/src/admc/create_dialogs/create_user_dialog.h
/* * ADMC - AD Management Center * * Copyright (C) 2020-2022 BaseALT Ltd. * Copyright (C) 2020-2022 Dmitry Degtyarev * * 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 CREATE_USER_DIALOG_H #define CREATE_USER_DIALOG_H #include "create_object_dialog.h" class AdInterface; class CreateObjectHelper; namespace Ui { class CreateUserDialog; } class CreateUserDialog final : public CreateObjectDialog { Q_OBJECT public: Ui::CreateUserDialog *ui; // NOTE: user_class can be either CLASS_USER or // CLASS_INET_ORG_PERSON. This is so that this // dialog can be reused for both classes. CreateUserDialog(AdInterface &ad, const QString &parent_dn, const QString &user_class, QWidget *parent); ~CreateUserDialog(); void accept() override; QString get_created_dn() const override; private: CreateObjectHelper *helper; void autofill_full_name(); }; #endif /* CREATE_USER_DIALOG_H */
1,538
C++
.h
43
33.069767
108
0.752695
altlinux/admc
36
14
14
GPL-3.0
9/20/2024, 10:44:59 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
1,538,866
create_pso_dialog.h
altlinux_admc/src/admc/create_dialogs/create_pso_dialog.h
/* * ADMC - AD Management Center * * Copyright (C) 2020-2024 BaseALT Ltd. * * 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 CREATE_PSO_DIALOG_H #define CREATE_PSO_DIALOG_H #include "create_object_dialog.h" namespace Ui { class CreatePSODialog; } class PSOEditWidget; class ProtectDeletionEdit; class CreatePSODialog final : public CreateObjectDialog { Q_OBJECT public: explicit CreatePSODialog(const QString &parent_dn_arg, QWidget *parent = nullptr); ~CreatePSODialog(); void accept() override; QString get_created_dn() const override; private: Ui::CreatePSODialog *ui; const QString parent_dn; ProtectDeletionEdit *deletion_edit; }; #endif // CREATE_PSO_DIALOG_H
1,321
C++
.h
39
31.358974
86
0.762579
altlinux/admc
36
14
14
GPL-3.0
9/20/2024, 10:44:59 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
1,538,867
create_query_item_dialog.h
altlinux_admc/src/admc/create_dialogs/create_query_item_dialog.h
/* * ADMC - AD Management Center * * Copyright (C) 2020-2022 BaseALT Ltd. * Copyright (C) 2020-2022 Dmitry Degtyarev * * 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 CREATE_QUERY_ITEM_DIALOG_H #define CREATE_QUERY_ITEM_DIALOG_H #include <QDialog> class EditQueryItemWidget; namespace Ui { class CreateQueryItemDialog; } class CreateQueryItemDialog : public QDialog { Q_OBJECT public: Ui::CreateQueryItemDialog *ui; CreateQueryItemDialog(const QList<QString> &sibling_name_list, QWidget *parent); ~CreateQueryItemDialog(); QString name() const; QString description() const; QString filter() const; QString base() const; bool scope_is_children() const; QByteArray filter_state() const; void accept() override; private: QList<QString> sibling_name_list; }; #endif /* CREATE_QUERY_ITEM_DIALOG_H */
1,469
C++
.h
43
31.372093
84
0.753357
altlinux/admc
36
14
14
GPL-3.0
9/20/2024, 10:44:59 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
1,538,868
create_query_folder_dialog.h
altlinux_admc/src/admc/create_dialogs/create_query_folder_dialog.h
/* * ADMC - AD Management Center * * Copyright (C) 2020-2022 BaseALT Ltd. * Copyright (C) 2020-2022 Dmitry Degtyarev * * 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 CREATE_QUERY_FOLDER_DIALOG_H #define CREATE_QUERY_FOLDER_DIALOG_H #include <QDialog> namespace Ui { class CreateQueryFolderDialog; } class CreateQueryFolderDialog : public QDialog { Q_OBJECT public: Ui::CreateQueryFolderDialog *ui; CreateQueryFolderDialog(QWidget *parent); ~CreateQueryFolderDialog(); QString name() const; QString description() const; void set_sibling_name_list(const QList<QString> &list); void accept() override; private: QList<QString> sibling_name_list; }; #endif /* CREATE_QUERY_FOLDER_DIALOG_H */
1,350
C++
.h
39
31.948718
72
0.757692
altlinux/admc
36
14
14
GPL-3.0
9/20/2024, 10:44:59 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
1,538,869
create_group_dialog.h
altlinux_admc/src/admc/create_dialogs/create_group_dialog.h
/* * ADMC - AD Management Center * * Copyright (C) 2020-2022 BaseALT Ltd. * Copyright (C) 2020-2022 Dmitry Degtyarev * * 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 CREATE_GROUP_DIALOG_H #define CREATE_GROUP_DIALOG_H #include "create_object_dialog.h" class CreateObjectHelper; namespace Ui { class CreateGroupDialog; } class CreateGroupDialog final : public CreateObjectDialog { Q_OBJECT public: Ui::CreateGroupDialog *ui; CreateGroupDialog(const QString &parent_dn, QWidget *parent); ~CreateGroupDialog(); void accept() override; QString get_created_dn() const override; private: CreateObjectHelper *helper; void autofill_sam_name(); }; #endif /* CREATE_GROUP_DIALOG_H */
1,333
C++
.h
39
31.615385
72
0.759158
altlinux/admc
36
14
14
GPL-3.0
9/20/2024, 10:44:59 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
1,538,870
create_ou_dialog.h
altlinux_admc/src/admc/create_dialogs/create_ou_dialog.h
/* * ADMC - AD Management Center * * Copyright (C) 2020-2022 BaseALT Ltd. * Copyright (C) 2020-2022 Dmitry Degtyarev * * 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 CREATE_OU_DIALOG_H #define CREATE_OU_DIALOG_H #include "create_object_dialog.h" class CreateObjectHelper; namespace Ui { class CreateOUDialog; } class CreateOUDialog final : public CreateObjectDialog { Q_OBJECT public: Ui::CreateOUDialog *ui; CreateOUDialog(const QString &parent_dn, QWidget *parent); ~CreateOUDialog(); void accept() override; QString get_created_dn() const override; private: CreateObjectHelper *helper; }; #endif /* CREATE_OU_DIALOG_H */
1,278
C++
.h
38
31.157895
72
0.756911
altlinux/admc
36
14
14
GPL-3.0
9/20/2024, 10:44:59 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
1,538,871
create_shared_folder_dialog.h
altlinux_admc/src/admc/create_dialogs/create_shared_folder_dialog.h
/* * ADMC - AD Management Center * * Copyright (C) 2020-2022 BaseALT Ltd. * Copyright (C) 2020-2022 Dmitry Degtyarev * * 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 CREATE_SHARED_FOLDER_DIALOG_H #define CREATE_SHARED_FOLDER_DIALOG_H #include "create_object_dialog.h" class CreateObjectHelper; namespace Ui { class CreateSharedFolderDialog; } class CreateSharedFolderDialog final : public CreateObjectDialog { Q_OBJECT public: Ui::CreateSharedFolderDialog *ui; CreateSharedFolderDialog(const QString &parent_dn, QWidget *parent); ~CreateSharedFolderDialog(); void accept() override; QString get_created_dn() const override; private: CreateObjectHelper *helper; }; #endif /* CREATE_SHARED_FOLDER_DIALOG_H */
1,361
C++
.h
38
33.342105
72
0.769992
altlinux/admc
36
14
14
GPL-3.0
9/20/2024, 10:44:59 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
1,538,872
create_policy_dialog.h
altlinux_admc/src/admc/create_dialogs/create_policy_dialog.h
/* * ADMC - AD Management Center * * Copyright (C) 2020-2022 BaseALT Ltd. * Copyright (C) 2020-2022 Dmitry Degtyarev * * 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 CREATE_POLICY_DIALOG_H #define CREATE_POLICY_DIALOG_H /** * Creates a GPO. */ #include <QDialog> class QLineEdit; class AdInterface; namespace Ui { class CreatePolicyDialog; } class CreatePolicyDialog : public QDialog { Q_OBJECT public: Ui::CreatePolicyDialog *ui; CreatePolicyDialog(AdInterface &ad, QWidget *parent); ~CreatePolicyDialog(); QString get_created_dn() const; public slots: void accept() override; private: QString created_dn; private slots: void on_edited(); }; #endif /* CREATE_POLICY_DIALOG_H */
1,342
C++
.h
45
27.377778
72
0.751558
altlinux/admc
36
14
14
GPL-3.0
9/20/2024, 10:44:59 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
1,538,873
attributes_tab_filter_menu.h
altlinux_admc/src/admc/tabs/attributes_tab_filter_menu.h
/* * ADMC - AD Management Center * * Copyright (C) 2020-2022 BaseALT Ltd. * Copyright (C) 2020-2022 Dmitry Degtyarev * * 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 ATTRIBUTES_TAB_FILTER_MENU_H #define ATTRIBUTES_TAB_FILTER_MENU_H #include <QHash> #include <QMenu> enum AttributeFilter { AttributeFilter_Unset, AttributeFilter_ReadOnly, AttributeFilter_Mandatory, AttributeFilter_Optional, AttributeFilter_SystemOnly, AttributeFilter_Constructed, AttributeFilter_Backlink, AttributeFilter_COUNT, }; class AttributesTabFilterMenu final : public QMenu { Q_OBJECT public: AttributesTabFilterMenu(QWidget *parent); ~AttributesTabFilterMenu(); bool filter_is_enabled(const AttributeFilter filter) const; signals: void filter_changed(); private: QHash<AttributeFilter, QAction *> action_map; void on_read_only_changed(); }; #endif /* ATTRIBUTES_TAB_FILTER_MENU_H */
1,548
C++
.h
46
30.717391
72
0.763917
altlinux/admc
36
14
14
GPL-3.0
9/20/2024, 10:44:59 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
1,538,874
account_tab.h
altlinux_admc/src/admc/tabs/account_tab.h
/* * ADMC - AD Management Center * * Copyright (C) 2020-2022 BaseALT Ltd. * Copyright (C) 2020-2022 Dmitry Degtyarev * * 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 ACCOUNT_TAB_H #define ACCOUNT_TAB_H #include <QWidget> class AdInterface; class AttributeEdit; namespace Ui { class AccountTab; } class AccountTab final : public QWidget { Q_OBJECT public: Ui::AccountTab *ui; AccountTab(AdInterface &ad, QList<AttributeEdit *> *edit_list, QWidget *parent); ~AccountTab(); }; #endif /* ACCOUNT_TAB_H */
1,141
C++
.h
35
30.4
84
0.751366
altlinux/admc
36
14
14
GPL-3.0
9/20/2024, 10:44:59 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
1,538,875
security_tab.h
altlinux_admc/src/admc/tabs/security_tab.h
/* * ADMC - AD Management Center * * Copyright (C) 2020-2022 BaseALT Ltd. * Copyright (C) 2020-2022 Dmitry Degtyarev * * 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 SECURITY_TAB_H #define SECURITY_TAB_H #include "attribute_edits/attribute_edit.h" #include <QWidget> #include "ad_defines.h" #include <QDialog> class RightsSortModel; class QStandardItemModel; class QStandardItem; class SecurityDescriptor; struct security_descriptor; enum AceColumn { AceColumn_Name, AceColumn_Allowed, AceColumn_Denied, AceColumn_COUNT, }; class SecurityTabEdit; namespace Ui { class SecurityTab; } class SecurityTab final : public QWidget { Q_OBJECT public: Ui::SecurityTab *ui; SecurityTab(QList<AttributeEdit *> *edit_list, QWidget *parent); ~SecurityTab(); void fix_acl_order(); void set_read_only(); bool verify_acl_order() const; private: SecurityTabEdit *tab_edit; }; class SecurityTabEdit final : public AttributeEdit { Q_OBJECT public: SecurityTabEdit(Ui::SecurityTab *ui, QObject *parent); ~SecurityTabEdit(); void load(AdInterface &ad, const AdObject &object) override; bool verify(AdInterface &ad, const QString &dn) const override; bool apply(AdInterface &ad, const QString &dn) const override; void fix_acl_order(); void set_read_only(); bool verify_acl_order() const; private: Ui::SecurityTab *ui; QStandardItemModel *trustee_model; QStandardItemModel *rights_model; RightsSortModel *rights_sort_model; bool is_policy; bool ignore_item_changed_signal; security_descriptor *sd; QList<QString> target_class_list; bool read_only; void on_item_changed(QStandardItem *item); void on_add_trustee_button(); void on_remove_trustee_button(); void add_trustees(const QList<QByteArray> &sid_list, AdInterface &ad); void on_add_well_known_trustee(); void load_current_sd(AdInterface &ad); void load_rights_model(); void make_rights_model_read_only(); QByteArray get_current_trustee() const; }; #endif /* SECURITY_TAB_H */
2,702
C++
.h
84
28.845238
74
0.741625
altlinux/admc
36
14
14
GPL-3.0
9/20/2024, 10:44:59 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
1,538,876
group_policy_tab.h
altlinux_admc/src/admc/tabs/group_policy_tab.h
/* * ADMC - AD Management Center * * Copyright (C) 2020-2022 BaseALT Ltd. * * 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 GROUP_POLICY_TAB_H #define GROUP_POLICY_TAB_H #include "attribute_edits/attribute_edit.h" #include <QWidget> #include <QModelIndex> #include "gplink.h" /** * Tab for displaying, modifying group policy related * attributes of an object(not a gpo!), such as gplink and * gpoptions. */ class ConsoleWidget; class InheritedPoliciesWidget; class QCheckBox; namespace Ui { class GroupPolicyTab; } class GroupPolicyTab final : public QWidget { Q_OBJECT public: Ui::GroupPolicyTab *ui; GroupPolicyTab(QList<AttributeEdit *> *edit_list, ConsoleWidget *console_widget, const QString &ou_dn, QWidget *parent); ~GroupPolicyTab(); private: ConsoleWidget *console; QModelIndex target_ou_index; InheritedPoliciesWidget *inheritance_widget; QCheckBox *gpo_options_check; }; #endif /* GROUP_POLICY_TAB_H */
1,575
C++
.h
48
30.479167
124
0.761873
altlinux/admc
36
14
14
GPL-3.0
9/20/2024, 10:44:59 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
1,538,877
general_group_tab.h
altlinux_admc/src/admc/tabs/general_group_tab.h
/* * ADMC - AD Management Center * * Copyright (C) 2020-2022 BaseALT Ltd. * Copyright (C) 2020-2022 Dmitry Degtyarev * * 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 GENERAL_GROUP_TAB_H #define GENERAL_GROUP_TAB_H #include <QWidget> class AdObject; class AttributeEdit; class AdInterface; namespace Ui { class GeneralGroupTab; } class GeneralGroupTab final : public QWidget { Q_OBJECT public: Ui::GeneralGroupTab *ui; GeneralGroupTab(QList<AttributeEdit *> *edit_list, QWidget *parent); ~GeneralGroupTab(); // Ctor is used for group's read only result widget GeneralGroupTab(QWidget *parent = nullptr); void update(AdInterface &ad, const AdObject &object); private: QList<AttributeEdit *> m_edit_list; QList<AttributeEdit *> create_edits(); }; #endif /* GENERAL_GROUP_TAB_H */
1,441
C++
.h
42
31.738095
72
0.752704
altlinux/admc
36
14
14
GPL-3.0
9/20/2024, 10:44:59 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
1,538,878
error_tab.h
altlinux_admc/src/admc/tabs/error_tab.h
/* * ADMC - AD Management Center * * Copyright (C) 2020-2022 BaseALT Ltd. * Copyright (C) 2020-2022 Dmitry Degtyarev * * 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 ERROR_TAB_H #define ERROR_TAB_H #include <QWidget> namespace Ui { class ErrorTab; } class ErrorTab final : public QWidget { Q_OBJECT public: Ui::ErrorTab *ui; ErrorTab(QWidget *parent); ~ErrorTab(); }; #endif /* ERROR_TAB_H */
1,032
C++
.h
33
29.030303
72
0.741935
altlinux/admc
36
14
14
GPL-3.0
9/20/2024, 10:44:59 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
1,538,879
select_well_known_trustee_dialog.h
altlinux_admc/src/admc/tabs/select_well_known_trustee_dialog.h
/* * ADMC - AD Management Center * * Copyright (C) 2020-2022 BaseALT Ltd. * Copyright (C) 2020-2022 Dmitry Degtyarev * * 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 SELECT_WELL_KNOWN_TRUSTEE_DIALOG_H #define SELECT_WELL_KNOWN_TRUSTEE_DIALOG_H /** * Dialog for selecting well known trustee's. Well known * trustee's are represented by unique SID's and aren't * related to any real objects, so need a custom dialog for * this. */ #include <QDialog> namespace Ui { class SelectWellKnownTrusteeDialog; } class SelectWellKnownTrusteeDialog final : public QDialog { Q_OBJECT public: Ui::SelectWellKnownTrusteeDialog *ui; SelectWellKnownTrusteeDialog(QWidget *parent); ~SelectWellKnownTrusteeDialog(); QList<QByteArray> get_selected() const; }; #endif /* SELECT_WELL_KNOWN_TRUSTEE_DIALOG_H */
1,437
C++
.h
40
33.625
72
0.76513
altlinux/admc
36
14
14
GPL-3.0
9/20/2024, 10:44:59 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
1,538,880
os_tab.h
altlinux_admc/src/admc/tabs/os_tab.h
/* * ADMC - AD Management Center * * Copyright (C) 2020-2022 BaseALT Ltd. * Copyright (C) 2020-2022 Dmitry Degtyarev * * 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 OS_TAB_H #define OS_TAB_H #include <QWidget> class AttributeEdit; namespace Ui { class OSTab; } class OSTab final : public QWidget { Q_OBJECT public: Ui::OSTab *ui; OSTab(QList<AttributeEdit *> *edit_list, QWidget *parent); ~OSTab(); }; #endif /* OS_TAB_H */
1,065
C++
.h
34
29.088235
72
0.739003
altlinux/admc
36
14
14
GPL-3.0
9/20/2024, 10:44:59 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
1,538,881
general_user_tab.h
altlinux_admc/src/admc/tabs/general_user_tab.h
/* * ADMC - AD Management Center * * Copyright (C) 2020-2022 BaseALT Ltd. * Copyright (C) 2020-2022 Dmitry Degtyarev * * 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 GENERAL_USER_TAB_H #define GENERAL_USER_TAB_H #include <QWidget> class AdObject; class AdInterface; class AttributeEdit; namespace Ui { class GeneralUserTab; } class GeneralUserTab final : public QWidget { Q_OBJECT public: Ui::GeneralUserTab *ui; GeneralUserTab(QList<AttributeEdit *> *edit_list, QWidget *parent); ~GeneralUserTab(); // Ctor is used for user's read only result widget GeneralUserTab(QWidget *parent = nullptr); void update(AdInterface &ad, const AdObject &object); private: QList<AttributeEdit *> m_edit_list; QList<AttributeEdit *> create_edits(); }; #endif /* GENERAL_USER_TAB_H */
1,432
C++
.h
42
31.5
72
0.750908
altlinux/admc
36
14
14
GPL-3.0
9/20/2024, 10:44:59 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
1,538,882
object_tab.h
altlinux_admc/src/admc/tabs/object_tab.h
/* * ADMC - AD Management Center * * Copyright (C) 2020-2022 BaseALT Ltd. * Copyright (C) 2020-2022 Dmitry Degtyarev * * 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 OBJECT_TAB_H #define OBJECT_TAB_H #include <QWidget> class AttributeEdit; namespace Ui { class ObjectTab; } // Object attributes, same for all types class ObjectTab final : public QWidget { Q_OBJECT public: Ui::ObjectTab *ui; ObjectTab(QList<AttributeEdit *> *edit_list, QWidget *parent); ~ObjectTab(); }; #endif /* OBJECT_TAB_H */
1,138
C++
.h
35
30.314286
72
0.747945
altlinux/admc
36
14
14
GPL-3.0
9/20/2024, 10:44:59 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
1,538,883
general_policy_tab.h
altlinux_admc/src/admc/tabs/general_policy_tab.h
/* * ADMC - AD Management Center * * Copyright (C) 2020-2022 BaseALT Ltd. * Copyright (C) 2020-2022 Dmitry Degtyarev * * 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 GENERAL_POLICY_TAB_H #define GENERAL_POLICY_TAB_H #include "attribute_edits/attribute_edit.h" #include <QWidget> class AdObject; class GeneralPolicyTabEdit; class AttributeEdit; namespace Ui { class GeneralPolicyTab; } class GeneralPolicyTab final : public QWidget { Q_OBJECT public: Ui::GeneralPolicyTab *ui; GeneralPolicyTab(QList<AttributeEdit *> *edit_list, QWidget *parent); ~GeneralPolicyTab(); }; class GeneralPolicyTabEdit final : public AttributeEdit { Q_OBJECT public: GeneralPolicyTabEdit(Ui::GeneralPolicyTab *ui, QObject *parent); void load(AdInterface &ad, const AdObject &object) override; private: Ui::GeneralPolicyTab *ui; }; #endif /* GENERAL_POLICY_TAB_H */
1,503
C++
.h
45
31.022222
73
0.76556
altlinux/admc
36
14
14
GPL-3.0
9/20/2024, 10:44:59 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
1,538,884
general_shared_folder_tab.h
altlinux_admc/src/admc/tabs/general_shared_folder_tab.h
/* * ADMC - AD Management Center * * Copyright (C) 2020-2022 BaseALT Ltd. * Copyright (C) 2020-2022 Dmitry Degtyarev * * 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 GENERAL_SHARED_FOLDER_TAB_H #define GENERAL_SHARED_FOLDER_TAB_H #include <QWidget> class QLabel; class AdObject; class AttributeEdit; namespace Ui { class GeneralSharedFolderTab; } class GeneralSharedFolderTab final : public QWidget { Q_OBJECT public: Ui::GeneralSharedFolderTab *ui; GeneralSharedFolderTab(QList<AttributeEdit *> *edit_list, QWidget *parent); ~GeneralSharedFolderTab(); }; #endif /* GENERAL_SHARED_FOLDER_TAB_H */
1,237
C++
.h
36
32.194444
79
0.767812
altlinux/admc
36
14
14
GPL-3.0
9/20/2024, 10:44:59 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
1,538,885
profile_tab.h
altlinux_admc/src/admc/tabs/profile_tab.h
/* * ADMC - AD Management Center * * Copyright (C) 2020-2022 BaseALT Ltd. * Copyright (C) 2020-2022 Dmitry Degtyarev * * 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 PROFILE_TAB_H #define PROFILE_TAB_H #include <QWidget> class AttributeEdit; namespace Ui { class ProfileTab; } class ProfileTab final : public QWidget { Q_OBJECT public: Ui::ProfileTab *ui; ProfileTab(QList<AttributeEdit *> *edit_list, QWidget *parent); ~ProfileTab(); }; #endif /* PROFILE_TAB_H */
1,105
C++
.h
34
30.264706
72
0.748824
altlinux/admc
36
14
14
GPL-3.0
9/20/2024, 10:44:59 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
1,538,886
managed_by_tab.h
altlinux_admc/src/admc/tabs/managed_by_tab.h
/* * ADMC - AD Management Center * * Copyright (C) 2020-2022 BaseALT Ltd. * Copyright (C) 2020-2022 Dmitry Degtyarev * * 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 MANAGED_BY_TAB_H #define MANAGED_BY_TAB_H #include "attribute_edits/attribute_edit.h" #include <QWidget> class ManagerEdit; class ManagedByTabEdit; namespace Ui { class ManagedByTab; } class ManagedByTab final : public QWidget { Q_OBJECT public: Ui::ManagedByTab *ui; ManagedByTab(QList<AttributeEdit *> *edit_list, QWidget *parent); ~ManagedByTab(); }; class ManagedByTabEdit final : public AttributeEdit { Q_OBJECT public: ManagedByTabEdit(Ui::ManagedByTab *ui, QObject *parent); void load(AdInterface &ad, const AdObject &object) override; bool apply(AdInterface &ad, const QString &dn) const override; private: Ui::ManagedByTab *ui; QList<AttributeEdit *> manager_edits; ManagerEdit *manager_edit; void on_manager_edited(); void load_manager_edits(AdInterface &ad); }; #endif /* MANAGED_BY_TAB_H */
1,650
C++
.h
49
30.979592
72
0.751259
altlinux/admc
36
14
14
GPL-3.0
9/20/2024, 10:44:59 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
1,538,887
attributes_tab_proxy.h
altlinux_admc/src/admc/tabs/attributes_tab_proxy.h
/* * ADMC - AD Management Center * * Copyright (C) 2020-2022 BaseALT Ltd. * Copyright (C) 2020-2022 Dmitry Degtyarev * * 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 ATTRIBUTES_TAB_PROXY_H #define ATTRIBUTES_TAB_PROXY_H #include <QSet> #include <QSortFilterProxyModel> class AttributesTabFilterMenu; class AdObject; class AttributesTabProxy final : public QSortFilterProxyModel { public: AttributesTabProxy(AttributesTabFilterMenu *filter_menu, QObject *parent); void load(const AdObject &object); void update_set_attributes(QSet<QString> attributes); private: AttributesTabFilterMenu *filter_menu; QSet<QString> set_attributes; QSet<QString> mandatory_attributes; QSet<QString> optional_attributes; bool filterAcceptsRow(int source_row, const QModelIndex &source_parent) const override; }; #endif /* ATTRIBUTES_TAB_PROXY_H */
1,484
C++
.h
38
36.5
91
0.775922
altlinux/admc
36
14
14
GPL-3.0
9/20/2024, 10:44:59 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
1,538,888
general_ou_tab.h
altlinux_admc/src/admc/tabs/general_ou_tab.h
/* * ADMC - AD Management Center * * Copyright (C) 2020-2022 BaseALT Ltd. * Copyright (C) 2020-2022 Dmitry Degtyarev * * 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 GENERAL_OU_TAB_H #define GENERAL_OU_TAB_H #include <QWidget> class AdObject; class AttributeEdit; namespace Ui { class GeneralOUTab; } class GeneralOUTab final : public QWidget { Q_OBJECT public: Ui::GeneralOUTab *ui; GeneralOUTab(QList<AttributeEdit *> *edit_list, QWidget *parent); ~GeneralOUTab(); }; #endif /* GENERAL_OU_TAB_H */
1,140
C++
.h
35
30.371429
72
0.752051
altlinux/admc
36
14
14
GPL-3.0
9/20/2024, 10:44:59 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
1,538,889
organization_tab.h
altlinux_admc/src/admc/tabs/organization_tab.h
/* * ADMC - AD Management Center * * Copyright (C) 2020-2022 BaseALT Ltd. * Copyright (C) 2020-2022 Dmitry Degtyarev * * 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 ORGANIZATION_TAB_H #define ORGANIZATION_TAB_H #include "attribute_edits/attribute_edit.h" #include <QWidget> class QStandardItemModel; namespace Ui { class OrganizationTab; } class OrganizationTab final : public QWidget { Q_OBJECT public: Ui::OrganizationTab *ui; OrganizationTab(QList<AttributeEdit *> *edit_list, QWidget *parent); ~OrganizationTab(); }; class OrganizationTabEdit final : public AttributeEdit { Q_OBJECT public: OrganizationTabEdit(Ui::OrganizationTab *ui, QObject *parent); void load(AdInterface &ad, const AdObject &object) override; private: Ui::OrganizationTab *ui; QStandardItemModel *reports_model; }; #endif /* ORGANIZATION_TAB_H */
1,488
C++
.h
44
31.318182
72
0.76257
altlinux/admc
36
14
14
GPL-3.0
9/20/2024, 10:44:59 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
1,538,890
delegation_tab.h
altlinux_admc/src/admc/tabs/delegation_tab.h
/* * ADMC - AD Management Center * * Copyright (C) 2020-2022 BaseALT Ltd. * Copyright (C) 2020-2022 Dmitry Degtyarev * * 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 DELEGATION_TAB_H #define DELEGATION_TAB_H #include <QWidget> class AttributeEdit; namespace Ui { class DelegationTab; } class DelegationTab final : public QWidget { Q_OBJECT public: Ui::DelegationTab *ui; DelegationTab(QList<AttributeEdit *> *edit_list, QWidget *parent); ~DelegationTab(); }; #endif /* DELEGATION_TAB_H */
1,129
C++
.h
34
30.970588
72
0.75437
altlinux/admc
36
14
14
GPL-3.0
9/20/2024, 10:44:59 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
1,538,891
general_computer_tab.h
altlinux_admc/src/admc/tabs/general_computer_tab.h
/* * ADMC - AD Management Center * * Copyright (C) 2020-2022 BaseALT Ltd. * Copyright (C) 2020-2022 Dmitry Degtyarev * * 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 GENERAL_COMPUTER_TAB_H #define GENERAL_COMPUTER_TAB_H #include <QWidget> class AttributeEdit; class AdObject; namespace Ui { class GeneralComputerTab; } class GeneralComputerTab final : public QWidget { Q_OBJECT public: Ui::GeneralComputerTab *ui; GeneralComputerTab(QList<AttributeEdit *> *edit_list, QWidget *parent); ~GeneralComputerTab(); }; #endif /* GENERAL_COMPUTER_TAB_H */
1,188
C++
.h
35
31.742857
75
0.762445
altlinux/admc
36
14
14
GPL-3.0
9/20/2024, 10:44:59 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
1,538,892
address_tab.h
altlinux_admc/src/admc/tabs/address_tab.h
/* * ADMC - AD Management Center * * Copyright (C) 2020-2022 BaseALT Ltd. * Copyright (C) 2020-2022 Dmitry Degtyarev * * 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 ADDRESS_TAB_H #define ADDRESS_TAB_H #include <QWidget> class AttributeEdit; namespace Ui { class AddressTab; } // Address related attributes class AddressTab final : public QWidget { Q_OBJECT public: Ui::AddressTab *ui; AddressTab(QList<AttributeEdit *> *edit_list, QWidget *parent); ~AddressTab(); }; #endif /* ADDRESS_TAB_H */
1,135
C++
.h
35
30.228571
72
0.750916
altlinux/admc
36
14
14
GPL-3.0
9/20/2024, 10:44:59 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
1,538,893
attributes_tab.h
altlinux_admc/src/admc/tabs/attributes_tab.h
/* * ADMC - AD Management Center * * Copyright (C) 2020-2022 BaseALT Ltd. * Copyright (C) 2020-2022 Dmitry Degtyarev * * 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 ATTRIBUTES_TAB_H #define ATTRIBUTES_TAB_H /** * Show attributes of target in a list. Allows * viewing/editing if possible via attribute dialogs. */ #include "attribute_edits/attribute_edit.h" #include <QWidget> enum AttributesColumn { AttributesColumn_Name, AttributesColumn_Value, AttributesColumn_Type, AttributesColumn_COUNT, }; class QStandardItemModel; class QStandardItem; class AttributesTabProxy; class AttributesFilterDialog; class AttributeDialog; class AttributesTabEdit; class QTreeView; class QPushButton; namespace Ui { class AttributesTab; } class AttributesTab final : public QWidget { Q_OBJECT public: Ui::AttributesTab *ui; AttributesTab(QList<AttributeEdit *> *edit_list, QWidget *parent); ~AttributesTab(); }; class AttributesTabEdit final : public AttributeEdit { Q_OBJECT public: AttributesTabEdit(QTreeView *view, QPushButton *filter_button, QPushButton *edit_button, QPushButton *view_button, QPushButton *load_optional_attrs_button_arg, QObject *parent); void load(AdInterface &ad, const AdObject &object) override; bool apply(AdInterface &ad, const QString &dn) const override; private: QTreeView *view; QPushButton *filter_button; QPushButton *edit_button; QPushButton *view_button; QPushButton *load_optional_attrs_button; AttributesFilterDialog *filter_dialog; QStandardItemModel *model; AttributesTabProxy *proxy; QHash<QString, QList<QByteArray>> original; QHash<QString, QList<QByteArray>> current; QList<QString> not_specified_optional_attributes; QString object_dn; void update_edit_and_view_buttons(); void on_double_click(); void edit_attribute(); void view_attribute(); void on_load_optional(); void load_optional_attribute_values(AdInterface &ad); void load_row(const QList<QStandardItem *> &row, const QString &attribute, const QList<QByteArray> &values); QList<QStandardItem *> get_selected_row() const; AttributeDialog *get_attribute_dialog(const bool read_only); void reload_model(); }; #endif /* ATTRIBUTES_TAB_H */
2,918
C++
.h
83
31.807229
118
0.756651
altlinux/admc
36
14
14
GPL-3.0
9/20/2024, 10:44:59 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
1,538,894
membership_tab.h
altlinux_admc/src/admc/tabs/membership_tab.h
/* * ADMC - AD Management Center * * Copyright (C) 2020-2022 BaseALT Ltd. * Copyright (C) 2020-2022 Dmitry Degtyarev * * 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 MEMBERS_TAB_H #define MEMBERS_TAB_H #include "attribute_edits/attribute_edit.h" #include <QWidget> #include <QSet> class QStandardItemModel; class QTreeView; class QPushButton; class QLabel; // Displays and edits membership info which can go both ways // 1. users that are members of group // 2. groups of user is member of // MembersTab and MemberOfTab implement both of those enum MembershipTabType { MembershipTabType_Members, MembershipTabType_MemberOf }; namespace Ui { class MembershipTab; } class MembershipTab final : public QWidget { Q_OBJECT public: Ui::MembershipTab *ui; MembershipTab(QList<AttributeEdit *> *edit_list, const MembershipTabType &type, QWidget *parent); ~MembershipTab(); }; class MembershipTabEdit final : public AttributeEdit { Q_OBJECT public: MembershipTabEdit(QTreeView *view, QPushButton *primary_button, QPushButton *add_button, QPushButton *remove_button, QPushButton *properties_button, QLabel *primary_group_label, const MembershipTabType &type, QObject *parent); void load(AdInterface &ad, const AdObject &object) override; bool apply(AdInterface &ad, const QString &dn) const override; private: QTreeView *view; QPushButton *primary_button; QPushButton *add_button; QPushButton *remove_button; QPushButton *properties_button; QLabel *primary_group_label; MembershipTabType type; QStandardItemModel *model; QSet<QString> original_values; QSet<QString> original_primary_values; QSet<QString> current_values; QSet<QString> current_primary_values; void on_add_button(); void on_remove_button(); void on_primary_button(); void on_properties_button(); void enable_primary_button_on_valid_selection(); void reload_model(); void add_values(QList<QString> values); void remove_values(QList<QString> values); QString get_membership_attribute(); }; #endif /* MEMBERS_TAB_H */
2,727
C++
.h
76
32.789474
230
0.758542
altlinux/admc
36
14
14
GPL-3.0
9/20/2024, 10:44:59 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
1,538,895
telephones_tab.h
altlinux_admc/src/admc/tabs/telephones_tab.h
/* * ADMC - AD Management Center * * Copyright (C) 2020-2022 BaseALT Ltd. * Copyright (C) 2020-2022 Dmitry Degtyarev * * 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 TELEPHONES_TAB_H #define TELEPHONES_TAB_H #include <QWidget> class AttributeEdit; namespace Ui { class TelephonesTab; } class TelephonesTab final : public QWidget { Q_OBJECT public: Ui::TelephonesTab *ui; TelephonesTab(QList<AttributeEdit *> *edit_list, QWidget *parent); ~TelephonesTab(); }; #endif /* TELEPHONES_TAB_H */
1,129
C++
.h
34
30.970588
72
0.75437
altlinux/admc
36
14
14
GPL-3.0
9/20/2024, 10:44:59 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
1,538,896
general_other_tab.h
altlinux_admc/src/admc/tabs/general_other_tab.h
/* * ADMC - AD Management Center * * Copyright (C) 2020-2022 BaseALT Ltd. * Copyright (C) 2020-2022 Dmitry Degtyarev * * 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 GENERAL_OTHER_TAB_H #define GENERAL_OTHER_TAB_H #include <QWidget> class QLabel; class AdObject; class AttributeEdit; namespace Ui { class GeneralOtherTab; } class GeneralOtherTab final : public QWidget { Q_OBJECT public: Ui::GeneralOtherTab *ui; GeneralOtherTab(QList<AttributeEdit *> *edit_list, QWidget *parent); ~GeneralOtherTab(); }; #endif /* GENERAL_OTHER_TAB_H */
1,178
C++
.h
36
30.555556
72
0.758377
altlinux/admc
36
14
14
GPL-3.0
9/20/2024, 10:44:59 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
1,538,897
laps_tab.h
altlinux_admc/src/admc/tabs/laps_tab.h
/* * ADMC - AD Management Center * * Copyright (C) 2020-2022 BaseALT Ltd. * Copyright (C) 2020-2022 Dmitry Degtyarev * * 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 LAPS_TAB_H #define LAPS_TAB_H #include <QWidget> class AttributeEdit; namespace Ui { class LAPSTab; } class LAPSTab final : public QWidget { Q_OBJECT public: Ui::LAPSTab *ui; LAPSTab(QList<AttributeEdit *> *edit_list, QWidget *parent); ~LAPSTab(); }; #endif /* LAPS_TAB_H */
1,081
C++
.h
34
29.558824
72
0.743022
altlinux/admc
36
14
14
GPL-3.0
9/20/2024, 10:44:59 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
1,538,898
general_other_multi_tab.h
altlinux_admc/src/admc/multi_tabs/general_other_multi_tab.h
/* * ADMC - AD Management Center * * Copyright (C) 2020-2022 BaseALT Ltd. * Copyright (C) 2020-2022 Dmitry Degtyarev * * 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 GENERAL_OTHER_MULTI_TAB_H #define GENERAL_OTHER_MULTI_TAB_H /** * General multi tab for all non-user objects. */ #include <QWidget> class AttributeEdit; class QCheckBox; namespace Ui { class GeneralOtherMultiTab; } class GeneralOtherMultiTab final : public QWidget { Q_OBJECT public: Ui::GeneralOtherMultiTab *ui; GeneralOtherMultiTab(QList<AttributeEdit *> *edit_list, QHash<AttributeEdit *, QCheckBox *> *check_map, QWidget *parent); }; #endif /* GENERAL_OTHER_MULTI_TAB_H */
1,283
C++
.h
37
32.567568
125
0.759903
altlinux/admc
36
14
14
GPL-3.0
9/20/2024, 10:44:59 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false