main.cpp
上传用户:cnryan
上传日期:2008-12-15
资源大小:260k
文件大小:2k
- /*_############################################################################
- _##
- _## main.cpp
- _##
- _## SNMP++v3.2.21
- _## -----------------------------------------------
- _## Copyright (c) 2001-2006 Jochen Katz, Frank Fock
- _##
- _## This software is based on SNMP++2.6 from Hewlett Packard:
- _##
- _## Copyright (c) 1996
- _## Hewlett-Packard Company
- _##
- _## ATTENTION: USE OF THIS SOFTWARE IS SUBJECT TO THE FOLLOWING TERMS.
- _## Permission to use, copy, modify, distribute and/or sell this software
- _## and/or its documentation is hereby granted without fee. User agrees
- _## to display the above copyright notice and this license notice in all
- _## copies of the software and any documentation of the software. User
- _## agrees to assume all liability for the use of the software;
- _## Hewlett-Packard and Jochen Katz make no representations about the
- _## suitability of this software for any purpose. It is provided
- _## "AS-IS" without warranty of any kind, either express or implied. User
- _## hereby grants a royalty-free license to any and all derivatives based
- _## upon this software code base.
- _##
- _## Stuttgart, Germany, Fri Jun 16 17:48:57 CEST 2006
- _##
- _##########################################################################*/
- #include "MainWindow.h"
- #include <qapplication.h>
- int main( int argc, char **argv )
- {
- QApplication a( argc, argv );
- MainWindow *mw = new MainWindow;
- a.setMainWidget( mw );
- mw->setCaption("Simple SNMP++ Example");
- mw->show();
- int result = a.exec();
- delete mw;
- return result;
- }