summaryrefslogtreecommitdiffstats
path: root/contrib/wpa_supplicant/wpa_gui-qt4/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/wpa_supplicant/wpa_gui-qt4/main.cpp')
-rw-r--r--contrib/wpa_supplicant/wpa_gui-qt4/main.cpp44
1 files changed, 29 insertions, 15 deletions
diff --git a/contrib/wpa_supplicant/wpa_gui-qt4/main.cpp b/contrib/wpa_supplicant/wpa_gui-qt4/main.cpp
index a78473a..eeeda39 100644
--- a/contrib/wpa_supplicant/wpa_gui-qt4/main.cpp
+++ b/contrib/wpa_supplicant/wpa_gui-qt4/main.cpp
@@ -1,30 +1,44 @@
+/*
+ * wpa_gui - Application startup
+ * Copyright (c) 2005-2006, Jouni Malinen <j@w1.fi>
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License version 2 as
+ * published by the Free Software Foundation.
+ *
+ * Alternatively, this software may be distributed under the terms of BSD
+ * license.
+ *
+ * See README and COPYING for more details.
+ */
+
#ifdef CONFIG_NATIVE_WINDOWS
#include <winsock.h>
#endif /* CONFIG_NATIVE_WINDOWS */
-#include <qapplication.h>
+#include <QApplication>
#include "wpagui.h"
-int main( int argc, char ** argv )
+int main(int argc, char *argv[])
{
- QApplication a( argc, argv );
- WpaGui w;
- int ret;
+ QApplication app(argc, argv);
+ WpaGui w;
+ int ret;
#ifdef CONFIG_NATIVE_WINDOWS
- WSADATA wsaData;
- if (WSAStartup(MAKEWORD(2, 0), &wsaData)) {
- printf("Could not find a usable WinSock.dll\n");
- return -1;
- }
+ WSADATA wsaData;
+ if (WSAStartup(MAKEWORD(2, 0), &wsaData)) {
+ printf("Could not find a usable WinSock.dll\n");
+ return -1;
+ }
#endif /* CONFIG_NATIVE_WINDOWS */
- w.show();
- a.connect( &a, SIGNAL( lastWindowClosed() ), &a, SLOT( quit() ) );
- ret = a.exec();
+ w.show();
+ app.connect(&app, SIGNAL(lastWindowClosed()), &app, SLOT(quit()));
+ ret = app.exec();
#ifdef CONFIG_NATIVE_WINDOWS
- WSACleanup();
+ WSACleanup();
#endif /* CONFIG_NATIVE_WINDOWS */
- return ret;
+ return ret;
}
OpenPOWER on IntegriCloud