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

9.2-releasereleng/10.0releng/10.0.1releng/10.0.2
Last change on this file since c71b68c was c71b68c, checked in by Ken Moore <ken@…>, 13 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.2 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_ERROR_DIALOG_H
27#define _APPCAFE_ERROR_DIALOG_H
28
29#include <QDialog>
30#include <QString>
31#include <QStringList>
32
33namespace Ui {
34    class ErrorDialog;
35}
36
37class ErrorDialog : public QDialog{
38  Q_OBJECT
39
40public:
41  ErrorDialog(QWidget* parent = 0);
42  ~ErrorDialog();
43 
44  void setDLGTitle(QString);
45  void setDLGMessage(QString);
46  void setDLGLog(QStringList);
47 
48private:
49  Ui::ErrorDialog *ui;
50 
51private slots:
52  void updateUI(); 
53  void on_buttonBox_accepted();
54  void on_buttonBox_rejected();
55
56};
57
58#endif
59
Note: See TracBrowser for help on using the repository browser.