diff --git a/Makefile b/Makefile deleted file mode 100644 index ff9baf62..00000000 --- a/Makefile +++ /dev/null @@ -1,1007 +0,0 @@ -############################################################################# -# Makefile for building: kylin-nm -# Generated by qmake (3.1) (Qt 5.9.5) -# Project: kylin-nm.pro -# Template: app -# Command: /usr/lib/qt5/bin/qmake -o Makefile kylin-nm.pro -############################################################################# - -MAKEFILE = Makefile - -####### Compiler, tools and options - -CC = gcc -CXX = g++ -DEFINES = -DQT_DEPRECATED_WARNINGS -DQT_NO_DEBUG -DQT_X11EXTRAS_LIB -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB -CFLAGS = -pipe -O2 -Wall -W -D_REENTRANT -fPIC $(DEFINES) -CXXFLAGS = -pipe -O2 -Wall -W -D_REENTRANT -fPIC $(DEFINES) -INCPATH = -I. -isystem /usr/include/x86_64-linux-gnu/qt5 -isystem /usr/include/x86_64-linux-gnu/qt5/QtX11Extras -isystem /usr/include/x86_64-linux-gnu/qt5/QtWidgets -isystem /usr/include/x86_64-linux-gnu/qt5/QtGui -isystem /usr/include/x86_64-linux-gnu/qt5/QtCore -I. -isystem /usr/include/libdrm -I. -I/usr/lib/x86_64-linux-gnu/qt5/mkspecs/linux-g++ -QMAKE = /usr/lib/qt5/bin/qmake -DEL_FILE = rm -f -CHK_DIR_EXISTS= test -d -MKDIR = mkdir -p -COPY = cp -f -COPY_FILE = cp -f -COPY_DIR = cp -f -R -INSTALL_FILE = install -m 644 -p -INSTALL_PROGRAM = install -m 755 -p -INSTALL_DIR = cp -f -R -QINSTALL = /usr/lib/qt5/bin/qmake -install qinstall -QINSTALL_PROGRAM = /usr/lib/qt5/bin/qmake -install qinstall -exe -DEL_FILE = rm -f -SYMLINK = ln -f -s -DEL_DIR = rmdir -MOVE = mv -f -TAR = tar -cf -COMPRESS = gzip -9f -DISTNAME = kylin-nm1.0.0 -DISTDIR = /home/chenlelin/kylin-nm/kylin-nm-master/.tmp/kylin-nm1.0.0 -LINK = g++ -LFLAGS = -Wl,-O1 -Wl,-rpath-link,/usr/lib/x86_64-linux-gnu -LIBS = $(SUBLIBS) -lQt5X11Extras -lQt5Widgets -lQt5Gui -lQt5Core -lGL -lpthread -AR = ar cqs -RANLIB = -SED = sed -STRIP = strip - -####### Output directory - -OBJECTS_DIR = ./ - -####### Files - -SOURCES = main.cpp \ - mainwindow.cpp \ - ksimplenm.cpp \ - oneconnform.cpp \ - confform.cpp \ - kylin-network-interface.c \ - backthread.cpp \ - onelancform.cpp \ - loadingdiv.cpp \ - dlgconnhidwifi.cpp \ - dlgconnhidwifisecfast.cpp \ - dlgconnhidwifisectunneltls.cpp \ - dlgconnhidwifisecpeap.cpp \ - dlgconnhidwifisectls.cpp \ - dlgconnhidwifisecleap.cpp \ - dlgconnhidwifisecpwd.cpp \ - dlgconnhidwifiwep.cpp \ - dlgconnhidwifileap.cpp \ - dlgconnhidwifiwpa.cpp qrc_nmqrc.cpp \ - moc_mainwindow.cpp \ - moc_ksimplenm.cpp \ - moc_oneconnform.cpp \ - moc_confform.cpp \ - moc_backthread.cpp \ - moc_onelancform.cpp \ - moc_loadingdiv.cpp \ - moc_dlgconnhidwifi.cpp \ - moc_dlgconnhidwifisecfast.cpp \ - moc_dlgconnhidwifisectunneltls.cpp \ - moc_dlgconnhidwifisecpeap.cpp \ - moc_dlgconnhidwifisectls.cpp \ - moc_dlgconnhidwifisecleap.cpp \ - moc_dlgconnhidwifisecpwd.cpp \ - moc_dlgconnhidwifiwep.cpp \ - moc_dlgconnhidwifileap.cpp \ - moc_dlgconnhidwifiwpa.cpp -OBJECTS = main.o \ - mainwindow.o \ - ksimplenm.o \ - oneconnform.o \ - confform.o \ - kylin-network-interface.o \ - backthread.o \ - onelancform.o \ - loadingdiv.o \ - dlgconnhidwifi.o \ - dlgconnhidwifisecfast.o \ - dlgconnhidwifisectunneltls.o \ - dlgconnhidwifisecpeap.o \ - dlgconnhidwifisectls.o \ - dlgconnhidwifisecleap.o \ - dlgconnhidwifisecpwd.o \ - dlgconnhidwifiwep.o \ - dlgconnhidwifileap.o \ - dlgconnhidwifiwpa.o \ - qrc_nmqrc.o \ - moc_mainwindow.o \ - moc_ksimplenm.o \ - moc_oneconnform.o \ - moc_confform.o \ - moc_backthread.o \ - moc_onelancform.o \ - moc_loadingdiv.o \ - moc_dlgconnhidwifi.o \ - moc_dlgconnhidwifisecfast.o \ - moc_dlgconnhidwifisectunneltls.o \ - moc_dlgconnhidwifisecpeap.o \ - moc_dlgconnhidwifisectls.o \ - moc_dlgconnhidwifisecleap.o \ - moc_dlgconnhidwifisecpwd.o \ - moc_dlgconnhidwifiwep.o \ - moc_dlgconnhidwifileap.o \ - moc_dlgconnhidwifiwpa.o -DIST = /usr/lib/x86_64-linux-gnu/qt5/mkspecs/features/spec_pre.prf \ - /usr/lib/x86_64-linux-gnu/qt5/mkspecs/common/unix.conf \ - /usr/lib/x86_64-linux-gnu/qt5/mkspecs/common/linux.conf \ - /usr/lib/x86_64-linux-gnu/qt5/mkspecs/common/sanitize.conf \ - /usr/lib/x86_64-linux-gnu/qt5/mkspecs/common/gcc-base.conf \ - /usr/lib/x86_64-linux-gnu/qt5/mkspecs/common/gcc-base-unix.conf \ - /usr/lib/x86_64-linux-gnu/qt5/mkspecs/common/g++-base.conf \ - /usr/lib/x86_64-linux-gnu/qt5/mkspecs/common/g++-unix.conf \ - /usr/lib/x86_64-linux-gnu/qt5/mkspecs/qconfig.pri \ - /usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_accessibility_support_private.pri \ - /usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_bootstrap_private.pri \ - /usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_concurrent.pri \ - /usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_concurrent_private.pri \ - /usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_core.pri \ - /usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_core_private.pri \ - /usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_dbus.pri \ - /usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_dbus_private.pri \ - /usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_devicediscovery_support_private.pri \ - /usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_egl_support_private.pri \ - /usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_eglfs_kms_support_private.pri \ - /usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_eglfsdeviceintegration_private.pri \ - /usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_eventdispatcher_support_private.pri \ - /usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_fb_support_private.pri \ - /usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_fontdatabase_support_private.pri \ - /usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_glx_support_private.pri \ - /usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_gui.pri \ - /usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_gui_private.pri \ - /usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_input_support_private.pri \ - /usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_kms_support_private.pri \ - /usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_linuxaccessibility_support_private.pri \ - /usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_network.pri \ - /usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_network_private.pri \ - /usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_opengl.pri \ - /usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_opengl_private.pri \ - /usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_openglextensions.pri \ - /usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_openglextensions_private.pri \ - /usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_platformcompositor_support_private.pri \ - /usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_printsupport.pri \ - /usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_printsupport_private.pri \ - /usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_script.pri \ - /usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_scripttools.pri \ - /usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_service_support_private.pri \ - /usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_sql.pri \ - /usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_sql_private.pri \ - /usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_testlib.pri \ - /usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_testlib_private.pri \ - /usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_theme_support_private.pri \ - /usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_widgets.pri \ - /usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_widgets_private.pri \ - /usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_x11extras.pri \ - /usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_xcb_qpa_lib_private.pri \ - /usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_xml.pri \ - /usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_xml_private.pri \ - /usr/lib/x86_64-linux-gnu/qt5/mkspecs/features/qt_functions.prf \ - /usr/lib/x86_64-linux-gnu/qt5/mkspecs/features/qt_config.prf \ - /usr/lib/x86_64-linux-gnu/qt5/mkspecs/linux-g++/qmake.conf \ - /usr/lib/x86_64-linux-gnu/qt5/mkspecs/features/spec_post.prf \ - .qmake.stash \ - /usr/lib/x86_64-linux-gnu/qt5/mkspecs/features/exclusive_builds.prf \ - /usr/lib/x86_64-linux-gnu/qt5/mkspecs/features/toolchain.prf \ - /usr/lib/x86_64-linux-gnu/qt5/mkspecs/features/default_pre.prf \ - /usr/lib/x86_64-linux-gnu/qt5/mkspecs/features/resolve_config.prf \ - /usr/lib/x86_64-linux-gnu/qt5/mkspecs/features/default_post.prf \ - /usr/lib/x86_64-linux-gnu/qt5/mkspecs/features/warn_on.prf \ - /usr/lib/x86_64-linux-gnu/qt5/mkspecs/features/qt.prf \ - /usr/lib/x86_64-linux-gnu/qt5/mkspecs/features/resources.prf \ - /usr/lib/x86_64-linux-gnu/qt5/mkspecs/features/moc.prf \ - /usr/lib/x86_64-linux-gnu/qt5/mkspecs/features/unix/opengl.prf \ - /usr/lib/x86_64-linux-gnu/qt5/mkspecs/features/uic.prf \ - /usr/lib/x86_64-linux-gnu/qt5/mkspecs/features/unix/thread.prf \ - /usr/lib/x86_64-linux-gnu/qt5/mkspecs/features/qmake_use.prf \ - /usr/lib/x86_64-linux-gnu/qt5/mkspecs/features/file_copies.prf \ - /usr/lib/x86_64-linux-gnu/qt5/mkspecs/features/testcase_targets.prf \ - /usr/lib/x86_64-linux-gnu/qt5/mkspecs/features/exceptions.prf \ - /usr/lib/x86_64-linux-gnu/qt5/mkspecs/features/yacc.prf \ - /usr/lib/x86_64-linux-gnu/qt5/mkspecs/features/lex.prf \ - kylin-nm.pro mainwindow.h \ - ksimplenm.h \ - oneconnform.h \ - confform.h \ - kylin-network-interface.h \ - backthread.h \ - onelancform.h \ - loadingdiv.h \ - dlgconnhidwifi.h \ - dlgconnhidwifisecfast.h \ - dlgconnhidwifisectunneltls.h \ - dlgconnhidwifisecpeap.h \ - dlgconnhidwifisectls.h \ - dlgconnhidwifisecleap.h \ - dlgconnhidwifisecpwd.h \ - dlgconnhidwifiwep.h \ - dlgconnhidwifileap.h \ - dlgconnhidwifiwpa.h \ - kylinheadfile.h main.cpp \ - mainwindow.cpp \ - ksimplenm.cpp \ - oneconnform.cpp \ - confform.cpp \ - kylin-network-interface.c \ - backthread.cpp \ - onelancform.cpp \ - loadingdiv.cpp \ - dlgconnhidwifi.cpp \ - dlgconnhidwifisecfast.cpp \ - dlgconnhidwifisectunneltls.cpp \ - dlgconnhidwifisecpeap.cpp \ - dlgconnhidwifisectls.cpp \ - dlgconnhidwifisecleap.cpp \ - dlgconnhidwifisecpwd.cpp \ - dlgconnhidwifiwep.cpp \ - dlgconnhidwifileap.cpp \ - dlgconnhidwifiwpa.cpp -QMAKE_TARGET = kylin-nm -DESTDIR = -TARGET = kylin-nm - - -first: all -####### Build rules - -$(TARGET): ui_mainwindow.h ui_oneconnform.h ui_confform.h ui_onelancform.h ui_dlgconnhidwifi.h ui_dlgconnhidwifisecfast.h ui_dlgconnhidwifisectunneltls.h ui_dlgconnhidwifisecpeap.h ui_dlgconnhidwifisectls.h ui_dlgconnhidwifisecleap.h ui_dlgconnhidwifisecpwd.h ui_dlgconnhidwifiwep.h ui_dlgconnhidwifileap.h ui_dlgconnhidwifiwpa.h $(OBJECTS) - $(LINK) $(LFLAGS) -o $(TARGET) $(OBJECTS) $(OBJCOMP) $(LIBS) - -Makefile: kylin-nm.pro /usr/lib/x86_64-linux-gnu/qt5/mkspecs/linux-g++/qmake.conf /usr/lib/x86_64-linux-gnu/qt5/mkspecs/features/spec_pre.prf \ - /usr/lib/x86_64-linux-gnu/qt5/mkspecs/common/unix.conf \ - /usr/lib/x86_64-linux-gnu/qt5/mkspecs/common/linux.conf \ - /usr/lib/x86_64-linux-gnu/qt5/mkspecs/common/sanitize.conf \ - /usr/lib/x86_64-linux-gnu/qt5/mkspecs/common/gcc-base.conf \ - /usr/lib/x86_64-linux-gnu/qt5/mkspecs/common/gcc-base-unix.conf \ - /usr/lib/x86_64-linux-gnu/qt5/mkspecs/common/g++-base.conf \ - /usr/lib/x86_64-linux-gnu/qt5/mkspecs/common/g++-unix.conf \ - /usr/lib/x86_64-linux-gnu/qt5/mkspecs/qconfig.pri \ - /usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_accessibility_support_private.pri \ - /usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_bootstrap_private.pri \ - /usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_concurrent.pri \ - /usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_concurrent_private.pri \ - /usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_core.pri \ - /usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_core_private.pri \ - /usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_dbus.pri \ - /usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_dbus_private.pri \ - /usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_devicediscovery_support_private.pri \ - /usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_egl_support_private.pri \ - /usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_eglfs_kms_support_private.pri \ - /usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_eglfsdeviceintegration_private.pri \ - /usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_eventdispatcher_support_private.pri \ - /usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_fb_support_private.pri \ - /usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_fontdatabase_support_private.pri \ - /usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_glx_support_private.pri \ - /usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_gui.pri \ - /usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_gui_private.pri \ - /usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_input_support_private.pri \ - /usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_kms_support_private.pri \ - /usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_linuxaccessibility_support_private.pri \ - /usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_network.pri \ - /usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_network_private.pri \ - /usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_opengl.pri \ - /usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_opengl_private.pri \ - /usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_openglextensions.pri \ - /usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_openglextensions_private.pri \ - /usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_platformcompositor_support_private.pri \ - /usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_printsupport.pri \ - /usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_printsupport_private.pri \ - /usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_script.pri \ - /usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_scripttools.pri \ - /usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_service_support_private.pri \ - /usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_sql.pri \ - /usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_sql_private.pri \ - /usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_testlib.pri \ - /usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_testlib_private.pri \ - /usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_theme_support_private.pri \ - /usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_widgets.pri \ - /usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_widgets_private.pri \ - /usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_x11extras.pri \ - /usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_xcb_qpa_lib_private.pri \ - /usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_xml.pri \ - /usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_xml_private.pri \ - /usr/lib/x86_64-linux-gnu/qt5/mkspecs/features/qt_functions.prf \ - /usr/lib/x86_64-linux-gnu/qt5/mkspecs/features/qt_config.prf \ - /usr/lib/x86_64-linux-gnu/qt5/mkspecs/linux-g++/qmake.conf \ - /usr/lib/x86_64-linux-gnu/qt5/mkspecs/features/spec_post.prf \ - .qmake.stash \ - /usr/lib/x86_64-linux-gnu/qt5/mkspecs/features/exclusive_builds.prf \ - /usr/lib/x86_64-linux-gnu/qt5/mkspecs/features/toolchain.prf \ - /usr/lib/x86_64-linux-gnu/qt5/mkspecs/features/default_pre.prf \ - /usr/lib/x86_64-linux-gnu/qt5/mkspecs/features/resolve_config.prf \ - /usr/lib/x86_64-linux-gnu/qt5/mkspecs/features/default_post.prf \ - /usr/lib/x86_64-linux-gnu/qt5/mkspecs/features/warn_on.prf \ - /usr/lib/x86_64-linux-gnu/qt5/mkspecs/features/qt.prf \ - /usr/lib/x86_64-linux-gnu/qt5/mkspecs/features/resources.prf \ - /usr/lib/x86_64-linux-gnu/qt5/mkspecs/features/moc.prf \ - /usr/lib/x86_64-linux-gnu/qt5/mkspecs/features/unix/opengl.prf \ - /usr/lib/x86_64-linux-gnu/qt5/mkspecs/features/uic.prf \ - /usr/lib/x86_64-linux-gnu/qt5/mkspecs/features/unix/thread.prf \ - /usr/lib/x86_64-linux-gnu/qt5/mkspecs/features/qmake_use.prf \ - /usr/lib/x86_64-linux-gnu/qt5/mkspecs/features/file_copies.prf \ - /usr/lib/x86_64-linux-gnu/qt5/mkspecs/features/testcase_targets.prf \ - /usr/lib/x86_64-linux-gnu/qt5/mkspecs/features/exceptions.prf \ - /usr/lib/x86_64-linux-gnu/qt5/mkspecs/features/yacc.prf \ - /usr/lib/x86_64-linux-gnu/qt5/mkspecs/features/lex.prf \ - kylin-nm.pro \ - nmqrc.qrc \ - /usr/lib/x86_64-linux-gnu/libQt5X11Extras.prl \ - /usr/lib/x86_64-linux-gnu/libQt5Widgets.prl \ - /usr/lib/x86_64-linux-gnu/libQt5Gui.prl \ - /usr/lib/x86_64-linux-gnu/libQt5Core.prl - $(QMAKE) -o Makefile kylin-nm.pro -/usr/lib/x86_64-linux-gnu/qt5/mkspecs/features/spec_pre.prf: -/usr/lib/x86_64-linux-gnu/qt5/mkspecs/common/unix.conf: -/usr/lib/x86_64-linux-gnu/qt5/mkspecs/common/linux.conf: -/usr/lib/x86_64-linux-gnu/qt5/mkspecs/common/sanitize.conf: -/usr/lib/x86_64-linux-gnu/qt5/mkspecs/common/gcc-base.conf: -/usr/lib/x86_64-linux-gnu/qt5/mkspecs/common/gcc-base-unix.conf: -/usr/lib/x86_64-linux-gnu/qt5/mkspecs/common/g++-base.conf: -/usr/lib/x86_64-linux-gnu/qt5/mkspecs/common/g++-unix.conf: -/usr/lib/x86_64-linux-gnu/qt5/mkspecs/qconfig.pri: -/usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_accessibility_support_private.pri: -/usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_bootstrap_private.pri: -/usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_concurrent.pri: -/usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_concurrent_private.pri: -/usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_core.pri: -/usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_core_private.pri: -/usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_dbus.pri: -/usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_dbus_private.pri: -/usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_devicediscovery_support_private.pri: -/usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_egl_support_private.pri: -/usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_eglfs_kms_support_private.pri: -/usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_eglfsdeviceintegration_private.pri: -/usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_eventdispatcher_support_private.pri: -/usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_fb_support_private.pri: -/usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_fontdatabase_support_private.pri: -/usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_glx_support_private.pri: -/usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_gui.pri: -/usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_gui_private.pri: -/usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_input_support_private.pri: -/usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_kms_support_private.pri: -/usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_linuxaccessibility_support_private.pri: -/usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_network.pri: -/usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_network_private.pri: -/usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_opengl.pri: -/usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_opengl_private.pri: -/usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_openglextensions.pri: -/usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_openglextensions_private.pri: -/usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_platformcompositor_support_private.pri: -/usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_printsupport.pri: -/usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_printsupport_private.pri: -/usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_script.pri: -/usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_scripttools.pri: -/usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_service_support_private.pri: -/usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_sql.pri: -/usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_sql_private.pri: -/usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_testlib.pri: -/usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_testlib_private.pri: -/usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_theme_support_private.pri: -/usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_widgets.pri: -/usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_widgets_private.pri: -/usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_x11extras.pri: -/usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_xcb_qpa_lib_private.pri: -/usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_xml.pri: -/usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_xml_private.pri: -/usr/lib/x86_64-linux-gnu/qt5/mkspecs/features/qt_functions.prf: -/usr/lib/x86_64-linux-gnu/qt5/mkspecs/features/qt_config.prf: -/usr/lib/x86_64-linux-gnu/qt5/mkspecs/linux-g++/qmake.conf: -/usr/lib/x86_64-linux-gnu/qt5/mkspecs/features/spec_post.prf: -.qmake.stash: -/usr/lib/x86_64-linux-gnu/qt5/mkspecs/features/exclusive_builds.prf: -/usr/lib/x86_64-linux-gnu/qt5/mkspecs/features/toolchain.prf: -/usr/lib/x86_64-linux-gnu/qt5/mkspecs/features/default_pre.prf: -/usr/lib/x86_64-linux-gnu/qt5/mkspecs/features/resolve_config.prf: -/usr/lib/x86_64-linux-gnu/qt5/mkspecs/features/default_post.prf: -/usr/lib/x86_64-linux-gnu/qt5/mkspecs/features/warn_on.prf: -/usr/lib/x86_64-linux-gnu/qt5/mkspecs/features/qt.prf: -/usr/lib/x86_64-linux-gnu/qt5/mkspecs/features/resources.prf: -/usr/lib/x86_64-linux-gnu/qt5/mkspecs/features/moc.prf: -/usr/lib/x86_64-linux-gnu/qt5/mkspecs/features/unix/opengl.prf: -/usr/lib/x86_64-linux-gnu/qt5/mkspecs/features/uic.prf: -/usr/lib/x86_64-linux-gnu/qt5/mkspecs/features/unix/thread.prf: -/usr/lib/x86_64-linux-gnu/qt5/mkspecs/features/qmake_use.prf: -/usr/lib/x86_64-linux-gnu/qt5/mkspecs/features/file_copies.prf: -/usr/lib/x86_64-linux-gnu/qt5/mkspecs/features/testcase_targets.prf: -/usr/lib/x86_64-linux-gnu/qt5/mkspecs/features/exceptions.prf: -/usr/lib/x86_64-linux-gnu/qt5/mkspecs/features/yacc.prf: -/usr/lib/x86_64-linux-gnu/qt5/mkspecs/features/lex.prf: -kylin-nm.pro: -nmqrc.qrc: -/usr/lib/x86_64-linux-gnu/libQt5X11Extras.prl: -/usr/lib/x86_64-linux-gnu/libQt5Widgets.prl: -/usr/lib/x86_64-linux-gnu/libQt5Gui.prl: -/usr/lib/x86_64-linux-gnu/libQt5Core.prl: -qmake: FORCE - @$(QMAKE) -o Makefile kylin-nm.pro - -qmake_all: FORCE - - -all: Makefile $(TARGET) - -dist: distdir FORCE - (cd `dirname $(DISTDIR)` && $(TAR) $(DISTNAME).tar $(DISTNAME) && $(COMPRESS) $(DISTNAME).tar) && $(MOVE) `dirname $(DISTDIR)`/$(DISTNAME).tar.gz . && $(DEL_FILE) -r $(DISTDIR) - -distdir: FORCE - @test -d $(DISTDIR) || mkdir -p $(DISTDIR) - $(COPY_FILE) --parents $(DIST) $(DISTDIR)/ - $(COPY_FILE) --parents nmqrc.qrc $(DISTDIR)/ - $(COPY_FILE) --parents /usr/lib/x86_64-linux-gnu/qt5/mkspecs/features/data/dummy.cpp $(DISTDIR)/ - $(COPY_FILE) --parents mainwindow.h ksimplenm.h oneconnform.h confform.h kylin-network-interface.h backthread.h onelancform.h loadingdiv.h dlgconnhidwifi.h dlgconnhidwifisecfast.h dlgconnhidwifisectunneltls.h dlgconnhidwifisecpeap.h dlgconnhidwifisectls.h dlgconnhidwifisecleap.h dlgconnhidwifisecpwd.h dlgconnhidwifiwep.h dlgconnhidwifileap.h dlgconnhidwifiwpa.h kylinheadfile.h $(DISTDIR)/ - $(COPY_FILE) --parents main.cpp mainwindow.cpp ksimplenm.cpp oneconnform.cpp confform.cpp kylin-network-interface.c backthread.cpp onelancform.cpp loadingdiv.cpp dlgconnhidwifi.cpp dlgconnhidwifisecfast.cpp dlgconnhidwifisectunneltls.cpp dlgconnhidwifisecpeap.cpp dlgconnhidwifisectls.cpp dlgconnhidwifisecleap.cpp dlgconnhidwifisecpwd.cpp dlgconnhidwifiwep.cpp dlgconnhidwifileap.cpp dlgconnhidwifiwpa.cpp $(DISTDIR)/ - $(COPY_FILE) --parents mainwindow.ui oneconnform.ui confform.ui onelancform.ui dlgconnhidwifi.ui dlgconnhidwifisecfast.ui dlgconnhidwifisectunneltls.ui dlgconnhidwifisecpeap.ui dlgconnhidwifisectls.ui dlgconnhidwifisecleap.ui dlgconnhidwifisecpwd.ui dlgconnhidwifiwep.ui dlgconnhidwifileap.ui dlgconnhidwifiwpa.ui $(DISTDIR)/ - $(COPY_FILE) --parents res/kylin-nm_zh_CN.ts $(DISTDIR)/ - - -clean: compiler_clean - -$(DEL_FILE) $(OBJECTS) - -$(DEL_FILE) *~ core *.core - - -distclean: clean - -$(DEL_FILE) $(TARGET) - -$(DEL_FILE) .qmake.stash - -$(DEL_FILE) Makefile - - -####### Sub-libraries - -mocclean: compiler_moc_header_clean compiler_moc_source_clean - -mocables: compiler_moc_header_make_all compiler_moc_source_make_all - -check: first - -benchmark: first - -compiler_rcc_make_all: qrc_nmqrc.cpp -compiler_rcc_clean: - -$(DEL_FILE) qrc_nmqrc.cpp -qrc_nmqrc.cpp: nmqrc.qrc \ - /usr/lib/qt5/bin/rcc \ - res/kylin-nm_zh_CN.qm \ - res/wifi.png \ - res/s/setting.png \ - res/s/wifi-full.png \ - res/s/wifi-full-secure.png \ - res/s/wifi-medium.png \ - res/s/network-line.png \ - res/s/wifi-none-secure.png \ - res/s/pnormal.png \ - res/s/pbad.png \ - res/s/wifi-low-secure.png \ - res/s/wifi-high.png \ - res/s/network-offline.png \ - res/s/wifi-medium-secure.png \ - res/s/wifi-none.png \ - res/s/wifi-high-secure.png \ - res/s/wifi-low.png \ - res/s/pgood.png \ - res/s/conning-b/2.png \ - res/s/conning-b/6.png \ - res/s/conning-b/10.png \ - res/s/conning-b/1.png \ - res/s/conning-b/5.png \ - res/s/conning-b/9.png \ - res/s/conning-b/4.png \ - res/s/conning-b/8.png \ - res/s/conning-b/12.png \ - res/s/conning-b/3.png \ - res/s/conning-b/7.png \ - res/s/conning-b/11.png \ - res/s/rescan/2.png \ - res/s/rescan/6.png \ - res/s/rescan/10.png \ - res/s/rescan/1.png \ - res/s/rescan/5.png \ - res/s/rescan/9.png \ - res/s/rescan/4.png \ - res/s/rescan/8.png \ - res/s/rescan/12.png \ - res/s/rescan/3.png \ - res/s/rescan/7.png \ - res/s/rescan/11.png \ - res/s/conning-s/2.png \ - res/s/conning-s/6.png \ - res/s/conning-s/10.png \ - res/s/conning-s/1.png \ - res/s/conning-s/5.png \ - res/s/conning-s/9.png \ - res/s/conning-s/4.png \ - res/s/conning-s/8.png \ - res/s/conning-s/12.png \ - res/s/conning-s/3.png \ - res/s/conning-s/7.png \ - res/s/conning-s/11.png \ - res/h/show-pwd.png \ - res/h/no-pwd-wifi.png \ - res/h/add-hide-wifi.png \ - res/h/hide-pwd.png \ - res/h/right-pwd.png \ - res/h/add-hide-wifi.svg \ - res/g/down_arrow.png \ - res/g/triangle.png \ - res/x/wifi-error.png \ - res/x/network-offline.png \ - res/x/wifi-offline.png \ - res/x/network-line.png \ - res/x/setup.png \ - res/x/network-error.png \ - res/x/wifi-line.png - /usr/lib/qt5/bin/rcc -name nmqrc nmqrc.qrc -o qrc_nmqrc.cpp - -compiler_moc_predefs_make_all: moc_predefs.h -compiler_moc_predefs_clean: - -$(DEL_FILE) moc_predefs.h -moc_predefs.h: /usr/lib/x86_64-linux-gnu/qt5/mkspecs/features/data/dummy.cpp - g++ -pipe -O2 -Wall -W -dM -E -o moc_predefs.h /usr/lib/x86_64-linux-gnu/qt5/mkspecs/features/data/dummy.cpp - -compiler_moc_header_make_all: moc_mainwindow.cpp moc_ksimplenm.cpp moc_oneconnform.cpp moc_confform.cpp moc_backthread.cpp moc_onelancform.cpp moc_loadingdiv.cpp moc_dlgconnhidwifi.cpp moc_dlgconnhidwifisecfast.cpp moc_dlgconnhidwifisectunneltls.cpp moc_dlgconnhidwifisecpeap.cpp moc_dlgconnhidwifisectls.cpp moc_dlgconnhidwifisecleap.cpp moc_dlgconnhidwifisecpwd.cpp moc_dlgconnhidwifiwep.cpp moc_dlgconnhidwifileap.cpp moc_dlgconnhidwifiwpa.cpp -compiler_moc_header_clean: - -$(DEL_FILE) moc_mainwindow.cpp moc_ksimplenm.cpp moc_oneconnform.cpp moc_confform.cpp moc_backthread.cpp moc_onelancform.cpp moc_loadingdiv.cpp moc_dlgconnhidwifi.cpp moc_dlgconnhidwifisecfast.cpp moc_dlgconnhidwifisectunneltls.cpp moc_dlgconnhidwifisecpeap.cpp moc_dlgconnhidwifisectls.cpp moc_dlgconnhidwifisecleap.cpp moc_dlgconnhidwifisecpwd.cpp moc_dlgconnhidwifiwep.cpp moc_dlgconnhidwifileap.cpp moc_dlgconnhidwifiwpa.cpp -moc_mainwindow.cpp: ksimplenm.h \ - loadingdiv.h \ - kylin-network-interface.h \ - mainwindow.h \ - moc_predefs.h \ - /usr/lib/qt5/bin/moc - /usr/lib/qt5/bin/moc $(DEFINES) --include ./moc_predefs.h -I/usr/lib/x86_64-linux-gnu/qt5/mkspecs/linux-g++ -I/home/chenlelin/kylin-nm/kylin-nm-master -I/usr/include/x86_64-linux-gnu/qt5 -I/usr/include/x86_64-linux-gnu/qt5/QtX11Extras -I/usr/include/x86_64-linux-gnu/qt5/QtWidgets -I/usr/include/x86_64-linux-gnu/qt5/QtGui -I/usr/include/x86_64-linux-gnu/qt5/QtCore -I/usr/include/c++/7 -I/usr/include/x86_64-linux-gnu/c++/7 -I/usr/include/c++/7/backward -I/usr/lib/gcc/x86_64-linux-gnu/7/include -I/usr/local/include -I/usr/lib/gcc/x86_64-linux-gnu/7/include-fixed -I/usr/include/x86_64-linux-gnu -I/usr/include mainwindow.h -o moc_mainwindow.cpp - -moc_ksimplenm.cpp: ksimplenm.h \ - moc_predefs.h \ - /usr/lib/qt5/bin/moc - /usr/lib/qt5/bin/moc $(DEFINES) --include ./moc_predefs.h -I/usr/lib/x86_64-linux-gnu/qt5/mkspecs/linux-g++ -I/home/chenlelin/kylin-nm/kylin-nm-master -I/usr/include/x86_64-linux-gnu/qt5 -I/usr/include/x86_64-linux-gnu/qt5/QtX11Extras -I/usr/include/x86_64-linux-gnu/qt5/QtWidgets -I/usr/include/x86_64-linux-gnu/qt5/QtGui -I/usr/include/x86_64-linux-gnu/qt5/QtCore -I/usr/include/c++/7 -I/usr/include/x86_64-linux-gnu/c++/7 -I/usr/include/c++/7/backward -I/usr/lib/gcc/x86_64-linux-gnu/7/include -I/usr/local/include -I/usr/lib/gcc/x86_64-linux-gnu/7/include-fixed -I/usr/include/x86_64-linux-gnu -I/usr/include ksimplenm.h -o moc_ksimplenm.cpp - -moc_oneconnform.cpp: confform.h \ - kylin-network-interface.h \ - backthread.h \ - ksimplenm.h \ - oneconnform.h \ - moc_predefs.h \ - /usr/lib/qt5/bin/moc - /usr/lib/qt5/bin/moc $(DEFINES) --include ./moc_predefs.h -I/usr/lib/x86_64-linux-gnu/qt5/mkspecs/linux-g++ -I/home/chenlelin/kylin-nm/kylin-nm-master -I/usr/include/x86_64-linux-gnu/qt5 -I/usr/include/x86_64-linux-gnu/qt5/QtX11Extras -I/usr/include/x86_64-linux-gnu/qt5/QtWidgets -I/usr/include/x86_64-linux-gnu/qt5/QtGui -I/usr/include/x86_64-linux-gnu/qt5/QtCore -I/usr/include/c++/7 -I/usr/include/x86_64-linux-gnu/c++/7 -I/usr/include/c++/7/backward -I/usr/lib/gcc/x86_64-linux-gnu/7/include -I/usr/local/include -I/usr/lib/gcc/x86_64-linux-gnu/7/include-fixed -I/usr/include/x86_64-linux-gnu -I/usr/include oneconnform.h -o moc_oneconnform.cpp - -moc_confform.cpp: confform.h \ - moc_predefs.h \ - /usr/lib/qt5/bin/moc - /usr/lib/qt5/bin/moc $(DEFINES) --include ./moc_predefs.h -I/usr/lib/x86_64-linux-gnu/qt5/mkspecs/linux-g++ -I/home/chenlelin/kylin-nm/kylin-nm-master -I/usr/include/x86_64-linux-gnu/qt5 -I/usr/include/x86_64-linux-gnu/qt5/QtX11Extras -I/usr/include/x86_64-linux-gnu/qt5/QtWidgets -I/usr/include/x86_64-linux-gnu/qt5/QtGui -I/usr/include/x86_64-linux-gnu/qt5/QtCore -I/usr/include/c++/7 -I/usr/include/x86_64-linux-gnu/c++/7 -I/usr/include/c++/7/backward -I/usr/lib/gcc/x86_64-linux-gnu/7/include -I/usr/local/include -I/usr/lib/gcc/x86_64-linux-gnu/7/include-fixed -I/usr/include/x86_64-linux-gnu -I/usr/include confform.h -o moc_confform.cpp - -moc_backthread.cpp: backthread.h \ - moc_predefs.h \ - /usr/lib/qt5/bin/moc - /usr/lib/qt5/bin/moc $(DEFINES) --include ./moc_predefs.h -I/usr/lib/x86_64-linux-gnu/qt5/mkspecs/linux-g++ -I/home/chenlelin/kylin-nm/kylin-nm-master -I/usr/include/x86_64-linux-gnu/qt5 -I/usr/include/x86_64-linux-gnu/qt5/QtX11Extras -I/usr/include/x86_64-linux-gnu/qt5/QtWidgets -I/usr/include/x86_64-linux-gnu/qt5/QtGui -I/usr/include/x86_64-linux-gnu/qt5/QtCore -I/usr/include/c++/7 -I/usr/include/x86_64-linux-gnu/c++/7 -I/usr/include/c++/7/backward -I/usr/lib/gcc/x86_64-linux-gnu/7/include -I/usr/local/include -I/usr/lib/gcc/x86_64-linux-gnu/7/include-fixed -I/usr/include/x86_64-linux-gnu -I/usr/include backthread.h -o moc_backthread.cpp - -moc_onelancform.cpp: confform.h \ - kylin-network-interface.h \ - backthread.h \ - ksimplenm.h \ - onelancform.h \ - moc_predefs.h \ - /usr/lib/qt5/bin/moc - /usr/lib/qt5/bin/moc $(DEFINES) --include ./moc_predefs.h -I/usr/lib/x86_64-linux-gnu/qt5/mkspecs/linux-g++ -I/home/chenlelin/kylin-nm/kylin-nm-master -I/usr/include/x86_64-linux-gnu/qt5 -I/usr/include/x86_64-linux-gnu/qt5/QtX11Extras -I/usr/include/x86_64-linux-gnu/qt5/QtWidgets -I/usr/include/x86_64-linux-gnu/qt5/QtGui -I/usr/include/x86_64-linux-gnu/qt5/QtCore -I/usr/include/c++/7 -I/usr/include/x86_64-linux-gnu/c++/7 -I/usr/include/c++/7/backward -I/usr/lib/gcc/x86_64-linux-gnu/7/include -I/usr/local/include -I/usr/lib/gcc/x86_64-linux-gnu/7/include-fixed -I/usr/include/x86_64-linux-gnu -I/usr/include onelancform.h -o moc_onelancform.cpp - -moc_loadingdiv.cpp: loadingdiv.h \ - moc_predefs.h \ - /usr/lib/qt5/bin/moc - /usr/lib/qt5/bin/moc $(DEFINES) --include ./moc_predefs.h -I/usr/lib/x86_64-linux-gnu/qt5/mkspecs/linux-g++ -I/home/chenlelin/kylin-nm/kylin-nm-master -I/usr/include/x86_64-linux-gnu/qt5 -I/usr/include/x86_64-linux-gnu/qt5/QtX11Extras -I/usr/include/x86_64-linux-gnu/qt5/QtWidgets -I/usr/include/x86_64-linux-gnu/qt5/QtGui -I/usr/include/x86_64-linux-gnu/qt5/QtCore -I/usr/include/c++/7 -I/usr/include/x86_64-linux-gnu/c++/7 -I/usr/include/c++/7/backward -I/usr/lib/gcc/x86_64-linux-gnu/7/include -I/usr/local/include -I/usr/lib/gcc/x86_64-linux-gnu/7/include-fixed -I/usr/include/x86_64-linux-gnu -I/usr/include loadingdiv.h -o moc_loadingdiv.cpp - -moc_dlgconnhidwifi.cpp: dlgconnhidwifi.h \ - moc_predefs.h \ - /usr/lib/qt5/bin/moc - /usr/lib/qt5/bin/moc $(DEFINES) --include ./moc_predefs.h -I/usr/lib/x86_64-linux-gnu/qt5/mkspecs/linux-g++ -I/home/chenlelin/kylin-nm/kylin-nm-master -I/usr/include/x86_64-linux-gnu/qt5 -I/usr/include/x86_64-linux-gnu/qt5/QtX11Extras -I/usr/include/x86_64-linux-gnu/qt5/QtWidgets -I/usr/include/x86_64-linux-gnu/qt5/QtGui -I/usr/include/x86_64-linux-gnu/qt5/QtCore -I/usr/include/c++/7 -I/usr/include/x86_64-linux-gnu/c++/7 -I/usr/include/c++/7/backward -I/usr/lib/gcc/x86_64-linux-gnu/7/include -I/usr/local/include -I/usr/lib/gcc/x86_64-linux-gnu/7/include-fixed -I/usr/include/x86_64-linux-gnu -I/usr/include dlgconnhidwifi.h -o moc_dlgconnhidwifi.cpp - -moc_dlgconnhidwifisecfast.cpp: dlgconnhidwifisecfast.h \ - moc_predefs.h \ - /usr/lib/qt5/bin/moc - /usr/lib/qt5/bin/moc $(DEFINES) --include ./moc_predefs.h -I/usr/lib/x86_64-linux-gnu/qt5/mkspecs/linux-g++ -I/home/chenlelin/kylin-nm/kylin-nm-master -I/usr/include/x86_64-linux-gnu/qt5 -I/usr/include/x86_64-linux-gnu/qt5/QtX11Extras -I/usr/include/x86_64-linux-gnu/qt5/QtWidgets -I/usr/include/x86_64-linux-gnu/qt5/QtGui -I/usr/include/x86_64-linux-gnu/qt5/QtCore -I/usr/include/c++/7 -I/usr/include/x86_64-linux-gnu/c++/7 -I/usr/include/c++/7/backward -I/usr/lib/gcc/x86_64-linux-gnu/7/include -I/usr/local/include -I/usr/lib/gcc/x86_64-linux-gnu/7/include-fixed -I/usr/include/x86_64-linux-gnu -I/usr/include dlgconnhidwifisecfast.h -o moc_dlgconnhidwifisecfast.cpp - -moc_dlgconnhidwifisectunneltls.cpp: dlgconnhidwifisectunneltls.h \ - moc_predefs.h \ - /usr/lib/qt5/bin/moc - /usr/lib/qt5/bin/moc $(DEFINES) --include ./moc_predefs.h -I/usr/lib/x86_64-linux-gnu/qt5/mkspecs/linux-g++ -I/home/chenlelin/kylin-nm/kylin-nm-master -I/usr/include/x86_64-linux-gnu/qt5 -I/usr/include/x86_64-linux-gnu/qt5/QtX11Extras -I/usr/include/x86_64-linux-gnu/qt5/QtWidgets -I/usr/include/x86_64-linux-gnu/qt5/QtGui -I/usr/include/x86_64-linux-gnu/qt5/QtCore -I/usr/include/c++/7 -I/usr/include/x86_64-linux-gnu/c++/7 -I/usr/include/c++/7/backward -I/usr/lib/gcc/x86_64-linux-gnu/7/include -I/usr/local/include -I/usr/lib/gcc/x86_64-linux-gnu/7/include-fixed -I/usr/include/x86_64-linux-gnu -I/usr/include dlgconnhidwifisectunneltls.h -o moc_dlgconnhidwifisectunneltls.cpp - -moc_dlgconnhidwifisecpeap.cpp: dlgconnhidwifisecpeap.h \ - moc_predefs.h \ - /usr/lib/qt5/bin/moc - /usr/lib/qt5/bin/moc $(DEFINES) --include ./moc_predefs.h -I/usr/lib/x86_64-linux-gnu/qt5/mkspecs/linux-g++ -I/home/chenlelin/kylin-nm/kylin-nm-master -I/usr/include/x86_64-linux-gnu/qt5 -I/usr/include/x86_64-linux-gnu/qt5/QtX11Extras -I/usr/include/x86_64-linux-gnu/qt5/QtWidgets -I/usr/include/x86_64-linux-gnu/qt5/QtGui -I/usr/include/x86_64-linux-gnu/qt5/QtCore -I/usr/include/c++/7 -I/usr/include/x86_64-linux-gnu/c++/7 -I/usr/include/c++/7/backward -I/usr/lib/gcc/x86_64-linux-gnu/7/include -I/usr/local/include -I/usr/lib/gcc/x86_64-linux-gnu/7/include-fixed -I/usr/include/x86_64-linux-gnu -I/usr/include dlgconnhidwifisecpeap.h -o moc_dlgconnhidwifisecpeap.cpp - -moc_dlgconnhidwifisectls.cpp: dlgconnhidwifisectls.h \ - moc_predefs.h \ - /usr/lib/qt5/bin/moc - /usr/lib/qt5/bin/moc $(DEFINES) --include ./moc_predefs.h -I/usr/lib/x86_64-linux-gnu/qt5/mkspecs/linux-g++ -I/home/chenlelin/kylin-nm/kylin-nm-master -I/usr/include/x86_64-linux-gnu/qt5 -I/usr/include/x86_64-linux-gnu/qt5/QtX11Extras -I/usr/include/x86_64-linux-gnu/qt5/QtWidgets -I/usr/include/x86_64-linux-gnu/qt5/QtGui -I/usr/include/x86_64-linux-gnu/qt5/QtCore -I/usr/include/c++/7 -I/usr/include/x86_64-linux-gnu/c++/7 -I/usr/include/c++/7/backward -I/usr/lib/gcc/x86_64-linux-gnu/7/include -I/usr/local/include -I/usr/lib/gcc/x86_64-linux-gnu/7/include-fixed -I/usr/include/x86_64-linux-gnu -I/usr/include dlgconnhidwifisectls.h -o moc_dlgconnhidwifisectls.cpp - -moc_dlgconnhidwifisecleap.cpp: dlgconnhidwifisecleap.h \ - moc_predefs.h \ - /usr/lib/qt5/bin/moc - /usr/lib/qt5/bin/moc $(DEFINES) --include ./moc_predefs.h -I/usr/lib/x86_64-linux-gnu/qt5/mkspecs/linux-g++ -I/home/chenlelin/kylin-nm/kylin-nm-master -I/usr/include/x86_64-linux-gnu/qt5 -I/usr/include/x86_64-linux-gnu/qt5/QtX11Extras -I/usr/include/x86_64-linux-gnu/qt5/QtWidgets -I/usr/include/x86_64-linux-gnu/qt5/QtGui -I/usr/include/x86_64-linux-gnu/qt5/QtCore -I/usr/include/c++/7 -I/usr/include/x86_64-linux-gnu/c++/7 -I/usr/include/c++/7/backward -I/usr/lib/gcc/x86_64-linux-gnu/7/include -I/usr/local/include -I/usr/lib/gcc/x86_64-linux-gnu/7/include-fixed -I/usr/include/x86_64-linux-gnu -I/usr/include dlgconnhidwifisecleap.h -o moc_dlgconnhidwifisecleap.cpp - -moc_dlgconnhidwifisecpwd.cpp: dlgconnhidwifisecpwd.h \ - moc_predefs.h \ - /usr/lib/qt5/bin/moc - /usr/lib/qt5/bin/moc $(DEFINES) --include ./moc_predefs.h -I/usr/lib/x86_64-linux-gnu/qt5/mkspecs/linux-g++ -I/home/chenlelin/kylin-nm/kylin-nm-master -I/usr/include/x86_64-linux-gnu/qt5 -I/usr/include/x86_64-linux-gnu/qt5/QtX11Extras -I/usr/include/x86_64-linux-gnu/qt5/QtWidgets -I/usr/include/x86_64-linux-gnu/qt5/QtGui -I/usr/include/x86_64-linux-gnu/qt5/QtCore -I/usr/include/c++/7 -I/usr/include/x86_64-linux-gnu/c++/7 -I/usr/include/c++/7/backward -I/usr/lib/gcc/x86_64-linux-gnu/7/include -I/usr/local/include -I/usr/lib/gcc/x86_64-linux-gnu/7/include-fixed -I/usr/include/x86_64-linux-gnu -I/usr/include dlgconnhidwifisecpwd.h -o moc_dlgconnhidwifisecpwd.cpp - -moc_dlgconnhidwifiwep.cpp: dlgconnhidwifiwep.h \ - moc_predefs.h \ - /usr/lib/qt5/bin/moc - /usr/lib/qt5/bin/moc $(DEFINES) --include ./moc_predefs.h -I/usr/lib/x86_64-linux-gnu/qt5/mkspecs/linux-g++ -I/home/chenlelin/kylin-nm/kylin-nm-master -I/usr/include/x86_64-linux-gnu/qt5 -I/usr/include/x86_64-linux-gnu/qt5/QtX11Extras -I/usr/include/x86_64-linux-gnu/qt5/QtWidgets -I/usr/include/x86_64-linux-gnu/qt5/QtGui -I/usr/include/x86_64-linux-gnu/qt5/QtCore -I/usr/include/c++/7 -I/usr/include/x86_64-linux-gnu/c++/7 -I/usr/include/c++/7/backward -I/usr/lib/gcc/x86_64-linux-gnu/7/include -I/usr/local/include -I/usr/lib/gcc/x86_64-linux-gnu/7/include-fixed -I/usr/include/x86_64-linux-gnu -I/usr/include dlgconnhidwifiwep.h -o moc_dlgconnhidwifiwep.cpp - -moc_dlgconnhidwifileap.cpp: dlgconnhidwifileap.h \ - moc_predefs.h \ - /usr/lib/qt5/bin/moc - /usr/lib/qt5/bin/moc $(DEFINES) --include ./moc_predefs.h -I/usr/lib/x86_64-linux-gnu/qt5/mkspecs/linux-g++ -I/home/chenlelin/kylin-nm/kylin-nm-master -I/usr/include/x86_64-linux-gnu/qt5 -I/usr/include/x86_64-linux-gnu/qt5/QtX11Extras -I/usr/include/x86_64-linux-gnu/qt5/QtWidgets -I/usr/include/x86_64-linux-gnu/qt5/QtGui -I/usr/include/x86_64-linux-gnu/qt5/QtCore -I/usr/include/c++/7 -I/usr/include/x86_64-linux-gnu/c++/7 -I/usr/include/c++/7/backward -I/usr/lib/gcc/x86_64-linux-gnu/7/include -I/usr/local/include -I/usr/lib/gcc/x86_64-linux-gnu/7/include-fixed -I/usr/include/x86_64-linux-gnu -I/usr/include dlgconnhidwifileap.h -o moc_dlgconnhidwifileap.cpp - -moc_dlgconnhidwifiwpa.cpp: dlgconnhidwifiwpa.h \ - moc_predefs.h \ - /usr/lib/qt5/bin/moc - /usr/lib/qt5/bin/moc $(DEFINES) --include ./moc_predefs.h -I/usr/lib/x86_64-linux-gnu/qt5/mkspecs/linux-g++ -I/home/chenlelin/kylin-nm/kylin-nm-master -I/usr/include/x86_64-linux-gnu/qt5 -I/usr/include/x86_64-linux-gnu/qt5/QtX11Extras -I/usr/include/x86_64-linux-gnu/qt5/QtWidgets -I/usr/include/x86_64-linux-gnu/qt5/QtGui -I/usr/include/x86_64-linux-gnu/qt5/QtCore -I/usr/include/c++/7 -I/usr/include/x86_64-linux-gnu/c++/7 -I/usr/include/c++/7/backward -I/usr/lib/gcc/x86_64-linux-gnu/7/include -I/usr/local/include -I/usr/lib/gcc/x86_64-linux-gnu/7/include-fixed -I/usr/include/x86_64-linux-gnu -I/usr/include dlgconnhidwifiwpa.h -o moc_dlgconnhidwifiwpa.cpp - -compiler_moc_source_make_all: -compiler_moc_source_clean: -compiler_uic_make_all: ui_mainwindow.h ui_oneconnform.h ui_confform.h ui_onelancform.h ui_dlgconnhidwifi.h ui_dlgconnhidwifisecfast.h ui_dlgconnhidwifisectunneltls.h ui_dlgconnhidwifisecpeap.h ui_dlgconnhidwifisectls.h ui_dlgconnhidwifisecleap.h ui_dlgconnhidwifisecpwd.h ui_dlgconnhidwifiwep.h ui_dlgconnhidwifileap.h ui_dlgconnhidwifiwpa.h -compiler_uic_clean: - -$(DEL_FILE) ui_mainwindow.h ui_oneconnform.h ui_confform.h ui_onelancform.h ui_dlgconnhidwifi.h ui_dlgconnhidwifisecfast.h ui_dlgconnhidwifisectunneltls.h ui_dlgconnhidwifisecpeap.h ui_dlgconnhidwifisectls.h ui_dlgconnhidwifisecleap.h ui_dlgconnhidwifisecpwd.h ui_dlgconnhidwifiwep.h ui_dlgconnhidwifileap.h ui_dlgconnhidwifiwpa.h -ui_mainwindow.h: mainwindow.ui \ - /usr/lib/qt5/bin/uic - /usr/lib/qt5/bin/uic mainwindow.ui -o ui_mainwindow.h - -ui_oneconnform.h: oneconnform.ui \ - /usr/lib/qt5/bin/uic - /usr/lib/qt5/bin/uic oneconnform.ui -o ui_oneconnform.h - -ui_confform.h: confform.ui \ - /usr/lib/qt5/bin/uic - /usr/lib/qt5/bin/uic confform.ui -o ui_confform.h - -ui_onelancform.h: onelancform.ui \ - /usr/lib/qt5/bin/uic - /usr/lib/qt5/bin/uic onelancform.ui -o ui_onelancform.h - -ui_dlgconnhidwifi.h: dlgconnhidwifi.ui \ - /usr/lib/qt5/bin/uic - /usr/lib/qt5/bin/uic dlgconnhidwifi.ui -o ui_dlgconnhidwifi.h - -ui_dlgconnhidwifisecfast.h: dlgconnhidwifisecfast.ui \ - /usr/lib/qt5/bin/uic - /usr/lib/qt5/bin/uic dlgconnhidwifisecfast.ui -o ui_dlgconnhidwifisecfast.h - -ui_dlgconnhidwifisectunneltls.h: dlgconnhidwifisectunneltls.ui \ - /usr/lib/qt5/bin/uic - /usr/lib/qt5/bin/uic dlgconnhidwifisectunneltls.ui -o ui_dlgconnhidwifisectunneltls.h - -ui_dlgconnhidwifisecpeap.h: dlgconnhidwifisecpeap.ui \ - /usr/lib/qt5/bin/uic - /usr/lib/qt5/bin/uic dlgconnhidwifisecpeap.ui -o ui_dlgconnhidwifisecpeap.h - -ui_dlgconnhidwifisectls.h: dlgconnhidwifisectls.ui \ - /usr/lib/qt5/bin/uic - /usr/lib/qt5/bin/uic dlgconnhidwifisectls.ui -o ui_dlgconnhidwifisectls.h - -ui_dlgconnhidwifisecleap.h: dlgconnhidwifisecleap.ui \ - /usr/lib/qt5/bin/uic - /usr/lib/qt5/bin/uic dlgconnhidwifisecleap.ui -o ui_dlgconnhidwifisecleap.h - -ui_dlgconnhidwifisecpwd.h: dlgconnhidwifisecpwd.ui \ - /usr/lib/qt5/bin/uic - /usr/lib/qt5/bin/uic dlgconnhidwifisecpwd.ui -o ui_dlgconnhidwifisecpwd.h - -ui_dlgconnhidwifiwep.h: dlgconnhidwifiwep.ui \ - /usr/lib/qt5/bin/uic - /usr/lib/qt5/bin/uic dlgconnhidwifiwep.ui -o ui_dlgconnhidwifiwep.h - -ui_dlgconnhidwifileap.h: dlgconnhidwifileap.ui \ - /usr/lib/qt5/bin/uic - /usr/lib/qt5/bin/uic dlgconnhidwifileap.ui -o ui_dlgconnhidwifileap.h - -ui_dlgconnhidwifiwpa.h: dlgconnhidwifiwpa.ui \ - /usr/lib/qt5/bin/uic - /usr/lib/qt5/bin/uic dlgconnhidwifiwpa.ui -o ui_dlgconnhidwifiwpa.h - -compiler_yacc_decl_make_all: -compiler_yacc_decl_clean: -compiler_yacc_impl_make_all: -compiler_yacc_impl_clean: -compiler_lex_make_all: -compiler_lex_clean: -compiler_clean: compiler_rcc_clean compiler_moc_predefs_clean compiler_moc_header_clean compiler_uic_clean - -####### Compile - -main.o: main.cpp mainwindow.h \ - ksimplenm.h \ - loadingdiv.h \ - kylin-network-interface.h \ - dlgconnhidwifi.h - $(CXX) -c $(CXXFLAGS) $(INCPATH) -o main.o main.cpp - -mainwindow.o: mainwindow.cpp mainwindow.h \ - ksimplenm.h \ - loadingdiv.h \ - kylin-network-interface.h \ - ui_mainwindow.h \ - oneconnform.h \ - confform.h \ - backthread.h \ - onelancform.h - $(CXX) -c $(CXXFLAGS) $(INCPATH) -o mainwindow.o mainwindow.cpp - -ksimplenm.o: ksimplenm.cpp ksimplenm.h - $(CXX) -c $(CXXFLAGS) $(INCPATH) -o ksimplenm.o ksimplenm.cpp - -oneconnform.o: oneconnform.cpp oneconnform.h \ - confform.h \ - kylin-network-interface.h \ - backthread.h \ - ksimplenm.h \ - ui_oneconnform.h \ - mainwindow.h \ - loadingdiv.h \ - dlgconnhidwifi.h - $(CXX) -c $(CXXFLAGS) $(INCPATH) -o oneconnform.o oneconnform.cpp - -confform.o: confform.cpp confform.h \ - ui_confform.h \ - kylin-network-interface.h \ - backthread.h - $(CXX) -c $(CXXFLAGS) $(INCPATH) -o confform.o confform.cpp - -kylin-network-interface.o: kylin-network-interface.c kylin-network-interface.h - $(CC) -c $(CFLAGS) $(INCPATH) -o kylin-network-interface.o kylin-network-interface.c - -backthread.o: backthread.cpp backthread.h - $(CXX) -c $(CXXFLAGS) $(INCPATH) -o backthread.o backthread.cpp - -onelancform.o: onelancform.cpp onelancform.h \ - confform.h \ - kylin-network-interface.h \ - backthread.h \ - ksimplenm.h \ - ui_onelancform.h \ - mainwindow.h \ - loadingdiv.h - $(CXX) -c $(CXXFLAGS) $(INCPATH) -o onelancform.o onelancform.cpp - -loadingdiv.o: loadingdiv.cpp loadingdiv.h - $(CXX) -c $(CXXFLAGS) $(INCPATH) -o loadingdiv.o loadingdiv.cpp - -dlgconnhidwifi.o: dlgconnhidwifi.cpp dlgconnhidwifi.h \ - kylinheadfile.h \ - dlgconnhidwifileap.h \ - dlgconnhidwifisecfast.h \ - dlgconnhidwifisecleap.h \ - dlgconnhidwifisecpeap.h \ - dlgconnhidwifisecpwd.h \ - dlgconnhidwifisectls.h \ - dlgconnhidwifisectunneltls.h \ - dlgconnhidwifiwep.h \ - dlgconnhidwifiwpa.h \ - ui_dlgconnhidwifi.h \ - backthread.h \ - mainwindow.h \ - ksimplenm.h \ - loadingdiv.h \ - kylin-network-interface.h - $(CXX) -c $(CXXFLAGS) $(INCPATH) -o dlgconnhidwifi.o dlgconnhidwifi.cpp - -dlgconnhidwifisecfast.o: dlgconnhidwifisecfast.cpp dlgconnhidwifisecfast.h \ - ui_dlgconnhidwifisecfast.h \ - kylinheadfile.h \ - dlgconnhidwifi.h \ - dlgconnhidwifileap.h \ - dlgconnhidwifisecleap.h \ - dlgconnhidwifisecpeap.h \ - dlgconnhidwifisecpwd.h \ - dlgconnhidwifisectls.h \ - dlgconnhidwifisectunneltls.h \ - dlgconnhidwifiwep.h \ - dlgconnhidwifiwpa.h - $(CXX) -c $(CXXFLAGS) $(INCPATH) -o dlgconnhidwifisecfast.o dlgconnhidwifisecfast.cpp - -dlgconnhidwifisectunneltls.o: dlgconnhidwifisectunneltls.cpp dlgconnhidwifisectunneltls.h \ - ui_dlgconnhidwifisectunneltls.h \ - kylinheadfile.h \ - dlgconnhidwifi.h \ - dlgconnhidwifileap.h \ - dlgconnhidwifisecfast.h \ - dlgconnhidwifisecleap.h \ - dlgconnhidwifisecpeap.h \ - dlgconnhidwifisecpwd.h \ - dlgconnhidwifisectls.h \ - dlgconnhidwifiwep.h \ - dlgconnhidwifiwpa.h - $(CXX) -c $(CXXFLAGS) $(INCPATH) -o dlgconnhidwifisectunneltls.o dlgconnhidwifisectunneltls.cpp - -dlgconnhidwifisecpeap.o: dlgconnhidwifisecpeap.cpp dlgconnhidwifisecpeap.h \ - ui_dlgconnhidwifisecpeap.h \ - kylinheadfile.h \ - dlgconnhidwifi.h \ - dlgconnhidwifileap.h \ - dlgconnhidwifisecfast.h \ - dlgconnhidwifisecleap.h \ - dlgconnhidwifisecpwd.h \ - dlgconnhidwifisectls.h \ - dlgconnhidwifisectunneltls.h \ - dlgconnhidwifiwep.h \ - dlgconnhidwifiwpa.h - $(CXX) -c $(CXXFLAGS) $(INCPATH) -o dlgconnhidwifisecpeap.o dlgconnhidwifisecpeap.cpp - -dlgconnhidwifisectls.o: dlgconnhidwifisectls.cpp ui_dlgconnhidwifisectls.h \ - kylinheadfile.h \ - dlgconnhidwifi.h \ - dlgconnhidwifileap.h \ - dlgconnhidwifisecfast.h \ - dlgconnhidwifisecleap.h \ - dlgconnhidwifisecpeap.h \ - dlgconnhidwifisecpwd.h \ - dlgconnhidwifisectls.h \ - dlgconnhidwifisectunneltls.h \ - dlgconnhidwifiwep.h \ - dlgconnhidwifiwpa.h - $(CXX) -c $(CXXFLAGS) $(INCPATH) -o dlgconnhidwifisectls.o dlgconnhidwifisectls.cpp - -dlgconnhidwifisecleap.o: dlgconnhidwifisecleap.cpp dlgconnhidwifisecleap.h \ - ui_dlgconnhidwifisecleap.h \ - kylinheadfile.h \ - dlgconnhidwifi.h \ - dlgconnhidwifileap.h \ - dlgconnhidwifisecfast.h \ - dlgconnhidwifisecpeap.h \ - dlgconnhidwifisecpwd.h \ - dlgconnhidwifisectls.h \ - dlgconnhidwifisectunneltls.h \ - dlgconnhidwifiwep.h \ - dlgconnhidwifiwpa.h - $(CXX) -c $(CXXFLAGS) $(INCPATH) -o dlgconnhidwifisecleap.o dlgconnhidwifisecleap.cpp - -dlgconnhidwifisecpwd.o: dlgconnhidwifisecpwd.cpp dlgconnhidwifisecpwd.h \ - ui_dlgconnhidwifisecpwd.h \ - kylinheadfile.h \ - dlgconnhidwifi.h \ - dlgconnhidwifileap.h \ - dlgconnhidwifisecfast.h \ - dlgconnhidwifisecleap.h \ - dlgconnhidwifisecpeap.h \ - dlgconnhidwifisectls.h \ - dlgconnhidwifisectunneltls.h \ - dlgconnhidwifiwep.h \ - dlgconnhidwifiwpa.h - $(CXX) -c $(CXXFLAGS) $(INCPATH) -o dlgconnhidwifisecpwd.o dlgconnhidwifisecpwd.cpp - -dlgconnhidwifiwep.o: dlgconnhidwifiwep.cpp ui_dlgconnhidwifiwep.h \ - kylinheadfile.h \ - dlgconnhidwifi.h \ - dlgconnhidwifileap.h \ - dlgconnhidwifisecfast.h \ - dlgconnhidwifisecleap.h \ - dlgconnhidwifisecpeap.h \ - dlgconnhidwifisecpwd.h \ - dlgconnhidwifisectls.h \ - dlgconnhidwifisectunneltls.h \ - dlgconnhidwifiwep.h \ - dlgconnhidwifiwpa.h - $(CXX) -c $(CXXFLAGS) $(INCPATH) -o dlgconnhidwifiwep.o dlgconnhidwifiwep.cpp - -dlgconnhidwifileap.o: dlgconnhidwifileap.cpp ui_dlgconnhidwifileap.h \ - kylinheadfile.h \ - dlgconnhidwifi.h \ - dlgconnhidwifileap.h \ - dlgconnhidwifisecfast.h \ - dlgconnhidwifisecleap.h \ - dlgconnhidwifisecpeap.h \ - dlgconnhidwifisecpwd.h \ - dlgconnhidwifisectls.h \ - dlgconnhidwifisectunneltls.h \ - dlgconnhidwifiwep.h \ - dlgconnhidwifiwpa.h - $(CXX) -c $(CXXFLAGS) $(INCPATH) -o dlgconnhidwifileap.o dlgconnhidwifileap.cpp - -dlgconnhidwifiwpa.o: dlgconnhidwifiwpa.cpp dlgconnhidwifiwpa.h \ - ui_dlgconnhidwifiwpa.h \ - kylinheadfile.h \ - dlgconnhidwifi.h \ - dlgconnhidwifileap.h \ - dlgconnhidwifisecfast.h \ - dlgconnhidwifisecleap.h \ - dlgconnhidwifisecpeap.h \ - dlgconnhidwifisecpwd.h \ - dlgconnhidwifisectls.h \ - dlgconnhidwifisectunneltls.h \ - dlgconnhidwifiwep.h \ - backthread.h \ - mainwindow.h \ - ksimplenm.h \ - loadingdiv.h \ - kylin-network-interface.h - $(CXX) -c $(CXXFLAGS) $(INCPATH) -o dlgconnhidwifiwpa.o dlgconnhidwifiwpa.cpp - -qrc_nmqrc.o: qrc_nmqrc.cpp - $(CXX) -c $(CXXFLAGS) $(INCPATH) -o qrc_nmqrc.o qrc_nmqrc.cpp - -moc_mainwindow.o: moc_mainwindow.cpp - $(CXX) -c $(CXXFLAGS) $(INCPATH) -o moc_mainwindow.o moc_mainwindow.cpp - -moc_ksimplenm.o: moc_ksimplenm.cpp - $(CXX) -c $(CXXFLAGS) $(INCPATH) -o moc_ksimplenm.o moc_ksimplenm.cpp - -moc_oneconnform.o: moc_oneconnform.cpp - $(CXX) -c $(CXXFLAGS) $(INCPATH) -o moc_oneconnform.o moc_oneconnform.cpp - -moc_confform.o: moc_confform.cpp - $(CXX) -c $(CXXFLAGS) $(INCPATH) -o moc_confform.o moc_confform.cpp - -moc_backthread.o: moc_backthread.cpp - $(CXX) -c $(CXXFLAGS) $(INCPATH) -o moc_backthread.o moc_backthread.cpp - -moc_onelancform.o: moc_onelancform.cpp - $(CXX) -c $(CXXFLAGS) $(INCPATH) -o moc_onelancform.o moc_onelancform.cpp - -moc_loadingdiv.o: moc_loadingdiv.cpp - $(CXX) -c $(CXXFLAGS) $(INCPATH) -o moc_loadingdiv.o moc_loadingdiv.cpp - -moc_dlgconnhidwifi.o: moc_dlgconnhidwifi.cpp - $(CXX) -c $(CXXFLAGS) $(INCPATH) -o moc_dlgconnhidwifi.o moc_dlgconnhidwifi.cpp - -moc_dlgconnhidwifisecfast.o: moc_dlgconnhidwifisecfast.cpp - $(CXX) -c $(CXXFLAGS) $(INCPATH) -o moc_dlgconnhidwifisecfast.o moc_dlgconnhidwifisecfast.cpp - -moc_dlgconnhidwifisectunneltls.o: moc_dlgconnhidwifisectunneltls.cpp - $(CXX) -c $(CXXFLAGS) $(INCPATH) -o moc_dlgconnhidwifisectunneltls.o moc_dlgconnhidwifisectunneltls.cpp - -moc_dlgconnhidwifisecpeap.o: moc_dlgconnhidwifisecpeap.cpp - $(CXX) -c $(CXXFLAGS) $(INCPATH) -o moc_dlgconnhidwifisecpeap.o moc_dlgconnhidwifisecpeap.cpp - -moc_dlgconnhidwifisectls.o: moc_dlgconnhidwifisectls.cpp - $(CXX) -c $(CXXFLAGS) $(INCPATH) -o moc_dlgconnhidwifisectls.o moc_dlgconnhidwifisectls.cpp - -moc_dlgconnhidwifisecleap.o: moc_dlgconnhidwifisecleap.cpp - $(CXX) -c $(CXXFLAGS) $(INCPATH) -o moc_dlgconnhidwifisecleap.o moc_dlgconnhidwifisecleap.cpp - -moc_dlgconnhidwifisecpwd.o: moc_dlgconnhidwifisecpwd.cpp - $(CXX) -c $(CXXFLAGS) $(INCPATH) -o moc_dlgconnhidwifisecpwd.o moc_dlgconnhidwifisecpwd.cpp - -moc_dlgconnhidwifiwep.o: moc_dlgconnhidwifiwep.cpp - $(CXX) -c $(CXXFLAGS) $(INCPATH) -o moc_dlgconnhidwifiwep.o moc_dlgconnhidwifiwep.cpp - -moc_dlgconnhidwifileap.o: moc_dlgconnhidwifileap.cpp - $(CXX) -c $(CXXFLAGS) $(INCPATH) -o moc_dlgconnhidwifileap.o moc_dlgconnhidwifileap.cpp - -moc_dlgconnhidwifiwpa.o: moc_dlgconnhidwifiwpa.cpp - $(CXX) -c $(CXXFLAGS) $(INCPATH) -o moc_dlgconnhidwifiwpa.o moc_dlgconnhidwifiwpa.cpp - -####### Install - -install_target: first FORCE - @test -d $(INSTALL_ROOT)/usr/bin || mkdir -p $(INSTALL_ROOT)/usr/bin - -$(QINSTALL_PROGRAM) $(QMAKE_TARGET) $(INSTALL_ROOT)/usr/bin/$(QMAKE_TARGET) - -$(STRIP) $(INSTALL_ROOT)/usr/bin/$(QMAKE_TARGET) - -uninstall_target: FORCE - -$(DEL_FILE) $(INSTALL_ROOT)/usr/bin/$(QMAKE_TARGET) - -$(DEL_DIR) $(INSTALL_ROOT)/usr/bin/ - - -install_shells: first FORCE - @test -d $(INSTALL_ROOT)/usr/share/kylin-nm/shell/ || mkdir -p $(INSTALL_ROOT)/usr/share/kylin-nm/shell/ - -$(QINSTALL_PROGRAM) /home/chenlelin/kylin-nm/kylin-nm-master/connup.sh $(INSTALL_ROOT)/usr/share/kylin-nm/shell/connup.sh - -strip $(INSTALL_ROOT)/usr/share/kylin-nm/shell/connup.sh - -uninstall_shells: FORCE - -$(DEL_FILE) -r $(INSTALL_ROOT)/usr/share/kylin-nm/shell/connup.sh - -$(DEL_DIR) $(INSTALL_ROOT)/usr/share/kylin-nm/shell/ - - -install_desktop: first FORCE - @test -d $(INSTALL_ROOT)/etc/xdg/autostart/ || mkdir -p $(INSTALL_ROOT)/etc/xdg/autostart/ - -$(QINSTALL) /home/chenlelin/kylin-nm/kylin-nm-master/kylin-nm.desktop $(INSTALL_ROOT)/etc/xdg/autostart/kylin-nm.desktop - -uninstall_desktop: FORCE - -$(DEL_FILE) -r $(INSTALL_ROOT)/etc/xdg/autostart/kylin-nm.desktop - -$(DEL_DIR) $(INSTALL_ROOT)/etc/xdg/autostart/ - - -install: install_target install_shells install_desktop FORCE - -uninstall: uninstall_target uninstall_shells uninstall_desktop FORCE - -FORCE: - diff --git a/backthread.cpp b/backthread.cpp index 3fb0893e..db4257e0 100644 --- a/backthread.cpp +++ b/backthread.cpp @@ -96,7 +96,11 @@ void BackThread::execDisNet(){ } void BackThread::execEnWifi(){ - system("nmcli radio wifi on;sleep 6"); + if (execGetIface()->lstate == 2){ + system("nmcli networking on;sleep 1"); + emit launchLanDone(); + } + system("nmcli radio wifi on;sleep 5"); emit enWifiDone(); emit btFinish(); } diff --git a/backthread.h b/backthread.h index 19b09d52..a730da96 100644 --- a/backthread.h +++ b/backthread.h @@ -45,6 +45,7 @@ signals: void enNetDone(); void disNetDone(); void enWifiDone(); + void launchLanDone(); void disWifiDone(); void connDone(int connFlag); diff --git a/kylin-nm b/kylin-nm index dd22eb00..57013aa8 100755 Binary files a/kylin-nm and b/kylin-nm differ diff --git a/mainwindow.cpp b/mainwindow.cpp index 617d520a..16aff601 100644 --- a/mainwindow.cpp +++ b/mainwindow.cpp @@ -32,11 +32,11 @@ MainWindow::MainWindow(QWidget *parent) : checkSingle(); - // 如果使用Qt::Popup 任务栏不显示且保留X事件如XCB_FOCUS_OUT, 但如果indicator点击鼠标右键触发,XCB_FOCUS_OUT事件依然会失效 - // 如果使用Qt::ToolTip, Qt::Tool + Qt::WindowStaysOnTopHint, Qt::X11BypassWindowManagerHint等flag则会导致X事件失效 -// this->setWindowFlags(Qt::Popup); +// 如果使用Qt::Popup 任务栏不显示且保留X事件如XCB_FOCUS_OUT, 但如果indicator点击鼠标右键触发,XCB_FOCUS_OUT事件依然会失效 +// 如果使用Qt::ToolTip, Qt::Tool + Qt::WindowStaysOnTopHint, Qt::X11BypassWindowManagerHint等flag则会导致X事件失效 + this->setWindowFlags(Qt::FramelessWindowHint | Qt::Popup); // this->setWindowFlags(Qt::FramelessWindowHint | Qt::Tool | Qt::WindowStaysOnTopHint); - this->setWindowFlags(Qt::FramelessWindowHint); +// this->setWindowFlags(Qt::FramelessWindowHint); this->setWindowOpacity(0.95); @@ -143,7 +143,8 @@ MainWindow::~MainWindow() delete ui; } -void MainWindow::checkSingle(){ +void MainWindow::checkSingle() +{ int fd = open("/tmp/kylin-nm-lock", O_WRONLY | O_CREAT | O_TRUNC, S_IRUSR | S_IWUSR); if (fd < 0) { exit(1); @@ -155,7 +156,8 @@ void MainWindow::checkSingle(){ } } -bool MainWindow::nativeEvent(const QByteArray &eventType, void *message, long *result){ +bool MainWindow::nativeEvent(const QByteArray &eventType, void *message, long *result) +{ Q_UNUSED(result); if(eventType != "xcb_generic_event_t"){ @@ -177,6 +179,7 @@ void MainWindow::createTrayIcon() { trayIconMenu = new QMenu(this); trayIcon = new QSystemTrayIcon(this); + trayIcon->setToolTip(QString(tr("kylin-nm"))); trayIcon->setContextMenu(trayIconMenu); // 初始化托盘所有Icon @@ -206,7 +209,8 @@ void MainWindow::createTrayIcon() setTrayIcon(iconLanOnline); } -void MainWindow::iconStep(){ +void MainWindow::iconStep() +{ if(currentIconIndex < 0){ currentIconIndex = 11; } @@ -227,19 +231,22 @@ void MainWindow::setTrayLoading(bool isLoading){ } } -void MainWindow::startLoading(){ +void MainWindow::startLoading() +{ loading->startLoading(); setTrayLoading(true); } -void MainWindow::stopLoading(){ +void MainWindow::stopLoading() +{ loading->stopLoading(); setTrayLoading(false); getActiveInfo(); } // 获取当前连接的网络和状态并设置图标 -void MainWindow::getActiveInfo(){ +void MainWindow::getActiveInfo() +{ QString actLanName = "--"; QString actWifiName = "--"; @@ -294,7 +301,8 @@ void MainWindow::getActiveInfo(){ } // 初始化网络 -void MainWindow::getIface(){ +void MainWindow::getIface() +{ BackThread *bt = new BackThread(); IFace *iface = bt->execGetIface(); @@ -365,38 +373,63 @@ void MainWindow::getIface(){ void MainWindow::iconActivated(QSystemTrayIcon::ActivationReason reason) { - moveBottomRight(); - if(this->isHidden()){ - this->showNormal(); - }else{ - this->hide(); + // switch (reason) { + // case QSystemTrayIcon::Trigger: + // case QSystemTrayIcon::DoubleClick: + // case QSystemTrayIcon::MiddleClick: + // break; + // } + + switch(reason){ + case QSystemTrayIcon::Trigger: + case QSystemTrayIcon::MiddleClick: + //这里右键点击托盘图标无效 + moveBottomRight(); + if(this->isHidden()){ + this->showNormal(); + }else{ + this->hide(); + } + break; + default: + break; + } -// switch (reason) { -// case QSystemTrayIcon::Trigger: -// case QSystemTrayIcon::DoubleClick: -// case QSystemTrayIcon::MiddleClick: -// break; -// } } void MainWindow::moveBottomRight() { - QPoint pos = QCursor::pos(); - QRect primaryGeometry; - for (QScreen *screen : qApp->screens()) { - if (screen->geometry().contains(pos)) { - primaryGeometry = screen->geometry(); - } + QRect availableGeometry = qApp->primaryScreen()->availableGeometry(); + QRect screenGeometry = qApp->primaryScreen()->geometry(); + + QDesktopWidget* pDesktopWidget = QApplication::desktop(); +// int nScreenCount = QApplication::desktop()->screenCount(); +// QRect deskRect = pDesktopWidget->availableGeometry();//可用区域 + QRect screenRect = pDesktopWidget->screenGeometry();//屏幕区域 + +// qDebug()<<"screenRect.x(): "<move(availableGeometry.x() + availableGeometry.width() - this->width(), availableGeometry.height() - this->height()); + }else { + this->move(availableGeometry.x() + availableGeometry.width() - this->width(), availableGeometry.height() - this->height() - 40); } - if (primaryGeometry.isEmpty()) { - primaryGeometry = qApp->primaryScreen()->geometry(); - } - - this->move(primaryGeometry.x() + primaryGeometry.width() - this->width(), primaryGeometry.height() - this->height()); +// QPoint pos = QCursor::pos(); +// QRect primaryGeometry; +// for (QScreen *screen : qApp->screens()) { +// if (screen->geometry().contains(pos)) { +// primaryGeometry = screen->geometry(); +// } +// } +// if (primaryGeometry.isEmpty()) { +// primaryGeometry = qApp->primaryScreen()->geometry(); +// } +// this->move(primaryGeometry.x() + primaryGeometry.width() - this->width(), primaryGeometry.height() - this->height()); } -bool MainWindow::checkLanOn(){ +bool MainWindow::checkLanOn() +{ BackThread *bt = new BackThread(); IFace *iface = bt->execGetIface(); @@ -407,7 +440,8 @@ bool MainWindow::checkLanOn(){ } } -bool MainWindow::checkWlOn(){ +bool MainWindow::checkWlOn() +{ BackThread *bt = new BackThread(); IFace *iface = bt->execGetIface(); @@ -419,7 +453,8 @@ bool MainWindow::checkWlOn(){ } // 获取lan列表回调 -void MainWindow::getLanListDone(QStringList slist){ +void MainWindow::getLanListDone(QStringList slist) +{ // 清空lan列表 lanListWidget = new QWidget(scrollAreal); lanListWidget->resize(314, 8 + 60 + 46 + 51); @@ -495,13 +530,16 @@ void MainWindow::getLanListDone(QStringList slist){ this->lanListWidget->show(); this->wifiListWidget->hide(); + this->stopLoading(); } // 获取wifi列表回调 -void MainWindow::getWifiListDone(QStringList slist){ +void MainWindow::getWifiListDone(QStringList slist) +{ if (updateFlag == 0){ loadWifiListDone(slist); + this->stopLoading(); } else { updateWifiListDone(slist); updateFlag = 0; @@ -510,7 +548,8 @@ void MainWindow::getWifiListDone(QStringList slist){ } // 加载wifi列表 -void MainWindow::loadWifiListDone(QStringList slist){ +void MainWindow::loadWifiListDone(QStringList slist) +{ // 清空wifi列表 wifiListWidget = new QWidget(scrollAreaw); wifiListWidget->resize(314, 8 + 60 + 46 + 51); @@ -617,7 +656,7 @@ void MainWindow::loadWifiListDone(QStringList slist){ this->lanListWidget->hide(); this->wifiListWidget->show(); - this->stopLoading(); +// this->stopLoading(); } // 更新wifi列表 @@ -635,6 +674,12 @@ void MainWindow::updateWifiListDone(QStringList slist) index ++; } + QList wifiList = wifiListWidget->findChildren(); + if (wifiList.size() <= 1){ + loadWifiListDone(slist); //通常为关闭wifi开关再打开 或是 拔出无线网卡后再插入的情况 + return; + } + //获取表头信息 QString lastHeadLine = lastSlist.at(0); lastHeadLine = lastHeadLine.trimmed(); @@ -654,7 +699,7 @@ void MainWindow::updateWifiListDone(QStringList slist) QString line = slist.at(j); QString wname = line.mid(indexName).trimmed(); - if (lastWname == wname){break;} //到slist最后一个都没找到 + if (lastWname == wname){break;} //在slist最后之前找到了lastWname,则停止 if (j == slist.size()-1){ qDebug()<<"will delete a wifi named "< wifiList = wifiListWidget->findChildren(); @@ -703,9 +748,8 @@ void MainWindow::updateWifiListDone(QStringList slist) QString line = lastSlist.at(j); QString lastWname = line.mid(lastIndexName).trimmed(); - if (lastWname == wname){break;} - //到lastSlist最后一个都没找到 - if (j == lastSlist.size()-1){ + if (lastWname == wname){break;} //上一次的wifi列表已经有名为wname的wifi,则停止 + if (j == lastSlist.size()-1){ //到lastSlist最后一个都没找到,执行下面流程 qDebug()<<"will insert a wifi named "< wifiList = wifiListWidget->findChildren(); int n = wifiList.size(); @@ -793,7 +837,6 @@ void MainWindow::on_btnWifi_clicked() connect(bt, SIGNAL(disWifiDone()), this, SLOT(disWifiDone())); connect(bt, SIGNAL(btFinish()), t, SLOT(quit())); t->start(); - }else{ QThread *t = new QThread(); BackThread *bt = new BackThread(); @@ -801,21 +844,33 @@ void MainWindow::on_btnWifi_clicked() connect(t, SIGNAL(finished()), t, SLOT(deleteLater())); connect(t, SIGNAL(started()), bt, SLOT(execEnWifi())); connect(bt, SIGNAL(enWifiDone()), this, SLOT(enWifiDone())); + connect(bt, SIGNAL(launchLanDone()), this, SLOT(launchLanDone())); connect(bt, SIGNAL(btFinish()), t, SLOT(quit())); t->start(); } + }else{ + if(!checkWlOn()){ + QString txt(tr("keep wired network switch is on before turning on wireless switch")); + QString cmd = "export LANG='en_US.UTF-8';export LANGUAGE='en_US';notify-send '" + txt + "' -t 3800"; + system(cmd.toUtf8().data()); - this->startLoading(); + QThread *t = new QThread(); + BackThread *bt = new BackThread(); + bt->moveToThread(t); + connect(t, SIGNAL(finished()), t, SLOT(deleteLater())); + connect(t, SIGNAL(started()), bt, SLOT(execEnWifi())); + connect(bt, SIGNAL(enWifiDone()), this, SLOT(enWifiDone())); + connect(bt, SIGNAL(launchLanDone()), this, SLOT(launchLanDone())); + connect(bt, SIGNAL(btFinish()), t, SLOT(quit())); + t->start(); + } } + this->startLoading(); } else { - QThread *t = new QThread(); - BackThread *bt = new BackThread(); - bt->moveToThread(t); - connect(t, SIGNAL(finished()), t, SLOT(deleteLater())); - connect(t, SIGNAL(started()), bt, SLOT(execDisWifi())); - connect(bt, SIGNAL(disWifiDone()), this, SLOT(keepDisWifiState())); - connect(bt, SIGNAL(btFinish()), t, SLOT(quit())); - t->start(); + QString txt(tr("please insert the wireless network adapter")); + QString cmd = "export LANG='en_US.UTF-8';export LANGUAGE='en_US';notify-send '" + txt + "' -t 3800"; + system(cmd.toUtf8().data()); + keepDisWifiState(); } } @@ -913,11 +968,11 @@ void MainWindow::on_btnWifiList_clicked() on_btnWifiList_pressed(); } -// Lan连接结果,0点击连接成功 1失败 3开机直连成功 +// Lan连接结果,0点击连接成功 1失败 3开机启动网络工具时已经连接 void MainWindow::connLanDone(int connFlag){ if(connFlag == 0){ - this->is_NetLineReady = 1; - this->isByClickConnect = 1; + this->is_wired_line_ready = 1; + this->is_by_click_connect = 1; this->ksnm->execGetLanList(); QString txt(tr("Conn Ethernet Success")); QString cmd = "export LANG='en_US.UTF-8';export LANGUAGE='en_US';notify-send '" + txt + "' -t 3800"; @@ -930,14 +985,14 @@ void MainWindow::connLanDone(int connFlag){ } if(connFlag == 1){ - this->is_NetLineReady = 0; //without net line connect to computer + this->is_wired_line_ready = 0; //without net line connect to computer QString txt(tr("Conn Ethernet Fail")); QString cmd = "export LANG='en_US.UTF-8';export LANGUAGE='en_US';notify-send '" + txt + "' -t 3800"; system(cmd.toUtf8().data()); } if(connFlag == 3){ - this->is_NetLineReady = 1; + this->is_wired_line_ready = 1; check_isLanConnect = new QTimer(this); check_isLanConnect->setTimerType(Qt::PreciseTimer); QObject::connect(check_isLanConnect, SIGNAL(timeout()), this, SLOT(on_isLanConnect())); @@ -960,7 +1015,7 @@ void MainWindow::on_isLanConnect() if(this->is_btnWifiList_clicked== 1) { this->ksnm->execGetWifiList(); } - this->isByClickConnect = 0; + this->is_by_click_connect = 0; check_isLanConnect->stop(); if (iface->wstate != 0){ @@ -980,17 +1035,18 @@ void MainWindow::on_isLanConnect() } } - if (iface->wstate == 2) { + if (iface->wstate == 2 && this->is_on_btnConn_clicked == 0) { + //点击wifi连接按钮时,可能iface->wstate == 2,设置is_on_btnConn_clicked参数 + //用来阻止keepDisWifiState()执行,另外两处同理 keepDisWifiState(); - is_exec_func = 1; + is_exec_on_btnWifiList_clicked = 1; } else { - //only execute once - if (is_exec_func == 1) { + //出无线网卡再插入需要执行一次 + if (is_exec_on_btnWifiList_clicked == 1) { ui->lbWifiImg->setStyleSheet("QLabel{background-image:url(:/res/x/wifi-line.png);}"); ui->lbBtnWifiBG->setStyleSheet(btnOnQss); ui->lbBtnWifiT1->setText(tr("Enabled")); - on_btnWifiList_clicked(); - is_exec_func = 0; + is_exec_on_btnWifiList_clicked = 0; } } } @@ -1000,7 +1056,7 @@ void MainWindow::on_isNetOn() BackThread *bt = new BackThread(); IFace *iface = bt->execGetIface(); - if (iface->lstate == 0 && this->isByClickConnect == 0 && this->is_NetLineReady == 1){ + if (iface->lstate == 0 && this->is_by_click_connect == 0 && this->is_wired_line_ready == 1){ qDebug()<<"注意:有线网络已经重新连接"; if(this->is_btnNetList_clicked == 1) { this->ksnm->execGetLanList(); @@ -1015,10 +1071,10 @@ void MainWindow::on_isNetOn() check_isLanConnect->setTimerType(Qt::PreciseTimer); QObject::connect(check_isLanConnect, SIGNAL(timeout()), this, SLOT(on_isLanConnect())); check_isLanConnect->start(4000); - } else if (iface->lstate == 0 && this->isByClickConnect == 1){ + } else if (iface->lstate == 0 && this->is_by_click_connect == 1){ qDebug()<<"注意:有线网络已经重新连接"; check_isNetOn->stop(); - } else if (iface->wstate == 0 && this->isByClickConnect == 0){ + } else if (iface->wstate == 0 && this->is_by_click_connect == 0){ qDebug()<<"注意:Wifi网络已经重新连接"; if(this->is_btnNetList_clicked == 1) { this->ksnm->execGetLanList(); @@ -1033,7 +1089,7 @@ void MainWindow::on_isNetOn() check_isWifiConnect->setTimerType(Qt::PreciseTimer); QObject::connect(check_isWifiConnect, SIGNAL(timeout()), this, SLOT(on_isWifiConnect())); check_isWifiConnect->start(4000); - } else if (iface->wstate == 0 && this->isByClickConnect == 1){ + } else if (iface->wstate == 0 && this->is_by_click_connect == 1){ qDebug()<<"注意:Wifi网络已经重新连接"; check_isNetOn->stop(); } else if (iface->wstate != 2) { @@ -1046,26 +1102,26 @@ void MainWindow::on_isNetOn() } } - if (iface->wstate == 2) { + if (iface->wstate == 2 && this->is_on_btnConn_clicked == 0) { keepDisWifiState(); - is_exec_func = 1; + is_exec_on_btnWifiList_clicked = 1; } else { - //only execute once - if (is_exec_func == 1) { + //拔出无线网卡再插入需要执行一次 + if (is_exec_on_btnWifiList_clicked == 1) { ui->lbWifiImg->setStyleSheet("QLabel{background-image:url(:/res/x/wifi-line.png);}"); ui->lbBtnWifiBG->setStyleSheet(btnOnQss); ui->lbBtnWifiT1->setText(tr("Enabled")); - on_btnWifiList_clicked(); - is_exec_func = 0; + is_exec_on_btnWifiList_clicked = 0; } } } -// Wifi连接结果,0点击连接成功 1失败 2没有配置文件 3开机直连成功 -void MainWindow::connDone(int connFlag){ +// Wifi连接结果,0点击连接成功 1失败 2没有配置文件 3开机启动网络工具时已经连接 +void MainWindow::connDone(int connFlag) +{ if(connFlag == 0){ - qDebug()<<"Wifi connected successfully"; - this->isByClickConnect = 1; + this->is_on_btnConn_clicked = 0; + this->is_by_click_connect = 1; this->ksnm->execGetWifiList(); QString txt(tr("Conn Wifi Success")); QString cmd = "export LANG='en_US.UTF-8';export LANGUAGE='en_US';notify-send '" + txt + "' -t 3800"; @@ -1096,7 +1152,7 @@ void MainWindow::on_isWifiConnect() if(this->is_btnWifiList_clicked== 1) { this->ksnm->execGetWifiList(); } - this->isByClickConnect = 0; + this->is_by_click_connect = 0; check_isWifiConnect->stop(); if (iface->lstate != 0){ @@ -1116,17 +1172,16 @@ void MainWindow::on_isWifiConnect() } } - if (iface->wstate == 2) { + if (iface->wstate == 2 && this->is_on_btnConn_clicked ==0) { keepDisWifiState(); - is_exec_func = 1; + is_exec_on_btnWifiList_clicked = 1; } else { - //only execute once - if (is_exec_func == 1) { + //拔出无线网卡再插入需要执行一次 + if (is_exec_on_btnWifiList_clicked == 1) { ui->lbWifiImg->setStyleSheet("QLabel{background-image:url(:/res/x/wifi-line.png);}"); ui->lbBtnWifiBG->setStyleSheet(btnOnQss); ui->lbBtnWifiT1->setText(tr("Enabled")); - on_btnWifiList_clicked(); - is_exec_func = 0; + is_exec_on_btnWifiList_clicked = 0; } } } @@ -1150,7 +1205,8 @@ void MainWindow::on_btnWifiList_pressed() "#btnNetList:Pressed{border:1px solid rgba(255,255,255,0.5);background:transparent;background-color:rgba(255,255,255,0.1);}"); } -void MainWindow::oneLanFormSelected(QString lanName){ +void MainWindow::oneLanFormSelected(QString lanName) +{ QList lanList = lanListWidget->findChildren(); // 所有元素回到原位 @@ -1204,7 +1260,8 @@ void MainWindow::oneLanFormSelected(QString lanName){ } -void MainWindow::oneWifiFormSelected(QString wifiName){ +void MainWindow::oneWifiFormSelected(QString wifiName) +{ QList wifiList = wifiListWidget->findChildren(); // 所有元素回到原位 @@ -1231,11 +1288,11 @@ void MainWindow::oneWifiFormSelected(QString wifiName){ ocf->setSelected(false); } } - currSelNetName = ""; } else { - // 设置选中,放大缩小所有选项卡 + // 设置选中,放大或缩小所有选项卡 int selectY = 0; + int selectWidgetY = 0; for(int i = 0;i < wifiList.size(); i ++){ OneConnForm *ocf = wifiList.at(i); if(ocf->wifiName == wifiName){ @@ -1245,6 +1302,7 @@ void MainWindow::oneWifiFormSelected(QString wifiName){ ocf->setSelected(true); } selectY = ocf->y(); + selectWidgetY = wifiListWidget->y(); }else{ if (ocf->wifiName == hideWiFiConn){ ocf->setHideSelected(false); @@ -1253,6 +1311,20 @@ void MainWindow::oneWifiFormSelected(QString wifiName){ } } } + // wifi界面可见部分最下的一个wifi被选中,有近一半被挡住,所有元素上移51或60 + if (selectY + selectWidgetY == 294){ + wifiListWidget->move(wifiListWidget->x(), wifiListWidget->y()-51); + if (selectY == 294){ + QScrollBar *pScrollBar = scrollAreaw->verticalScrollBar(); + pScrollBar->setSliderPosition(51); + } + }else if(selectY + selectWidgetY == 303){ + wifiListWidget->move(wifiListWidget->x(), wifiListWidget->y()-60); + if (selectY == 294){ + QScrollBar *pScrollBar = scrollAreaw->verticalScrollBar(); + pScrollBar->setSliderPosition(60); + } + } // 选中元素下面的所有元素下移51 for(int i = 0;i < wifiList.size(); i ++){ @@ -1270,7 +1342,8 @@ void MainWindow::oneWifiFormSelected(QString wifiName){ } -void MainWindow::oneHideFormSelected(QString wifiName){ +void MainWindow::oneHideFormSelected(QString wifiName) +{ QList wifiList = wifiListWidget->findChildren(); // 所有元素回到原位 @@ -1314,13 +1387,15 @@ void MainWindow::oneHideFormSelected(QString wifiName){ } } -void MainWindow::activeLanDisconn(){ +void MainWindow::activeLanDisconn() +{ this->startLoading(); this->ksnm->execGetLanList(); currSelNetName = ""; } -void MainWindow::activeWifiDisconn(){ +void MainWindow::activeWifiDisconn() +{ this->startLoading(); this->ksnm->execGetWifiList(); currSelNetName = ""; @@ -1336,7 +1411,8 @@ void MainWindow::on_btnAdvConf_released() ui->lbBtnConfBG->setStyleSheet(btnOffQss); } -void MainWindow::enNetDone(){ +void MainWindow::enNetDone() +{ BackThread *bt = new BackThread(); bandWidth = bt->execChkLanWidth(lname); @@ -1356,7 +1432,8 @@ void MainWindow::enNetDone(){ on_btnNetList_clicked(1); } -void MainWindow::disNetDone(){ +void MainWindow::disNetDone() +{ // 清空lan列表 lanListWidget = new QWidget(scrollAreal); lanListWidget->resize(314, 8 + 60 + 46 + 51); @@ -1399,7 +1476,15 @@ void MainWindow::disNetDone(){ this->stopLoading(); } -void MainWindow::enWifiDone(){ +void MainWindow::launchLanDone() +{ + ui->lbLanImg->setStyleSheet("QLabel{background-image:url(:/res/x/network-line.png);}"); + ui->lbBtnNetBG->setStyleSheet(btnOnQss); + ui->lbBtnNetT1->setText(tr("Enabled"));//"已开启" +} + +void MainWindow::enWifiDone() +{ ui->lbWifiImg->setStyleSheet("QLabel{background-image:url(:/res/x/wifi-line.png);}"); ui->lbBtnWifiBG->setStyleSheet(btnOnQss); ui->lbBtnWifiT1->setText(tr("Enabled"));//"已开启" @@ -1409,7 +1494,9 @@ void MainWindow::enWifiDone(){ on_btnWifiList_clicked(); } -void MainWindow::disWifiDone(){ +void MainWindow::disWifiDone() +{ + wifiListWidget->resize(314, 8 + 60 + 46 + 51); QList wifiList = wifiListWidget->findChildren(); for(int i = 0; i < wifiList.size(); i ++){ OneConnForm *ocf = wifiList.at(i); @@ -1450,6 +1537,7 @@ void MainWindow::keepDisWifiState() ui->lbBtnWifiT1->setText(tr("Disabled"));//"已关闭" } if(this->is_btnWifiList_clicked== 1) { + wifiListWidget->resize(314, 8 + 60 + 46 + 51); QList wifiList = wifiListWidget->findChildren(); for(int i = 0; i < wifiList.size(); i ++){ OneConnForm *ocf = wifiList.at(i); @@ -1477,6 +1565,6 @@ void MainWindow::keepDisWifiState() this->scrollAreal->hide(); this->scrollAreaw->show(); - this->stopLoading(); +// this->stopLoading(); } } diff --git a/mainwindow.h b/mainwindow.h index 1a4a96e1..808ab44c 100644 --- a/mainwindow.h +++ b/mainwindow.h @@ -69,6 +69,14 @@ public: QIcon iconConnecting; QList loadIcons; + //状态设置,0为假,1为真 + int is_by_click_connect = 0; //是否是通过点击连接按钮进行的连接 + int is_btnNetList_clicked = 1; //是否处于有线网界面 + int is_btnWifiList_clicked = 0; //是否处于无线网界面 + int is_wired_line_ready = 1; //主机是否连接网线 + int is_exec_on_btnWifiList_clicked = 1; //是否要执行on_btnWifiList_clicked() + int is_on_btnConn_clicked = 0;//是否已经点击连接wifi按钮 + private: void checkSingle(); void getActiveInfo(); @@ -84,6 +92,7 @@ private: LoadingDiv *loading; + QDesktopWidget desktop; KSimpleNM *ksnm; ConfForm *confForm; QWidget *lanListWidget; @@ -117,13 +126,6 @@ private: QTimer *check_isWifiConnect; QTimer *check_isNetOn; - //按钮点击状态,0为假,1为真 - int isByClickConnect = 0; - int is_btnNetList_clicked = 1; - int is_btnWifiList_clicked = 0; - int is_NetLineReady = 1; - int is_exec_func = 1; - int currentIconIndex; int updateFlag = 0; @@ -160,6 +162,7 @@ private slots: void enNetDone(); void disNetDone(); void enWifiDone(); + void launchLanDone(); void disWifiDone(); void keepDisWifiState(); void connLanDone(int connFlag); diff --git a/oneconnform.cpp b/oneconnform.cpp index f60c1fd9..3d8a80bd 100644 --- a/oneconnform.cpp +++ b/oneconnform.cpp @@ -36,10 +36,10 @@ OneConnForm::OneConnForm(QWidget *parent, MainWindow *mainWindow, ConfForm *conf ui->btnDisConn->setText(tr("Disconnect"));//"断开连接" ui->btnHideConn->setText(tr("Connect"));//"连接" ui->lePassword->setEchoMode(QLineEdit::Password); - ui->wbg->hide(); ui->lbPassword->hide(); ui->lePassword->hide(); + ui->checkBoxPwd->hide(); ui->btnConf->hide(); ui->btnConn->hide(); ui->btnDisConn->hide(); @@ -54,6 +54,9 @@ OneConnForm::OneConnForm(QWidget *parent, MainWindow *mainWindow, ConfForm *conf ui->lbSafe->setStyleSheet("QLabel{font-size:13px;color:#aaaaaa;}"); ui->lbConned->setStyleSheet("QLabel{font-size:13px;color:#ffffff;}"); ui->lePassword->setStyleSheet("QLineEdit{border: 1px solid #cccccc;background-color:#ffffff;}"); + ui->checkBoxPwd->setStyleSheet("QCheckBox::indicator {width: 18px; height: 9px;}" + "QCheckBox::indicator:checked {image: url(:/res/h/show-pwd.png);}" + "QCheckBox::indicator:unchecked {image: url(:/res/h/hide-pwd.png);}"); ui->btnConf->setStyleSheet("QPushButton{border:0px;background-color:rgba(0,0,0,0.4);color:white;font-size:12px;}" "QPushButton:Hover{border:1px solid rgba(255,255,255,0.2);background-color:rgba(0,0,0,0.2);}" "QPushButton:Pressed{background-color:rgba(0,0,0,0.6);}"); @@ -76,6 +79,8 @@ OneConnForm::OneConnForm(QWidget *parent, MainWindow *mainWindow, ConfForm *conf this->isSelected = false; this->isActive = false; + + connect(ui->lePassword, SIGNAL(returnPressed()), this, SLOT(on_btnConnPWD_clicked())); } OneConnForm::~OneConnForm() @@ -135,6 +140,7 @@ void OneConnForm::setSelected(bool isSelected){ ui->lbPassword->hide(); ui->lePassword->hide(); + ui->checkBoxPwd->hide(); ui->btnConnPWD->hide(); ui->lbName->show(); @@ -158,6 +164,7 @@ void OneConnForm::setHideSelected(bool isSelected){ ui->lbPassword->hide(); ui->lePassword->hide(); + ui->checkBoxPwd->hide(); ui->btnConnPWD->hide(); ui->lbName->show(); @@ -177,6 +184,7 @@ void OneConnForm::setHideSelected(bool isSelected){ ui->lbPassword->hide(); ui->lePassword->hide(); + ui->checkBoxPwd->hide(); ui->btnConnPWD->hide(); ui->lbName->show(); @@ -205,15 +213,6 @@ void OneConnForm::setShowPoint(bool flag){ } } -void OneConnForm::slotConnWifi(){ - mw->startLoading(); - emit sigConnWifi(ui->lbName->text()); -} -void OneConnForm::slotConnWifiPWD(){ - mw->startLoading(); - emit sigConnWifiPWD(ui->lbName->text(), ui->lePassword->text()); -} - void OneConnForm::setName(QString name){ ui->lbName->setText(name); wifiName = name; @@ -299,6 +298,16 @@ void OneConnForm::setSignal(QString lv){ } } +void OneConnForm::slotConnWifi(){ + mw->startLoading(); + emit sigConnWifi(ui->lbName->text()); +} +void OneConnForm::slotConnWifiPWD(){ + mw->startLoading(); + emit sigConnWifiPWD(ui->lbName->text(), ui->lePassword->text()); +} + +//点击后设置wifi网络 void OneConnForm::on_btnConf_clicked() { QPoint pos = QCursor::pos(); @@ -343,6 +352,7 @@ void OneConnForm::on_btnConf_clicked() cf->raise(); } +//点击后断开wifi网络 void OneConnForm::on_btnDisConn_clicked() { kylin_network_set_con_down(ui->lbName->text().toUtf8().data()); @@ -352,8 +362,10 @@ void OneConnForm::on_btnDisConn_clicked() emit disconnActiveWifi(); } +//无需密码的wifi连接 void OneConnForm::on_btnConn_clicked() { + mw->is_on_btnConn_clicked = 1; QThread *t = new QThread(); BackThread *bt = new BackThread(); bt->moveToThread(t); @@ -366,6 +378,7 @@ void OneConnForm::on_btnConn_clicked() t->start(); } +//需要密码的wifi连接 void OneConnForm::on_btnConnPWD_clicked() { QThread *t = new QThread(); @@ -380,6 +393,7 @@ void OneConnForm::on_btnConnPWD_clicked() t->start(); } +//点击后弹出连接隐藏wifi网络窗口 void OneConnForm::on_btnHideConn_clicked() { QApplication::setQuitOnLastWindowClosed(false); @@ -395,6 +409,7 @@ void OneConnForm::slotConnDone(int connFlag){ if(connFlag == 2){ ui->lbPassword->show(); ui->lePassword->show(); + ui->checkBoxPwd->show(); ui->btnConnPWD->show(); ui->lbName->hide(); @@ -417,3 +432,12 @@ void OneConnForm::slotConnDone(int connFlag){ mw->stopLoading(); } + +void OneConnForm::on_checkBoxPwd_stateChanged(int arg1) +{ + if (arg1 == 0) { + ui->lePassword ->setEchoMode(QLineEdit::Password); + } else { + ui->lePassword->setEchoMode(QLineEdit::Normal); + } +} diff --git a/oneconnform.h b/oneconnform.h index d8c59df8..fcce8db1 100644 --- a/oneconnform.h +++ b/oneconnform.h @@ -89,6 +89,8 @@ private slots: void on_btnHideConn_clicked(); + void on_checkBoxPwd_stateChanged(int arg1); + private: Ui::OneConnForm *ui; MainWindow *mw; diff --git a/oneconnform.ui b/oneconnform.ui index 9babceec..2e9bdf11 100644 --- a/oneconnform.ui +++ b/oneconnform.ui @@ -176,6 +176,19 @@ + + + + 264 + 30 + 18 + 9 + + + + + + wbg lbName btnConf @@ -189,6 +202,7 @@ lbPassword btnConnPWD btnHideConn + checkBoxPwd diff --git a/res/kylin-nm_zh_CN.qm b/res/kylin-nm_zh_CN.qm index d9a42410..803d0914 100644 Binary files a/res/kylin-nm_zh_CN.qm and b/res/kylin-nm_zh_CN.qm differ diff --git a/res/kylin-nm_zh_CN.ts b/res/kylin-nm_zh_CN.ts index 99c54495..03bfec8a 100644 --- a/res/kylin-nm_zh_CN.ts +++ b/res/kylin-nm_zh_CN.ts @@ -72,67 +72,67 @@ DlgConnHidWifi - + Add hidden Wi-Fi 加入隐藏Wi-Fi - + Connection 连接设置: - + Network name 网络名称: - + Wi-Fi security Wi-Fi 安全性: - + Cancel 取消 - + Connect 连接 - + C_reate… 新建... - + None - + WPA & WPA2 Personal WPA 及 WPA2 个人 - + WEP 40/128-bit Key (Hex or ASCII) WEP 40/128 位密钥(十六进制或ASCII) - + WEP 128-bit Passphrase WEP 128 位密码句 - + Dynamic WEP (802.1X) 动态 WEP (802.1x) - + WPA & WPA2 Enterprise WPA 及 WPA2 企业 @@ -1092,72 +1092,72 @@ 连接到隐藏 Wi-Fi 网络 - + Add hidden Wi-Fi 加入隐藏Wi-Fi - + Connection 连接设置: - + Network name 网络名称: - + Wi-Fi security Wi-Fi 安全性: - + Password 密码: - + Cancel 取消 - + Connect 连接 - + C_reate… 新建... - + None - + WPA & WPA2 Personal WPA 及 WPA2 个人 - + WEP 40/128-bit Key (Hex or ASCII) WEP 40/128 位密钥(十六进制或ASCII) - + WEP 128-bit Passphrase WEP 128 位密码句 - + Dynamic WEP (802.1X) 动态 WEP (802.1x) - + WPA & WPA2 Enterprise WPA 及 WPA2 企业 @@ -1166,6 +1166,7 @@ MainWindow + kylin-nm 网络工具 @@ -1190,75 +1191,93 @@ 无线网络 - - - - - + + + + + + + + + Enabled 已开启 - - - - - + + + + + + + Disabled 已关闭 - - - - - - + + + + + + + Not connected 当前未连接任何网络 - - - - - - + + + + + + + Disconnected 未连接 - - - + + + Ethernet Networks 可用网络列表 - - + + Connected 已连接 - - + + Wifi Networks 可用网络列表 - + + keep wired network switch is on before turning on wireless switch + 打开无线网开关前保持有线网开关打开 + + + + please insert the wireless network adapter + 请先插入无线网卡 + + + Conn Ethernet Success 连接有线网络成功 - + Conn Ethernet Fail 连接有线网络失败 - + Conn Wifi Success 连接无线网络成功 @@ -1293,27 +1312,27 @@ 断开连接 - + Connect to Hidden Wi-Fi Network 连接到隐藏 Wi-Fi 网络 - + Public 开放 - + Safe 安全 - + Rate 速率 - + Conn Wifi Failed 连接无线网络失败