source: src-qt4/about-gui/mainwindow.h @ 1620346

9.1-release9.2-releasereleng/10.0releng/10.0.1releng/10.0.2
Last change on this file since 1620346 was 1620346, checked in by Kris Moore <kris@…>, 15 months ago

Initial import of PC-BSD /current/ SVN repo

  • Property mode set to 100644
File size: 2.5 KB
Line 
1/**************************************************************************
2*   Copyright (C) 2012 by Yuri Momotyuk                                   *
3*   yurkis@gmail.com                                                      *
4*                                                                         *
5*   Permission is hereby granted, free of charge, to any person obtaining *
6*   a copy of this software and associated documentation files (the       *
7*   "Software"), to deal in the Software without restriction, including   *
8*   without limitation the rights to use, copy, modify, merge, publish,   *
9*   distribute, sublicense, and/or sell copies of the Software, and to    *
10*   permit persons to whom the Software is furnished to do so, subject to *
11*   the following conditions:                                             *
12*                                                                         *
13*   The above copyright notice and this permission notice shall be        *
14*   included in all copies or substantial portions of the Software.       *
15*                                                                         *
16*   THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,       *
17*   EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF    *
18*   MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.*
19*   IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR     *
20*   OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, *
21*   ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR *
22*   OTHER DEALINGS IN THE SOFTWARE.                                       *
23***************************************************************************/
24
25#ifndef MAINWINDOW_H
26#define MAINWINDOW_H
27
28#include <QDialog>
29#include <QProcess>
30
31namespace Ui {
32class MainWindow;
33}
34
35class MainWindow : public QDialog
36{
37    Q_OBJECT
38   
39public:
40    explicit MainWindow(QWidget *parent = 0);
41    ~MainWindow();
42   
43    bool checkNG();
44    bool checkNGPackage(QString name, QString& outVer);
45    void addDEItem(QString name, QString version);
46
47public slots:
48    void slotSingleInstance();
49    void slotPackagesFinished(int exitCode, QProcess::ExitStatus exitStatus );
50
51private slots:
52    void on_pushButton_2_clicked();
53
54    void on_BackButton_clicked();
55
56    void slotReadPkg();   
57
58    void on_pushButton_clicked();
59
60    void on_BackButton_2_clicked();
61
62private:
63    Ui::MainWindow *ui;
64    QProcess* pkginfo;
65};
66
67#endif // MAINWINDOW_H
Note: See TracBrowser for help on using the repository browser.