-
Notifications
You must be signed in to change notification settings - Fork 0
/
mainwindow.h
43 lines (36 loc) · 1012 Bytes
/
mainwindow.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
#include <QtGui>
#include <QMainWindow>
#include <QtWebKit>
#include <QSystemTrayIcon>
#include "bgbridge.h"
class QWebView;
class QLineEdit;
class MainWindow : public QMainWindow
{
Q_OBJECT
public:
MainWindow(const QUrl& url, QApplication& _app);
public slots:
void increaseDatabaseQuota(QWebFrame* frame,QString);
void javaScriptWindowObjectCleared();
void setUnreadCount(int count);
void showMessage(QString icon,QString title,QString msg);
void openUrl(QString url);
QIcon iconWithUnread(QString unread, double scale);
protected slots:
void adjustLocation(QUrl url);
void linkClicked(QUrl url);
void adjustLocation();
void adjustTitle();
void setProgress(int p);
void finishLoading(bool);
void iconActivated(QSystemTrayIcon::ActivationReason);
void createTrayIcon();
void closeEvent(QCloseEvent *event);
private:
QApplication *app;
QSystemTrayIcon *trayIcon;
QWebView *webView;
BGBridge *bridge;
int progress;
};