X-Git-Url: https://gitweb.stoutner.com/?p=PrivacyBrowserPC.git;a=blobdiff_plain;f=src%2Fviews%2FDomainSettingsView.h;fp=src%2Fviews%2FDomainSettingsView.h;h=04b2a2c2eea5afe0b8d0f29e8324876b45bdc451;hp=0000000000000000000000000000000000000000;hb=0a7bcc3ab2d2a1015f29293fc9c527c1448a86cf;hpb=8f52378069b5b638dd832d1435e58e1596cc9798 diff --git a/src/views/DomainSettingsView.h b/src/views/DomainSettingsView.h new file mode 100644 index 0000000..04b2a2c --- /dev/null +++ b/src/views/DomainSettingsView.h @@ -0,0 +1,54 @@ +/* + * Copyright © 2022 Soren Stoutner . + * + * This file is part of Privacy Browser PC . + * + * Privacy Browser PC 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. + * + * Privacy Browser PC 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 Privacy Browser PC. If not, see . + */ + +#ifndef DOMAINSETTINGSVIEW_H +#define DOMAINSETTINGSVIEW_H + +// Qt framework headers. +#include +#include + +// KDE Framework headers. +#include + +class DomainSettingsView : public QWidget +{ + // Include the Q_OBJECT macro. + Q_OBJECT + +public: + // The primary constructor. + explicit DomainSettingsView(QWidget *parent); + +public Q_SLOTS: + // The public slots. + void addDomain(); + void deleteDomain(); + +private Q_SLOTS: + // The private slots. + void domainSelected(QModelIndex modelIndex); + +private: + // The private variables. + QListView *domainsListViewPointer; + KLineEdit *domainNameLineEditPointer; + QSqlTableModel *domainsTableModelPointer; +}; +#endif