source: src-qt4/pc-softwaremanager/configDialog.h @ c71b68c

9.2-releasereleng/10.0releng/10.0.1releng/10.0.2releng/10.0.3
Last change on this file since c71b68c was c71b68c, checked in by Ken Moore <ken@…>, 16 months ago

Add a bunch of error loggin to the backend processes, and also add a new dialog for displaying these error logs. Also fix the detection of an update failure.

  • Property mode set to 100644
File size: 2.8 KB
Line 
1/***************************************************************************
2 *   Copyright (C) 2011 - iXsystems                                       *
3 *   kris@pcbsd.org  *
4 *   tim@pcbsd.org   *
5 *   ken@pcbsd.org   *
6 *                                                                         *
7 *   Permission is hereby granted, free of charge, to any person obtaining *
8 *   a copy of this software and associated documentation files (the       *
9 *   "Software"), to deal in the Software without restriction, including   *
10 *   without limitation the rights to use, copy, modify, merge, publish,   *
11 *   distribute, sublicense, and/or sell copies of the Software, and to    *
12 *   permit persons to whom the Software is furnished to do so, subject to *
13 *   the following conditions:                                             *
14 *                                                                         *
15 *   The above copyright notice and this permission notice shall be        *
16 *   included in all copies or substantial portions of the Software.       *
17 *                                                                         *
18 *   THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,       *
19 *   EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF    *
20 *   MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. *
21 *   IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR     *
22 *   OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, *
23 *   ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR *
24 *   OTHER DEALINGS IN THE SOFTWARE.                                       *
25 ***************************************************************************/
26#ifndef _APPCAFE_CONFIG_DIALOG_H
27#define _APPCAFE_CONFIG_DIALOG_H
28
29#include <QDialog>
30#include <QWidget>
31#include <QString>
32#include <QFileDialog>
33#include <QMessageBox>
34#include <QInputDialog>
35
36#include "pbiDBAccess.h"
37
38namespace Ui {
39    class ConfigDialog;
40}
41
42class ConfigDialog : public QDialog{
43        Q_OBJECT
44       
45public:
46        explicit ConfigDialog(QWidget* parent = 0);
47        virtual ~ConfigDialog();
48       
49        void setupDone(); //make sure the public variables below are set before running this
50       
51        //Data setup/retrieval variables
52        bool applyChanges;
53        QStringList xdgOpts;
54        bool keepDownloads;
55        QString downloadDir;
56        PBIDBAccess *DB;
57       
58private:
59        Ui::ConfigDialog *ui;
60        QString repoID;
61       
62private slots:
63        //Repo Tab
64        void refreshRepoTab();
65        void on_combo_repo_currentIndexChanged();
66        void on_tool_repo_add_clicked();
67        void on_tool_repo_remove_clicked();
68        void on_tool_repomirror_add_clicked();
69        void on_tool_repomirror_remove_clicked();
70        void on_tool_repomirror_up_clicked();
71        void on_tool_repomirror_down_clicked();
72       
73        //Config Tab
74        void on_group_download_toggled(bool);
75        void on_tool_getDownloadDir_clicked();
76       
77        //ButtonBox
78        void on_buttonBox_accepted();
79        void on_buttonBox_rejected();
80       
81};
82
83#endif
Note: See TracBrowser for help on using the repository browser.