Go to the documentation of this file.00001 #ifdef CONFIG_NATIVE_WINDOWS
00002 #include <winsock.h>
00003 #endif
00004 #include <qapplication.h>
00005 #include "wpagui.h"
00006
00007 int main( int argc, char ** argv )
00008 {
00009 QApplication a( argc, argv );
00010 WpaGui w;
00011 int ret;
00012
00013 #ifdef CONFIG_NATIVE_WINDOWS
00014 WSADATA wsaData;
00015 if (WSAStartup(MAKEWORD(2, 0), &wsaData)) {
00016 printf("Could not find a usable WinSock.dll\n");
00017 return -1;
00018 }
00019 #endif
00020
00021 w.show();
00022 a.connect( &a, SIGNAL( lastWindowClosed() ), &a, SLOT( quit() ) );
00023 ret = a.exec();
00024
00025 #ifdef CONFIG_NATIVE_WINDOWS
00026 WSACleanup();
00027 #endif
00028
00029 return ret;
00030 }