Remove nativeEventFilter from DomainServer

This commit is contained in:
Ryan Huffman 2014-09-03 07:08:51 -07:00
parent 76bede04aa
commit f3efbb35f4
2 changed files with 1 additions and 17 deletions

View file

@ -75,20 +75,6 @@ DomainServer::DomainServer(int argc, char* argv[]) :
}
}
bool DomainServer::nativeEventFilter(const QByteArray &eventType, void* msg, long* result) {
#ifdef Q_OS_WIN
if (eventType == "windows_generic_MSG") {
MSG* message = (MSG*)msg;
if (message->message == WM_CLOSE) {
qDebug() << "Received WM_CLOSE message, closing";
quit();
return false;
}
}
#endif
return true;
}
bool DomainServer::optionallyReadX509KeyAndCertificate() {
const QString X509_CERTIFICATE_OPTION = "cert";
const QString X509_PRIVATE_KEY_OPTION = "key";

View file

@ -35,15 +35,13 @@
typedef QSharedPointer<Assignment> SharedAssignmentPointer;
typedef QMultiHash<QUuid, WalletTransaction*> TransactionHash;
class DomainServer : public QCoreApplication, public HTTPSRequestHandler, public QAbstractNativeEventFilter {
class DomainServer : public QCoreApplication, public HTTPSRequestHandler {
Q_OBJECT
public:
DomainServer(int argc, char* argv[]);
bool handleHTTPRequest(HTTPConnection* connection, const QUrl& url);
bool handleHTTPSRequest(HTTPSConnection* connection, const QUrl& url);
bool nativeEventFilter(const QByteArray &eventType, void* msg, long* result);
void exit(int retCode = 0);