-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updated sources with support for Qt4 from old branch
- Loading branch information
Sergey Dryabzhinsky
committed
Jul 5, 2014
1 parent
b623f49
commit 017c879
Showing
30 changed files
with
1,993 additions
and
1,642 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,17 @@ | ||
qt-webkit-kiosk (1.99.0-1sergey1) unstable; urgency=medium | ||
|
||
* Version 1.99.0 | ||
* Try to combine Qt4 and Qt5 code | ||
|
||
-- Sergey Dryabzhinsky <[email protected]> Sat, 05 Jul 2014 18:59:18 +0400 | ||
|
||
qt-webkit-kiosk (1.05.15-1sergey1) unstable; urgency=low | ||
|
||
* Version 1.05.15: | ||
+ Merge changes from 1.4.11 | ||
- Fixed signal handling - use socketpair for every listening signal... | ||
|
||
-- Sergey Dryabzhinsky <[email protected]> Web, 19 Mar 2014 02:20:00 +0400 | ||
-- Sergey Dryabzhinsky <[email protected]> Wed, 19 Mar 2014 02:20:00 +0400 | ||
|
||
qt-webkit-kiosk (1.05.14-1sergey1) unstable; urgency=low | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
Source: qt-webkit-kiosk | ||
Section: web | ||
Priority: extra | ||
Maintainer: Sergey Dryabzginsky <[email protected]> | ||
Build-Depends: debhelper (>= 7.0.0), libqt4-dev (>=4.7.0), libqtwebkit-dev, libphonon-dev, libqt4-test | ||
Standards-Version: 3.9.2 | ||
Homepage: https://code.google.com/p/qt-webkit-kiosk/ | ||
|
||
Package: qt-webkit-kiosk | ||
Architecture: any | ||
Depends: ${shlibs:Depends}, ${misc:Depends}, phonon-backend-gstreamer | ||
Description: It's one-window browser writen on Qt4 & QtWebkit | ||
This is simple browser written on Qt4 & QtWebkit. | ||
Usualy runing in fullscreen mode, but supports maximized and fixed size window mode. | ||
This browser uses only one, "main" window. So, no popups, no plugins in separate processes, like Chrome do. | ||
Supports several parameters via configuration file: proxy, user-agent, click sound. | ||
Also supports hiding printer dialog and uses default or defined printer. |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,7 +14,7 @@ | |
#endif | ||
|
||
#ifndef VERSION | ||
#define VERSION "0.0.0" | ||
#define VERSION "1.99.0" | ||
#endif | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
#include "embedded_server.h" | ||
#include <QDebug> | ||
|
||
EmbeddedServer::EmbeddedServer( int & argc, char ** argv ) | ||
: QApplication(argc, argv, QApplication::GuiServer) | ||
{ | ||
connect(&startup, SIGNAL(timeout()), this, SLOT(startupSlot())); | ||
startup.setInterval(1); | ||
startup.setSingleShot(true); | ||
startup.start(1); | ||
|
||
process.setProcessChannelMode(QProcess::ForwardedChannels); | ||
connect(&process, SIGNAL(stateChanged(QProcess::ProcessState)), this, SLOT(stateChangedSlot(QProcess::ProcessState))); | ||
} | ||
|
||
void EmbeddedServer::startupSlot() | ||
{ | ||
QStringList cmd(QCoreApplication::arguments()); | ||
qDebug() << "Command line arguments:" << cmd.join(" "); | ||
// Remove app cmd | ||
cmd.removeFirst(); | ||
if (cmd.size() and cmd.first() == "-qws") { | ||
cmd.removeFirst(); | ||
} | ||
if (!cmd.size()) { | ||
qDebug() << "No program in commandline arguments to execute!"; | ||
exit(0); | ||
return; | ||
} | ||
|
||
QString program = cmd.first(); | ||
cmd.removeFirst(); | ||
|
||
qDebug() << "Start:" << endl << " program:" << program << endl << " arguments:" << cmd.join(" "); | ||
|
||
process.start(program, cmd); | ||
} | ||
|
||
void EmbeddedServer::stateChangedSlot(QProcess::ProcessState newState) | ||
{ | ||
if (newState == QProcess::Running) { | ||
qDebug() << "Process started..."; | ||
} | ||
if (newState == QProcess::NotRunning) { | ||
qDebug() << "Process not running... Exiting..."; | ||
exit(0); | ||
} | ||
} | ||
|
||
void EmbeddedServer::aboutToQuitSlot() | ||
{ | ||
if (process.state() == QProcess::Running) { | ||
qDebug() << "Process is running... Terminate it."; | ||
process.terminate(); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
#ifndef EMBEDDED_SERVER_H | ||
#define EMBEDDED_SERVER_H | ||
|
||
/** | ||
* Qapplication for Embedded GUI server | ||
*/ | ||
|
||
#include <QApplication> | ||
#include <QTimer> | ||
#include <QProcess> | ||
|
||
class EmbeddedServer: public QApplication | ||
{ | ||
Q_OBJECT | ||
public: | ||
EmbeddedServer( int & argc, char ** argv ); | ||
|
||
private slots: | ||
void startupSlot(); | ||
void stateChangedSlot(QProcess::ProcessState newState); | ||
void aboutToQuitSlot(); | ||
|
||
private: | ||
QTimer startup; | ||
QProcess process; | ||
}; | ||
|
||
#endif // EMBEDDED_SERVER_H |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.