LibEngsas
eupdatenoticedialog.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2010 - 2012 EngSaS - Engineering Solutions and Services Langenbach. All rights reserved.
3 
4  This library is free software; you can redistribute it and/or
5  modify it under the terms of the GNU Lesser General Public
6  License as published by the Free Software Foundation; either
7  version 2.1 of the License, or (at your option) any later version.
8 
9  This library is distributed in the hope that it will be useful,
10  but WITHOUT ANY WARRANTY; without even the implied warranty of
11  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12  Lesser General Public License for more details.
13 
14  You should have received a copy of the GNU Lesser General Public
15  License along with this library; if not, write to the Free Software
16  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
17  MA 02110-1301 USA.
18 */
19 
20 
21 #ifndef EUPDATENOTICEDIALOG_H
22 #define EUPDATENOTICEDIALOG_H
23 
24 #include "eglobal.h"
25 #include "edialog.h"
26 
27 namespace Ui {
28  class EUpdateNoticeDialog;
29 }
30 
31 #include <QUrl>
32 
33 class QNetworkReply;
34 
67 {
68  Q_OBJECT
69  public:
74  EUpdateNoticeDialog(QIcon logo, QUrl url,
75  QWidget *parent = 0, Qt::WindowFlags flags = 0);
79  EUpdateNoticeDialog(QString appName, QIcon logo, QUrl url,
80  QWidget *parent = 0, Qt::WindowFlags flags = 0);
87  void check(QString currentVersion = QString());
88 
89  private slots:
90  void openLink(QString url);
91  void dontShowAgain(int state);
92  void replyFinished();
99  void compare(QString version);
100 
101  private:
102  void init(QIcon logo, QUrl url);
103  QString appName;
104  QString currentVersion;
105  QUrl url;
106  Ui::EUpdateNoticeDialog *ui;
107 };
108 
109 #endif // EUPDATENOTICEDIALOG_H
QString appName
Definition: eupdatenoticedialog.h:103
Definition: eaboutdialog.h:28
QString currentVersion
Definition: eupdatenoticedialog.h:104
#define E_CORE_EXPORT
Definition: eglobal.h:107
QUrl url
Definition: eupdatenoticedialog.h:105
Used to inform about new available versions.
Definition: eupdatenoticedialog.h:66
Mostly the same as EWidget but for QDialog as base class.
Definition: edialog.h:54
void init()
Definition: edialog.cpp:91
Ui::EUpdateNoticeDialog * ui
Definition: eupdatenoticedialog.h:106