~ubuntu-branches/ubuntu/oneiric/wpasupplicant/oneiric

« back to all changes in this revision

Viewing changes to wpa_gui/main.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Kel Modderman
  • Date: 2006-10-05 08:04:01 UTC
  • mfrom: (1.2.1 upstream) (2.1.14 edgy)
  • Revision ID: james.westby@ubuntu.com-20061005080401-myfwjtq7di70dyeo
* Update madwifi headers to latest SVN. (Closes: #388316)
* Remove failed attempt at action locking. [debian/functions.sh,
  debian/wpa_action.sh]
* Add hysteresis checking functions, to avoid "event loops" while
  using wpa-roam. [debian/functions.sh, debian/wpa_action.sh]
* Change of co-maintainer email address.
* Add ishex() function to functions.sh to determine wpa-psk value type in
  plaintext or hex. This effectively eliminates the need for the bogus and
  somewhat confusing wpa-passphrase contruct specific to our scripts and
  allows wpa-psk to work with either a 8 to 63 character long plaintext
  string or 64 character long hex string.
* Adjust README.modes to not refer to the redundant wpa-passphrase stuff.
* Add big fat NOTE about acceptable wpa-psk's to top of example gallery.
* Strip surrounding quotes from wpa-ssid if present, instead of just whining
  about them.
* Update email address in copyright blurb of functions.sh, ifupdown.sh and
  wpa_action.sh.  

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#ifdef CONFIG_NATIVE_WINDOWS
 
2
#include <winsock.h>
 
3
#endif /* CONFIG_NATIVE_WINDOWS */
 
4
#include <qapplication.h>
 
5
#include "wpagui.h"
 
6
 
 
7
int main( int argc, char ** argv )
 
8
{
 
9
    QApplication a( argc, argv );
 
10
    WpaGui w;
 
11
    int ret;
 
12
 
 
13
#ifdef CONFIG_NATIVE_WINDOWS
 
14
    WSADATA wsaData;
 
15
    if (WSAStartup(MAKEWORD(2, 0), &wsaData)) {
 
16
        printf("Could not find a usable WinSock.dll\n");
 
17
        return -1;
 
18
    }
 
19
#endif /* CONFIG_NATIVE_WINDOWS */
 
20
 
 
21
    w.show();
 
22
    a.connect( &a, SIGNAL( lastWindowClosed() ), &a, SLOT( quit() ) );
 
23
    ret = a.exec();
 
24
 
 
25
#ifdef CONFIG_NATIVE_WINDOWS
 
26
    WSACleanup();
 
27
#endif /* CONFIG_NATIVE_WINDOWS */
 
28
 
 
29
    return ret;
 
30
}