2 * wpa_gui - Application startup
3 * Copyright (c) 2005-2006, Jouni Malinen <j@w1.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.
15 #ifdef CONFIG_NATIVE_WINDOWS
17 #endif /* CONFIG_NATIVE_WINDOWS */
18 #include <QApplication>
22 class WpaGuiApp : public QApplication
25 WpaGuiApp(int &argc, char **argv);
27 virtual void saveState(QSessionManager &manager);
32 WpaGuiApp::WpaGuiApp(int &argc, char **argv) : QApplication(argc, argv)
36 void WpaGuiApp::saveState(QSessionManager &manager)
38 QApplication::saveState(manager);
43 int main(int argc, char *argv[])
45 WpaGuiApp app(argc, argv);
49 #ifdef CONFIG_NATIVE_WINDOWS
51 if (WSAStartup(MAKEWORD(2, 0), &wsaData)) {
52 /* printf("Could not find a usable WinSock.dll\n"); */
55 #endif /* CONFIG_NATIVE_WINDOWS */
61 #ifdef CONFIG_NATIVE_WINDOWS
63 #endif /* CONFIG_NATIVE_WINDOWS */