Rivendellaudio/rdadmin/edit_user.h
Fred Gleason 275c08b156 2017-04-03 Fred Gleason <fredg@paravelsystems.com>
* Added a 'USERS.LOCAL_AUTH' field to the database.
	* Added a 'USERS.PAM_SERVICE' field to the database.
	* Added an index on 'STATIONS.IPV4_ADDRESS' to the database.
	* Incremented the database version to 262.
	* Added 'RDUser::localAuthentication()',
	'RDUser::setLocalAuthentication()', 'RDUser::pamService()' and
	'RDUser::setPamService()' methods in 'lib/rduser.cpp' and
	'lib/rduser.h'.
	* Added 'PAM Service' and 'Authenticate This User Locally' controls
	to the Edit User dialog in 'rdadmin/edit_user.cpp' and
	'rdadmin/edit_user.h'.
	* Added a PAM service configuration in 'conf/rivendell.pam'.
2017-04-03 18:15:07 -04:00

118 lines
3.4 KiB
C++

// edit_user.h
//
// Edit a Rivendell User
//
// (C) Copyright 2002,2016 Fred Gleason <fredg@paravelsystems.com>
//
// This program is free software; you can redistribute it and/or modify
// it under the terms of the GNU General Public License version 2 as
// published by the Free Software Foundation.
//
// 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, write to the Free Software
// Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
//
#ifndef EDIT_USER_H
#define EDIT_USER_H
#include <qdialog.h>
#include <qlistbox.h>
#include <qtextedit.h>
#include <qpixmap.h>
#include <qcheckbox.h>
#include <qsqldatabase.h>
#include <qlineedit.h>
#include <qlabel.h>
#include <qpushbutton.h>
#include <qspinbox.h>
#include <rduser.h>
class EditUser : public QDialog
{
Q_OBJECT
public:
EditUser(const QString &user,QWidget *parent=0);
~EditUser();
QSize sizeHint() const;
QSizePolicy sizePolicy() const;
private slots:
void localAuthToggledData(bool state);
void passwordData();
void groupsData();
void feedsData();
void adminToggledData(bool state);
void okData();
void cancelData();
private:
QLineEdit *user_name_edit;
QLineEdit *user_full_name_edit;
QLineEdit *user_description_edit;
QCheckBox *user_localauth_check;
QLabel *user_localauth_label;
QLineEdit *user_pamservice_edit;
QLabel *user_pamservice_label;
QPushButton *user_password_button;
QLineEdit *user_phone_edit;
QSpinBox *user_webapi_auth_spin;
QCheckBox *user_web_box;
QLabel *user_web_label;
QButtonGroup *user_admin_group;
QButtonGroup *user_prod_group;
QButtonGroup *user_traffic_group;
QButtonGroup *user_onair_group;
QButtonGroup *user_podcast_group;
QCheckBox *user_admin_config_button;
QCheckBox *user_create_carts_button;
QCheckBox *user_delete_carts_button;
QCheckBox *user_modify_carts_button;
QCheckBox *user_edit_audio_button;
QCheckBox *user_voicetrack_log_button;
QCheckBox *user_create_log_button;
QCheckBox *user_delete_log_button;
QCheckBox *user_delete_rec_button;
QCheckBox *user_playout_log_button;
QCheckBox *user_arrange_log_button;
QCheckBox *user_addto_log_button;
QCheckBox *user_removefrom_log_button;
QCheckBox *user_config_panels_button;
QCheckBox *user_modify_template_button;
QCheckBox *user_edit_catches_button;
QCheckBox *user_add_podcast_button;
QCheckBox *user_edit_podcast_button;
QCheckBox *user_delete_podcast_button;
QPushButton *user_assign_perms_button;
QPushButton *user_assign_feeds_button;
QLabel *user_create_carts_label;
QLabel *user_delete_carts_label;
QLabel *user_modify_carts_label;
QLabel *user_edit_audio_label;
QLabel *user_create_log_label;
QLabel *user_delete_log_label;
QLabel *user_delete_rec_label;
QLabel *user_playout_log_label;
QLabel *user_arrange_log_label;
QLabel *user_addto_log_label;
QLabel *user_removefrom_log_label;
QLabel *user_config_panels_label;
QLabel *user_modify_template_label;
QLabel *user_edit_catches_label;
QLabel *user_add_podcast_label;
QLabel *user_edit_podcast_label;
QLabel *user_delete_podcast_label;
QLabel *user_voicetrack_log_label;
RDUser *user_user;
};
#endif