2
* wpa_gui - Application startup
3
* Copyright (c) 2005-2006, Jouni Malinen <jkmaline@cc.hut.fi>
5
* This program is free software; you can redistribute it and/or modify
6
* it under the terms of the GNU General Public License version 2 as
7
* published by the Free Software Foundation.
9
* Alternatively, this software may be distributed under the terms of BSD
12
* See README and COPYING for more details.
1
15
#ifdef CONFIG_NATIVE_WINDOWS
2
16
#include <winsock.h>
3
17
#endif /* CONFIG_NATIVE_WINDOWS */
4
#include <qapplication.h>
18
#include <QApplication>
7
int main( int argc, char ** argv )
21
int main(int argc, char *argv[])
9
QApplication a( argc, argv );
13
#ifdef CONFIG_NATIVE_WINDOWS
15
if (WSAStartup(MAKEWORD(2, 0), &wsaData)) {
16
printf("Could not find a usable WinSock.dll\n");
19
#endif /* CONFIG_NATIVE_WINDOWS */
22
a.connect( &a, SIGNAL( lastWindowClosed() ), &a, SLOT( quit() ) );
25
#ifdef CONFIG_NATIVE_WINDOWS
27
#endif /* CONFIG_NATIVE_WINDOWS */
23
QApplication app(argc, argv);
27
#ifdef CONFIG_NATIVE_WINDOWS
29
if (WSAStartup(MAKEWORD(2, 0), &wsaData)) {
30
printf("Could not find a usable WinSock.dll\n");
33
#endif /* CONFIG_NATIVE_WINDOWS */
36
app.connect(&app, SIGNAL(lastWindowClosed()), &app, SLOT(quit()));
39
#ifdef CONFIG_NATIVE_WINDOWS
41
#endif /* CONFIG_NATIVE_WINDOWS */