From db20118e0d507c8cc67fd9537ed5486c963cd853 Mon Sep 17 00:00:00 2001 From: jiangkegeng <jiangkegeng> Date: 星期四, 31 十月 2024 13:04:47 +0800 Subject: [PATCH] 代码提交 --- Client/姜可庚/code/2024kunlun_project_permisson/2024kunlun_project_permisson.pro | 56 + Client/姜可庚/code/2024kunlun_project_permisson/2024kunlun_project_permisson.pro.user | 809 ++++++++++++++++++++ Client/姜可庚/code/2024kunlun_project_permisson/modeldisplay.h | 22 Client/姜可庚/code/2024kunlun_project_permisson/PmsClientSocket.cpp | 109 ++ Client/姜可庚/code/2024kunlun_project_permisson/mainwindow.cpp | 14 Client/姜可庚/code/2024kunlun_project_permisson/PmsClientSocket.h | 123 +++ Client/姜可庚/code/2024kunlun_project_permisson/permissondialog.h | 36 Client/姜可庚/code/2024kunlun_project_permisson/main.cpp | 11 Client/姜可庚/code/2024kunlun_project_permisson/qcomboxdelegate.cpp | 40 + Client/姜可庚/code/2024kunlun_project_permisson/modeldisplay.cpp | 14 Client/姜可庚/code/2024kunlun_project_permisson/mainwindow.ui | 24 Client/姜可庚/code/2024kunlun_project_permisson/permissondialog.cpp | 86 ++ Client/姜可庚/code/2024kunlun_project_permisson/modeldisplay.ui | 32 Client/姜可庚/code/2024kunlun_project_permisson/pmsqueryresult.h | 73 + Client/姜可庚/code/2024kunlun_project_permisson/syncdatatodb.h | 48 + Client/姜可庚/code/2024kunlun_project_permisson/syncdatatodb.cpp | 94 ++ Client/姜可庚/code/2024kunlun_project_permisson/pmsparam.h | 43 + Client/姜可庚/code/2024kunlun_project_permisson/mainwindow.h | 22 Client/姜可庚/code/2024kunlun_project_permisson/pmsplusparam.h | 65 + Client/姜可庚/code/2024kunlun_project_permisson/permissonwindow.h | 55 + Client/姜可庚/code/2024kunlun_project_permisson/permissonwindow.cpp | 160 ++++ Client/姜可庚/code/2024kunlun_project_permisson/permissondialog.ui | 302 +++++++ Client/姜可庚/code/2024kunlun_project_permisson/qcomboxdelegate.h | 27 Client/姜可庚/code/2024kunlun_project_permisson/permissonwindow.ui | 86 ++ 24 files changed, 2,351 insertions(+), 0 deletions(-) diff --git "a/Client/\345\247\234\345\217\257\345\272\232/code/2024kunlun_project_permisson/2024kunlun_project_permisson.pro" "b/Client/\345\247\234\345\217\257\345\272\232/code/2024kunlun_project_permisson/2024kunlun_project_permisson.pro" new file mode 100644 index 0000000..e11cc5c --- /dev/null +++ "b/Client/\345\247\234\345\217\257\345\272\232/code/2024kunlun_project_permisson/2024kunlun_project_permisson.pro" @@ -0,0 +1,56 @@ +#------------------------------------------------- +# +# Project created by QtCreator 2024-10-29T15:47:42 +# +#------------------------------------------------- + +QT += core gui network + +greaterThan(QT_MAJOR_VERSION, 4): QT += widgets + +TARGET = 2024kunlun_project_permisson +TEMPLATE = app + +# The following define makes your compiler emit warnings if you use +# any feature of Qt which has been marked as deprecated (the exact warnings +# depend on your compiler). Please consult the documentation of the +# deprecated API in order to know how to port your code away from it. +DEFINES += QT_DEPRECATED_WARNINGS + +# You can also make your code fail to compile if you use deprecated APIs. +# In order to do so, uncomment the following line. +# You can also select to disable deprecated APIs only up to a certain version of Qt. +#DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000 # disables all the APIs deprecated before Qt 6.0.0 + + + + + + + +unix|win32: LIBS += -L$$PWD/../ThreeExmapleDisplay/mysql-connector-c-noinstall-6.0.2-win32/lib/ -llibmysql + +INCLUDEPATH += $$PWD/../ThreeExmapleDisplay/mysql-connector-c-noinstall-6.0.2-win32/include +DEPENDPATH += $$PWD/../ThreeExmapleDisplay/mysql-connector-c-noinstall-6.0.2-win32/include + +FORMS += \ + permissondialog.ui \ + permissonwindow.ui + +HEADERS += \ + permissondialog.h \ + permissonwindow.h \ + pmsparam.h \ + pmsplusparam.h \ + pmsqueryresult.h \ + qcomboxdelegate.h \ + syncdatatodb.h \ + PmsClientSocket.h + +SOURCES += \ + main.cpp \ + permissondialog.cpp \ + permissonwindow.cpp \ + qcomboxdelegate.cpp \ + syncdatatodb.cpp \ + PmsClientSocket.cpp diff --git "a/Client/\345\247\234\345\217\257\345\272\232/code/2024kunlun_project_permisson/2024kunlun_project_permisson.pro.user" "b/Client/\345\247\234\345\217\257\345\272\232/code/2024kunlun_project_permisson/2024kunlun_project_permisson.pro.user" new file mode 100644 index 0000000..07f68c6 --- /dev/null +++ "b/Client/\345\247\234\345\217\257\345\272\232/code/2024kunlun_project_permisson/2024kunlun_project_permisson.pro.user" @@ -0,0 +1,809 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE QtCreatorProject> +<!-- Written by QtCreator 4.5.0, 2024-10-31T13:04:10. --> +<qtcreator> + <data> + <variable>EnvironmentId</variable> + <value type="QByteArray">{46516c51-2f4e-4d5d-a484-8049bf7097d3}</value> + </data> + <data> + <variable>ProjectExplorer.Project.ActiveTarget</variable> + <value type="int">0</value> + </data> + <data> + <variable>ProjectExplorer.Project.EditorSettings</variable> + <valuemap type="QVariantMap"> + <value type="bool" key="EditorConfiguration.AutoIndent">true</value> + <value type="bool" key="EditorConfiguration.AutoSpacesForTabs">false</value> + <value type="bool" key="EditorConfiguration.CamelCaseNavigation">true</value> + <valuemap type="QVariantMap" key="EditorConfiguration.CodeStyle.0"> + <value type="QString" key="language">Cpp</value> + <valuemap type="QVariantMap" key="value"> + <value type="QByteArray" key="CurrentPreferences">CppGlobal</value> + </valuemap> + </valuemap> + <valuemap type="QVariantMap" key="EditorConfiguration.CodeStyle.1"> + <value type="QString" key="language">QmlJS</value> + <valuemap type="QVariantMap" key="value"> + <value type="QByteArray" key="CurrentPreferences">QmlJSGlobal</value> + </valuemap> + </valuemap> + <value type="int" key="EditorConfiguration.CodeStyle.Count">2</value> + <value type="QByteArray" key="EditorConfiguration.Codec">UTF-8</value> + <value type="bool" key="EditorConfiguration.ConstrainTooltips">false</value> + <value type="int" key="EditorConfiguration.IndentSize">4</value> + <value type="bool" key="EditorConfiguration.KeyboardTooltips">false</value> + <value type="int" key="EditorConfiguration.MarginColumn">80</value> + <value type="bool" key="EditorConfiguration.MouseHiding">true</value> + <value type="bool" key="EditorConfiguration.MouseNavigation">true</value> + <value type="int" key="EditorConfiguration.PaddingMode">1</value> + <value type="bool" key="EditorConfiguration.ScrollWheelZooming">true</value> + <value type="bool" key="EditorConfiguration.ShowMargin">false</value> + <value type="int" key="EditorConfiguration.SmartBackspaceBehavior">0</value> + <value type="bool" key="EditorConfiguration.SmartSelectionChanging">true</value> + <value type="bool" key="EditorConfiguration.SpacesForTabs">true</value> + <value type="int" key="EditorConfiguration.TabKeyBehavior">0</value> + <value type="int" key="EditorConfiguration.TabSize">8</value> + <value type="bool" key="EditorConfiguration.UseGlobal">true</value> + <value type="int" key="EditorConfiguration.Utf8BomBehavior">1</value> + <value type="bool" key="EditorConfiguration.addFinalNewLine">true</value> + <value type="bool" key="EditorConfiguration.cleanIndentation">true</value> + <value type="bool" key="EditorConfiguration.cleanWhitespace">true</value> + <value type="bool" key="EditorConfiguration.inEntireDocument">false</value> + </valuemap> + </data> + <data> + <variable>ProjectExplorer.Project.PluginSettings</variable> + <valuemap type="QVariantMap"/> + </data> + <data> + <variable>ProjectExplorer.Project.Target.0</variable> + <valuemap type="QVariantMap"> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Desktop Qt 5.9.4 MinGW 32bit</value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName">Desktop Qt 5.9.4 MinGW 32bit</value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">qt.594.win32_mingw53_kit</value> + <value type="int" key="ProjectExplorer.Target.ActiveBuildConfiguration">0</value> + <value type="int" key="ProjectExplorer.Target.ActiveDeployConfiguration">0</value> + <value type="int" key="ProjectExplorer.Target.ActiveRunConfiguration">0</value> + <valuemap type="QVariantMap" key="ProjectExplorer.Target.BuildConfiguration.0"> + <value type="QString" key="ProjectExplorer.BuildConfiguration.BuildDirectory">D:/Qt/project/build-2024kunlun_project_permisson-Desktop_Qt_5_9_4_MinGW_32bit-Debug</value> + <valuemap type="QVariantMap" key="ProjectExplorer.BuildConfiguration.BuildStepList.0"> + <valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.0"> + <value type="bool" key="ProjectExplorer.BuildStep.Enabled">true</value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">qmake</value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">QtProjectManager.QMakeBuildStep</value> + <value type="bool" key="QtProjectManager.QMakeBuildStep.LinkQmlDebuggingLibrary">true</value> + <value type="QString" key="QtProjectManager.QMakeBuildStep.QMakeArguments"></value> + <value type="bool" key="QtProjectManager.QMakeBuildStep.QMakeForced">false</value> + <value type="bool" key="QtProjectManager.QMakeBuildStep.SeparateDebugInfo">false</value> + <value type="bool" key="QtProjectManager.QMakeBuildStep.UseQtQuickCompiler">false</value> + </valuemap> + <valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.1"> + <value type="bool" key="ProjectExplorer.BuildStep.Enabled">true</value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Make</value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.MakeStep</value> + <valuelist type="QVariantList" key="Qt4ProjectManager.MakeStep.AutomaticallyAddedMakeArguments"/> + <value type="bool" key="Qt4ProjectManager.MakeStep.Clean">false</value> + <value type="QString" key="Qt4ProjectManager.MakeStep.MakeArguments"></value> + <value type="QString" key="Qt4ProjectManager.MakeStep.MakeCommand"></value> + </valuemap> + <value type="int" key="ProjectExplorer.BuildStepList.StepsCount">2</value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">鏋勫缓</value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.BuildSteps.Build</value> + </valuemap> + <valuemap type="QVariantMap" key="ProjectExplorer.BuildConfiguration.BuildStepList.1"> + <valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.0"> + <value type="bool" key="ProjectExplorer.BuildStep.Enabled">true</value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Make</value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.MakeStep</value> + <valuelist type="QVariantList" key="Qt4ProjectManager.MakeStep.AutomaticallyAddedMakeArguments"/> + <value type="bool" key="Qt4ProjectManager.MakeStep.Clean">true</value> + <value type="QString" key="Qt4ProjectManager.MakeStep.MakeArguments">clean</value> + <value type="QString" key="Qt4ProjectManager.MakeStep.MakeCommand"></value> + </valuemap> + <value type="int" key="ProjectExplorer.BuildStepList.StepsCount">1</value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">娓呯悊</value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.BuildSteps.Clean</value> + </valuemap> + <value type="int" key="ProjectExplorer.BuildConfiguration.BuildStepListCount">2</value> + <value type="bool" key="ProjectExplorer.BuildConfiguration.ClearSystemEnvironment">false</value> + <valuelist type="QVariantList" key="ProjectExplorer.BuildConfiguration.UserEnvironmentChanges"/> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Debug</value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.Qt4BuildConfiguration</value> + <value type="int" key="Qt4ProjectManager.Qt4BuildConfiguration.BuildConfiguration">2</value> + <value type="bool" key="Qt4ProjectManager.Qt4BuildConfiguration.UseShadowBuild">true</value> + </valuemap> + <valuemap type="QVariantMap" key="ProjectExplorer.Target.BuildConfiguration.1"> + <value type="QString" key="ProjectExplorer.BuildConfiguration.BuildDirectory">D:/Qt/project/build-2024kunlun_project_permisson-Desktop_Qt_5_9_4_MinGW_32bit-Release</value> + <valuemap type="QVariantMap" key="ProjectExplorer.BuildConfiguration.BuildStepList.0"> + <valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.0"> + <value type="bool" key="ProjectExplorer.BuildStep.Enabled">true</value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">qmake</value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">QtProjectManager.QMakeBuildStep</value> + <value type="bool" key="QtProjectManager.QMakeBuildStep.LinkQmlDebuggingLibrary">false</value> + <value type="QString" key="QtProjectManager.QMakeBuildStep.QMakeArguments"></value> + <value type="bool" key="QtProjectManager.QMakeBuildStep.QMakeForced">false</value> + <value type="bool" key="QtProjectManager.QMakeBuildStep.SeparateDebugInfo">false</value> + <value type="bool" key="QtProjectManager.QMakeBuildStep.UseQtQuickCompiler">false</value> + </valuemap> + <valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.1"> + <value type="bool" key="ProjectExplorer.BuildStep.Enabled">true</value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Make</value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.MakeStep</value> + <valuelist type="QVariantList" key="Qt4ProjectManager.MakeStep.AutomaticallyAddedMakeArguments"/> + <value type="bool" key="Qt4ProjectManager.MakeStep.Clean">false</value> + <value type="QString" key="Qt4ProjectManager.MakeStep.MakeArguments"></value> + <value type="QString" key="Qt4ProjectManager.MakeStep.MakeCommand"></value> + </valuemap> + <value type="int" key="ProjectExplorer.BuildStepList.StepsCount">2</value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">鏋勫缓</value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.BuildSteps.Build</value> + </valuemap> + <valuemap type="QVariantMap" key="ProjectExplorer.BuildConfiguration.BuildStepList.1"> + <valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.0"> + <value type="bool" key="ProjectExplorer.BuildStep.Enabled">true</value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Make</value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.MakeStep</value> + <valuelist type="QVariantList" key="Qt4ProjectManager.MakeStep.AutomaticallyAddedMakeArguments"/> + <value type="bool" key="Qt4ProjectManager.MakeStep.Clean">true</value> + <value type="QString" key="Qt4ProjectManager.MakeStep.MakeArguments">clean</value> + <value type="QString" key="Qt4ProjectManager.MakeStep.MakeCommand"></value> + </valuemap> + <value type="int" key="ProjectExplorer.BuildStepList.StepsCount">1</value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">娓呯悊</value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.BuildSteps.Clean</value> + </valuemap> + <value type="int" key="ProjectExplorer.BuildConfiguration.BuildStepListCount">2</value> + <value type="bool" key="ProjectExplorer.BuildConfiguration.ClearSystemEnvironment">false</value> + <valuelist type="QVariantList" key="ProjectExplorer.BuildConfiguration.UserEnvironmentChanges"/> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Release</value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.Qt4BuildConfiguration</value> + <value type="int" key="Qt4ProjectManager.Qt4BuildConfiguration.BuildConfiguration">0</value> + <value type="bool" key="Qt4ProjectManager.Qt4BuildConfiguration.UseShadowBuild">true</value> + </valuemap> + <valuemap type="QVariantMap" key="ProjectExplorer.Target.BuildConfiguration.2"> + <value type="QString" key="ProjectExplorer.BuildConfiguration.BuildDirectory">D:/Qt/project/build-2024kunlun_project_permisson-Desktop_Qt_5_9_4_MinGW_32bit-Profile</value> + <valuemap type="QVariantMap" key="ProjectExplorer.BuildConfiguration.BuildStepList.0"> + <valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.0"> + <value type="bool" key="ProjectExplorer.BuildStep.Enabled">true</value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">qmake</value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">QtProjectManager.QMakeBuildStep</value> + <value type="bool" key="QtProjectManager.QMakeBuildStep.LinkQmlDebuggingLibrary">true</value> + <value type="QString" key="QtProjectManager.QMakeBuildStep.QMakeArguments"></value> + <value type="bool" key="QtProjectManager.QMakeBuildStep.QMakeForced">false</value> + <value type="bool" key="QtProjectManager.QMakeBuildStep.SeparateDebugInfo">true</value> + <value type="bool" key="QtProjectManager.QMakeBuildStep.UseQtQuickCompiler">false</value> + </valuemap> + <valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.1"> + <value type="bool" key="ProjectExplorer.BuildStep.Enabled">true</value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Make</value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.MakeStep</value> + <valuelist type="QVariantList" key="Qt4ProjectManager.MakeStep.AutomaticallyAddedMakeArguments"/> + <value type="bool" key="Qt4ProjectManager.MakeStep.Clean">false</value> + <value type="QString" key="Qt4ProjectManager.MakeStep.MakeArguments"></value> + <value type="QString" key="Qt4ProjectManager.MakeStep.MakeCommand"></value> + </valuemap> + <value type="int" key="ProjectExplorer.BuildStepList.StepsCount">2</value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">鏋勫缓</value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.BuildSteps.Build</value> + </valuemap> + <valuemap type="QVariantMap" key="ProjectExplorer.BuildConfiguration.BuildStepList.1"> + <valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.0"> + <value type="bool" key="ProjectExplorer.BuildStep.Enabled">true</value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Make</value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.MakeStep</value> + <valuelist type="QVariantList" key="Qt4ProjectManager.MakeStep.AutomaticallyAddedMakeArguments"/> + <value type="bool" key="Qt4ProjectManager.MakeStep.Clean">true</value> + <value type="QString" key="Qt4ProjectManager.MakeStep.MakeArguments">clean</value> + <value type="QString" key="Qt4ProjectManager.MakeStep.MakeCommand"></value> + </valuemap> + <value type="int" key="ProjectExplorer.BuildStepList.StepsCount">1</value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">娓呯悊</value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.BuildSteps.Clean</value> + </valuemap> + <value type="int" key="ProjectExplorer.BuildConfiguration.BuildStepListCount">2</value> + <value type="bool" key="ProjectExplorer.BuildConfiguration.ClearSystemEnvironment">false</value> + <valuelist type="QVariantList" key="ProjectExplorer.BuildConfiguration.UserEnvironmentChanges"/> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Profile</value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.Qt4BuildConfiguration</value> + <value type="int" key="Qt4ProjectManager.Qt4BuildConfiguration.BuildConfiguration">0</value> + <value type="bool" key="Qt4ProjectManager.Qt4BuildConfiguration.UseShadowBuild">true</value> + </valuemap> + <value type="int" key="ProjectExplorer.Target.BuildConfigurationCount">3</value> + <valuemap type="QVariantMap" key="ProjectExplorer.Target.DeployConfiguration.0"> + <valuemap type="QVariantMap" key="ProjectExplorer.BuildConfiguration.BuildStepList.0"> + <value type="int" key="ProjectExplorer.BuildStepList.StepsCount">0</value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">閮ㄧ讲</value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.BuildSteps.Deploy</value> + </valuemap> + <value type="int" key="ProjectExplorer.BuildConfiguration.BuildStepListCount">1</value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">鍦ㄦ湰鍦伴儴缃�</value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.DefaultDeployConfiguration</value> + </valuemap> + <value type="int" key="ProjectExplorer.Target.DeployConfigurationCount">1</value> + <valuemap type="QVariantMap" key="ProjectExplorer.Target.PluginSettings"/> + <valuemap type="QVariantMap" key="ProjectExplorer.Target.RunConfiguration.0"> + <value type="bool" key="Analyzer.QmlProfiler.AggregateTraces">false</value> + <value type="bool" key="Analyzer.QmlProfiler.FlushEnabled">false</value> + <value type="uint" key="Analyzer.QmlProfiler.FlushInterval">1000</value> + <value type="QString" key="Analyzer.QmlProfiler.LastTraceFile"></value> + <value type="bool" key="Analyzer.QmlProfiler.Settings.UseGlobalSettings">true</value> + <valuelist type="QVariantList" key="Analyzer.Valgrind.AddedSuppressionFiles"/> + <value type="bool" key="Analyzer.Valgrind.Callgrind.CollectBusEvents">false</value> + <value type="bool" key="Analyzer.Valgrind.Callgrind.CollectSystime">false</value> + <value type="bool" key="Analyzer.Valgrind.Callgrind.EnableBranchSim">false</value> + <value type="bool" key="Analyzer.Valgrind.Callgrind.EnableCacheSim">false</value> + <value type="bool" key="Analyzer.Valgrind.Callgrind.EnableEventToolTips">true</value> + <value type="double" key="Analyzer.Valgrind.Callgrind.MinimumCostRatio">0.01</value> + <value type="double" key="Analyzer.Valgrind.Callgrind.VisualisationMinimumCostRatio">10</value> + <value type="bool" key="Analyzer.Valgrind.FilterExternalIssues">true</value> + <value type="int" key="Analyzer.Valgrind.LeakCheckOnFinish">1</value> + <value type="int" key="Analyzer.Valgrind.NumCallers">25</value> + <valuelist type="QVariantList" key="Analyzer.Valgrind.RemovedSuppressionFiles"/> + <value type="int" key="Analyzer.Valgrind.SelfModifyingCodeDetection">1</value> + <value type="bool" key="Analyzer.Valgrind.Settings.UseGlobalSettings">true</value> + <value type="bool" key="Analyzer.Valgrind.ShowReachable">false</value> + <value type="bool" key="Analyzer.Valgrind.TrackOrigins">true</value> + <value type="QString" key="Analyzer.Valgrind.ValgrindExecutable">valgrind</value> + <valuelist type="QVariantList" key="Analyzer.Valgrind.VisibleErrorKinds"> + <value type="int">0</value> + <value type="int">1</value> + <value type="int">2</value> + <value type="int">3</value> + <value type="int">4</value> + <value type="int">5</value> + <value type="int">6</value> + <value type="int">7</value> + <value type="int">8</value> + <value type="int">9</value> + <value type="int">10</value> + <value type="int">11</value> + <value type="int">12</value> + <value type="int">13</value> + <value type="int">14</value> + </valuelist> + <value type="int" key="PE.EnvironmentAspect.Base">2</value> + <valuelist type="QVariantList" key="PE.EnvironmentAspect.Changes"/> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">2024kunlun_project_permisson</value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.Qt4RunConfiguration:D:/Qt/project/2024kunlun_project_permisson/2024kunlun_project_permisson.pro</value> + <value type="bool" key="QmakeProjectManager.QmakeRunConfiguration.UseLibrarySearchPath">true</value> + <value type="QString" key="Qt4ProjectManager.Qt4RunConfiguration.CommandLineArguments"></value> + <value type="QString" key="Qt4ProjectManager.Qt4RunConfiguration.ProFile">2024kunlun_project_permisson.pro</value> + <value type="bool" key="Qt4ProjectManager.Qt4RunConfiguration.UseDyldImageSuffix">false</value> + <value type="QString" key="Qt4ProjectManager.Qt4RunConfiguration.UserWorkingDirectory"></value> + <value type="QString" key="Qt4ProjectManager.Qt4RunConfiguration.UserWorkingDirectory.default">D:/Qt/project/build-2024kunlun_project_permisson-Desktop_Qt_5_9_4_MinGW_32bit-Debug</value> + <value type="uint" key="RunConfiguration.QmlDebugServerPort">3768</value> + <value type="bool" key="RunConfiguration.UseCppDebugger">false</value> + <value type="bool" key="RunConfiguration.UseCppDebuggerAuto">true</value> + <value type="bool" key="RunConfiguration.UseMultiProcess">false</value> + <value type="bool" key="RunConfiguration.UseQmlDebugger">false</value> + <value type="bool" key="RunConfiguration.UseQmlDebuggerAuto">true</value> + </valuemap> + <value type="int" key="ProjectExplorer.Target.RunConfigurationCount">1</value> + </valuemap> + </data> + <data> + <variable>ProjectExplorer.Project.Target.1</variable> + <valuemap type="QVariantMap"> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Desktop Qt 5.9.4 MSVC2015 32bit</value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName">Desktop Qt 5.9.4 MSVC2015 32bit</value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">qt.594.win32_msvc2015_kit</value> + <value type="int" key="ProjectExplorer.Target.ActiveBuildConfiguration">0</value> + <value type="int" key="ProjectExplorer.Target.ActiveDeployConfiguration">0</value> + <value type="int" key="ProjectExplorer.Target.ActiveRunConfiguration">0</value> + <valuemap type="QVariantMap" key="ProjectExplorer.Target.BuildConfiguration.0"> + <value type="QString" key="ProjectExplorer.BuildConfiguration.BuildDirectory">D:/Qt/project/build-2024kunlun_project_permisson-Desktop_Qt_5_9_4_MSVC2015_32bit-Debug</value> + <valuemap type="QVariantMap" key="ProjectExplorer.BuildConfiguration.BuildStepList.0"> + <valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.0"> + <value type="bool" key="ProjectExplorer.BuildStep.Enabled">true</value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">qmake</value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">QtProjectManager.QMakeBuildStep</value> + <value type="bool" key="QtProjectManager.QMakeBuildStep.LinkQmlDebuggingLibrary">true</value> + <value type="QString" key="QtProjectManager.QMakeBuildStep.QMakeArguments"></value> + <value type="bool" key="QtProjectManager.QMakeBuildStep.QMakeForced">false</value> + <value type="bool" key="QtProjectManager.QMakeBuildStep.SeparateDebugInfo">false</value> + <value type="bool" key="QtProjectManager.QMakeBuildStep.UseQtQuickCompiler">false</value> + </valuemap> + <valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.1"> + <value type="bool" key="ProjectExplorer.BuildStep.Enabled">true</value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Make</value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.MakeStep</value> + <valuelist type="QVariantList" key="Qt4ProjectManager.MakeStep.AutomaticallyAddedMakeArguments"/> + <value type="bool" key="Qt4ProjectManager.MakeStep.Clean">false</value> + <value type="QString" key="Qt4ProjectManager.MakeStep.MakeArguments"></value> + <value type="QString" key="Qt4ProjectManager.MakeStep.MakeCommand"></value> + </valuemap> + <value type="int" key="ProjectExplorer.BuildStepList.StepsCount">2</value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">鏋勫缓</value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.BuildSteps.Build</value> + </valuemap> + <valuemap type="QVariantMap" key="ProjectExplorer.BuildConfiguration.BuildStepList.1"> + <valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.0"> + <value type="bool" key="ProjectExplorer.BuildStep.Enabled">true</value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Make</value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.MakeStep</value> + <valuelist type="QVariantList" key="Qt4ProjectManager.MakeStep.AutomaticallyAddedMakeArguments"/> + <value type="bool" key="Qt4ProjectManager.MakeStep.Clean">true</value> + <value type="QString" key="Qt4ProjectManager.MakeStep.MakeArguments">clean</value> + <value type="QString" key="Qt4ProjectManager.MakeStep.MakeCommand"></value> + </valuemap> + <value type="int" key="ProjectExplorer.BuildStepList.StepsCount">1</value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">娓呯悊</value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.BuildSteps.Clean</value> + </valuemap> + <value type="int" key="ProjectExplorer.BuildConfiguration.BuildStepListCount">2</value> + <value type="bool" key="ProjectExplorer.BuildConfiguration.ClearSystemEnvironment">false</value> + <valuelist type="QVariantList" key="ProjectExplorer.BuildConfiguration.UserEnvironmentChanges"/> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Debug</value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.Qt4BuildConfiguration</value> + <value type="int" key="Qt4ProjectManager.Qt4BuildConfiguration.BuildConfiguration">2</value> + <value type="bool" key="Qt4ProjectManager.Qt4BuildConfiguration.UseShadowBuild">true</value> + </valuemap> + <valuemap type="QVariantMap" key="ProjectExplorer.Target.BuildConfiguration.1"> + <value type="QString" key="ProjectExplorer.BuildConfiguration.BuildDirectory">D:/Qt/project/build-2024kunlun_project_permisson-Desktop_Qt_5_9_4_MSVC2015_32bit-Release</value> + <valuemap type="QVariantMap" key="ProjectExplorer.BuildConfiguration.BuildStepList.0"> + <valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.0"> + <value type="bool" key="ProjectExplorer.BuildStep.Enabled">true</value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">qmake</value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">QtProjectManager.QMakeBuildStep</value> + <value type="bool" key="QtProjectManager.QMakeBuildStep.LinkQmlDebuggingLibrary">false</value> + <value type="QString" key="QtProjectManager.QMakeBuildStep.QMakeArguments"></value> + <value type="bool" key="QtProjectManager.QMakeBuildStep.QMakeForced">false</value> + <value type="bool" key="QtProjectManager.QMakeBuildStep.SeparateDebugInfo">false</value> + <value type="bool" key="QtProjectManager.QMakeBuildStep.UseQtQuickCompiler">false</value> + </valuemap> + <valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.1"> + <value type="bool" key="ProjectExplorer.BuildStep.Enabled">true</value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Make</value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.MakeStep</value> + <valuelist type="QVariantList" key="Qt4ProjectManager.MakeStep.AutomaticallyAddedMakeArguments"/> + <value type="bool" key="Qt4ProjectManager.MakeStep.Clean">false</value> + <value type="QString" key="Qt4ProjectManager.MakeStep.MakeArguments"></value> + <value type="QString" key="Qt4ProjectManager.MakeStep.MakeCommand"></value> + </valuemap> + <value type="int" key="ProjectExplorer.BuildStepList.StepsCount">2</value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">鏋勫缓</value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.BuildSteps.Build</value> + </valuemap> + <valuemap type="QVariantMap" key="ProjectExplorer.BuildConfiguration.BuildStepList.1"> + <valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.0"> + <value type="bool" key="ProjectExplorer.BuildStep.Enabled">true</value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Make</value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.MakeStep</value> + <valuelist type="QVariantList" key="Qt4ProjectManager.MakeStep.AutomaticallyAddedMakeArguments"/> + <value type="bool" key="Qt4ProjectManager.MakeStep.Clean">true</value> + <value type="QString" key="Qt4ProjectManager.MakeStep.MakeArguments">clean</value> + <value type="QString" key="Qt4ProjectManager.MakeStep.MakeCommand"></value> + </valuemap> + <value type="int" key="ProjectExplorer.BuildStepList.StepsCount">1</value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">娓呯悊</value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.BuildSteps.Clean</value> + </valuemap> + <value type="int" key="ProjectExplorer.BuildConfiguration.BuildStepListCount">2</value> + <value type="bool" key="ProjectExplorer.BuildConfiguration.ClearSystemEnvironment">false</value> + <valuelist type="QVariantList" key="ProjectExplorer.BuildConfiguration.UserEnvironmentChanges"/> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Release</value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.Qt4BuildConfiguration</value> + <value type="int" key="Qt4ProjectManager.Qt4BuildConfiguration.BuildConfiguration">0</value> + <value type="bool" key="Qt4ProjectManager.Qt4BuildConfiguration.UseShadowBuild">true</value> + </valuemap> + <valuemap type="QVariantMap" key="ProjectExplorer.Target.BuildConfiguration.2"> + <value type="QString" key="ProjectExplorer.BuildConfiguration.BuildDirectory">D:/Qt/project/build-2024kunlun_project_permisson-Desktop_Qt_5_9_4_MSVC2015_32bit-Profile</value> + <valuemap type="QVariantMap" key="ProjectExplorer.BuildConfiguration.BuildStepList.0"> + <valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.0"> + <value type="bool" key="ProjectExplorer.BuildStep.Enabled">true</value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">qmake</value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">QtProjectManager.QMakeBuildStep</value> + <value type="bool" key="QtProjectManager.QMakeBuildStep.LinkQmlDebuggingLibrary">true</value> + <value type="QString" key="QtProjectManager.QMakeBuildStep.QMakeArguments"></value> + <value type="bool" key="QtProjectManager.QMakeBuildStep.QMakeForced">false</value> + <value type="bool" key="QtProjectManager.QMakeBuildStep.SeparateDebugInfo">true</value> + <value type="bool" key="QtProjectManager.QMakeBuildStep.UseQtQuickCompiler">false</value> + </valuemap> + <valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.1"> + <value type="bool" key="ProjectExplorer.BuildStep.Enabled">true</value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Make</value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.MakeStep</value> + <valuelist type="QVariantList" key="Qt4ProjectManager.MakeStep.AutomaticallyAddedMakeArguments"/> + <value type="bool" key="Qt4ProjectManager.MakeStep.Clean">false</value> + <value type="QString" key="Qt4ProjectManager.MakeStep.MakeArguments"></value> + <value type="QString" key="Qt4ProjectManager.MakeStep.MakeCommand"></value> + </valuemap> + <value type="int" key="ProjectExplorer.BuildStepList.StepsCount">2</value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">鏋勫缓</value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.BuildSteps.Build</value> + </valuemap> + <valuemap type="QVariantMap" key="ProjectExplorer.BuildConfiguration.BuildStepList.1"> + <valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.0"> + <value type="bool" key="ProjectExplorer.BuildStep.Enabled">true</value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Make</value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.MakeStep</value> + <valuelist type="QVariantList" key="Qt4ProjectManager.MakeStep.AutomaticallyAddedMakeArguments"/> + <value type="bool" key="Qt4ProjectManager.MakeStep.Clean">true</value> + <value type="QString" key="Qt4ProjectManager.MakeStep.MakeArguments">clean</value> + <value type="QString" key="Qt4ProjectManager.MakeStep.MakeCommand"></value> + </valuemap> + <value type="int" key="ProjectExplorer.BuildStepList.StepsCount">1</value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">娓呯悊</value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.BuildSteps.Clean</value> + </valuemap> + <value type="int" key="ProjectExplorer.BuildConfiguration.BuildStepListCount">2</value> + <value type="bool" key="ProjectExplorer.BuildConfiguration.ClearSystemEnvironment">false</value> + <valuelist type="QVariantList" key="ProjectExplorer.BuildConfiguration.UserEnvironmentChanges"/> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Profile</value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.Qt4BuildConfiguration</value> + <value type="int" key="Qt4ProjectManager.Qt4BuildConfiguration.BuildConfiguration">0</value> + <value type="bool" key="Qt4ProjectManager.Qt4BuildConfiguration.UseShadowBuild">true</value> + </valuemap> + <value type="int" key="ProjectExplorer.Target.BuildConfigurationCount">3</value> + <valuemap type="QVariantMap" key="ProjectExplorer.Target.DeployConfiguration.0"> + <valuemap type="QVariantMap" key="ProjectExplorer.BuildConfiguration.BuildStepList.0"> + <value type="int" key="ProjectExplorer.BuildStepList.StepsCount">0</value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">閮ㄧ讲</value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.BuildSteps.Deploy</value> + </valuemap> + <value type="int" key="ProjectExplorer.BuildConfiguration.BuildStepListCount">1</value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">鍦ㄦ湰鍦伴儴缃�</value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.DefaultDeployConfiguration</value> + </valuemap> + <value type="int" key="ProjectExplorer.Target.DeployConfigurationCount">1</value> + <valuemap type="QVariantMap" key="ProjectExplorer.Target.PluginSettings"/> + <valuemap type="QVariantMap" key="ProjectExplorer.Target.RunConfiguration.0"> + <value type="bool" key="Analyzer.QmlProfiler.AggregateTraces">false</value> + <value type="bool" key="Analyzer.QmlProfiler.FlushEnabled">false</value> + <value type="uint" key="Analyzer.QmlProfiler.FlushInterval">1000</value> + <value type="QString" key="Analyzer.QmlProfiler.LastTraceFile"></value> + <value type="bool" key="Analyzer.QmlProfiler.Settings.UseGlobalSettings">true</value> + <valuelist type="QVariantList" key="Analyzer.Valgrind.AddedSuppressionFiles"/> + <value type="bool" key="Analyzer.Valgrind.Callgrind.CollectBusEvents">false</value> + <value type="bool" key="Analyzer.Valgrind.Callgrind.CollectSystime">false</value> + <value type="bool" key="Analyzer.Valgrind.Callgrind.EnableBranchSim">false</value> + <value type="bool" key="Analyzer.Valgrind.Callgrind.EnableCacheSim">false</value> + <value type="bool" key="Analyzer.Valgrind.Callgrind.EnableEventToolTips">true</value> + <value type="double" key="Analyzer.Valgrind.Callgrind.MinimumCostRatio">0.01</value> + <value type="double" key="Analyzer.Valgrind.Callgrind.VisualisationMinimumCostRatio">10</value> + <value type="bool" key="Analyzer.Valgrind.FilterExternalIssues">true</value> + <value type="int" key="Analyzer.Valgrind.LeakCheckOnFinish">1</value> + <value type="int" key="Analyzer.Valgrind.NumCallers">25</value> + <valuelist type="QVariantList" key="Analyzer.Valgrind.RemovedSuppressionFiles"/> + <value type="int" key="Analyzer.Valgrind.SelfModifyingCodeDetection">1</value> + <value type="bool" key="Analyzer.Valgrind.Settings.UseGlobalSettings">true</value> + <value type="bool" key="Analyzer.Valgrind.ShowReachable">false</value> + <value type="bool" key="Analyzer.Valgrind.TrackOrigins">true</value> + <value type="QString" key="Analyzer.Valgrind.ValgrindExecutable">valgrind</value> + <valuelist type="QVariantList" key="Analyzer.Valgrind.VisibleErrorKinds"> + <value type="int">0</value> + <value type="int">1</value> + <value type="int">2</value> + <value type="int">3</value> + <value type="int">4</value> + <value type="int">5</value> + <value type="int">6</value> + <value type="int">7</value> + <value type="int">8</value> + <value type="int">9</value> + <value type="int">10</value> + <value type="int">11</value> + <value type="int">12</value> + <value type="int">13</value> + <value type="int">14</value> + </valuelist> + <value type="int" key="PE.EnvironmentAspect.Base">2</value> + <valuelist type="QVariantList" key="PE.EnvironmentAspect.Changes"/> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">2024kunlun_project_permisson</value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.Qt4RunConfiguration:D:/Qt/project/2024kunlun_project_permisson/2024kunlun_project_permisson.pro</value> + <value type="bool" key="QmakeProjectManager.QmakeRunConfiguration.UseLibrarySearchPath">true</value> + <value type="QString" key="Qt4ProjectManager.Qt4RunConfiguration.CommandLineArguments"></value> + <value type="QString" key="Qt4ProjectManager.Qt4RunConfiguration.ProFile">2024kunlun_project_permisson.pro</value> + <value type="bool" key="Qt4ProjectManager.Qt4RunConfiguration.UseDyldImageSuffix">false</value> + <value type="QString" key="Qt4ProjectManager.Qt4RunConfiguration.UserWorkingDirectory"></value> + <value type="QString" key="Qt4ProjectManager.Qt4RunConfiguration.UserWorkingDirectory.default">D:/Qt/project/build-2024kunlun_project_permisson-Desktop_Qt_5_9_4_MinGW_32bit-Debug</value> + <value type="uint" key="RunConfiguration.QmlDebugServerPort">3768</value> + <value type="bool" key="RunConfiguration.UseCppDebugger">false</value> + <value type="bool" key="RunConfiguration.UseCppDebuggerAuto">true</value> + <value type="bool" key="RunConfiguration.UseMultiProcess">false</value> + <value type="bool" key="RunConfiguration.UseQmlDebugger">false</value> + <value type="bool" key="RunConfiguration.UseQmlDebuggerAuto">true</value> + </valuemap> + <value type="int" key="ProjectExplorer.Target.RunConfigurationCount">1</value> + </valuemap> + </data> + <data> + <variable>ProjectExplorer.Project.Target.2</variable> + <valuemap type="QVariantMap"> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Desktop Qt 5.9.4 MSVC2015 64bit</value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName">Desktop Qt 5.9.4 MSVC2015 64bit</value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">qt.594.win64_msvc2015_64_kit</value> + <value type="int" key="ProjectExplorer.Target.ActiveBuildConfiguration">0</value> + <value type="int" key="ProjectExplorer.Target.ActiveDeployConfiguration">0</value> + <value type="int" key="ProjectExplorer.Target.ActiveRunConfiguration">0</value> + <valuemap type="QVariantMap" key="ProjectExplorer.Target.BuildConfiguration.0"> + <value type="QString" key="ProjectExplorer.BuildConfiguration.BuildDirectory">D:/Qt/project/build-2024kunlun_project_permisson-Desktop_Qt_5_9_4_MSVC2015_64bit-Debug</value> + <valuemap type="QVariantMap" key="ProjectExplorer.BuildConfiguration.BuildStepList.0"> + <valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.0"> + <value type="bool" key="ProjectExplorer.BuildStep.Enabled">true</value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">qmake</value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">QtProjectManager.QMakeBuildStep</value> + <value type="bool" key="QtProjectManager.QMakeBuildStep.LinkQmlDebuggingLibrary">true</value> + <value type="QString" key="QtProjectManager.QMakeBuildStep.QMakeArguments"></value> + <value type="bool" key="QtProjectManager.QMakeBuildStep.QMakeForced">false</value> + <value type="bool" key="QtProjectManager.QMakeBuildStep.SeparateDebugInfo">false</value> + <value type="bool" key="QtProjectManager.QMakeBuildStep.UseQtQuickCompiler">false</value> + </valuemap> + <valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.1"> + <value type="bool" key="ProjectExplorer.BuildStep.Enabled">true</value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Make</value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.MakeStep</value> + <valuelist type="QVariantList" key="Qt4ProjectManager.MakeStep.AutomaticallyAddedMakeArguments"/> + <value type="bool" key="Qt4ProjectManager.MakeStep.Clean">false</value> + <value type="QString" key="Qt4ProjectManager.MakeStep.MakeArguments"></value> + <value type="QString" key="Qt4ProjectManager.MakeStep.MakeCommand"></value> + </valuemap> + <value type="int" key="ProjectExplorer.BuildStepList.StepsCount">2</value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">鏋勫缓</value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.BuildSteps.Build</value> + </valuemap> + <valuemap type="QVariantMap" key="ProjectExplorer.BuildConfiguration.BuildStepList.1"> + <valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.0"> + <value type="bool" key="ProjectExplorer.BuildStep.Enabled">true</value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Make</value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.MakeStep</value> + <valuelist type="QVariantList" key="Qt4ProjectManager.MakeStep.AutomaticallyAddedMakeArguments"/> + <value type="bool" key="Qt4ProjectManager.MakeStep.Clean">true</value> + <value type="QString" key="Qt4ProjectManager.MakeStep.MakeArguments">clean</value> + <value type="QString" key="Qt4ProjectManager.MakeStep.MakeCommand"></value> + </valuemap> + <value type="int" key="ProjectExplorer.BuildStepList.StepsCount">1</value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">娓呯悊</value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.BuildSteps.Clean</value> + </valuemap> + <value type="int" key="ProjectExplorer.BuildConfiguration.BuildStepListCount">2</value> + <value type="bool" key="ProjectExplorer.BuildConfiguration.ClearSystemEnvironment">false</value> + <valuelist type="QVariantList" key="ProjectExplorer.BuildConfiguration.UserEnvironmentChanges"/> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Debug</value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.Qt4BuildConfiguration</value> + <value type="int" key="Qt4ProjectManager.Qt4BuildConfiguration.BuildConfiguration">2</value> + <value type="bool" key="Qt4ProjectManager.Qt4BuildConfiguration.UseShadowBuild">true</value> + </valuemap> + <valuemap type="QVariantMap" key="ProjectExplorer.Target.BuildConfiguration.1"> + <value type="QString" key="ProjectExplorer.BuildConfiguration.BuildDirectory">D:/Qt/project/build-2024kunlun_project_permisson-Desktop_Qt_5_9_4_MSVC2015_64bit-Release</value> + <valuemap type="QVariantMap" key="ProjectExplorer.BuildConfiguration.BuildStepList.0"> + <valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.0"> + <value type="bool" key="ProjectExplorer.BuildStep.Enabled">true</value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">qmake</value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">QtProjectManager.QMakeBuildStep</value> + <value type="bool" key="QtProjectManager.QMakeBuildStep.LinkQmlDebuggingLibrary">false</value> + <value type="QString" key="QtProjectManager.QMakeBuildStep.QMakeArguments"></value> + <value type="bool" key="QtProjectManager.QMakeBuildStep.QMakeForced">false</value> + <value type="bool" key="QtProjectManager.QMakeBuildStep.SeparateDebugInfo">false</value> + <value type="bool" key="QtProjectManager.QMakeBuildStep.UseQtQuickCompiler">false</value> + </valuemap> + <valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.1"> + <value type="bool" key="ProjectExplorer.BuildStep.Enabled">true</value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Make</value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.MakeStep</value> + <valuelist type="QVariantList" key="Qt4ProjectManager.MakeStep.AutomaticallyAddedMakeArguments"/> + <value type="bool" key="Qt4ProjectManager.MakeStep.Clean">false</value> + <value type="QString" key="Qt4ProjectManager.MakeStep.MakeArguments"></value> + <value type="QString" key="Qt4ProjectManager.MakeStep.MakeCommand"></value> + </valuemap> + <value type="int" key="ProjectExplorer.BuildStepList.StepsCount">2</value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">鏋勫缓</value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.BuildSteps.Build</value> + </valuemap> + <valuemap type="QVariantMap" key="ProjectExplorer.BuildConfiguration.BuildStepList.1"> + <valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.0"> + <value type="bool" key="ProjectExplorer.BuildStep.Enabled">true</value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Make</value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.MakeStep</value> + <valuelist type="QVariantList" key="Qt4ProjectManager.MakeStep.AutomaticallyAddedMakeArguments"/> + <value type="bool" key="Qt4ProjectManager.MakeStep.Clean">true</value> + <value type="QString" key="Qt4ProjectManager.MakeStep.MakeArguments">clean</value> + <value type="QString" key="Qt4ProjectManager.MakeStep.MakeCommand"></value> + </valuemap> + <value type="int" key="ProjectExplorer.BuildStepList.StepsCount">1</value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">娓呯悊</value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.BuildSteps.Clean</value> + </valuemap> + <value type="int" key="ProjectExplorer.BuildConfiguration.BuildStepListCount">2</value> + <value type="bool" key="ProjectExplorer.BuildConfiguration.ClearSystemEnvironment">false</value> + <valuelist type="QVariantList" key="ProjectExplorer.BuildConfiguration.UserEnvironmentChanges"/> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Release</value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.Qt4BuildConfiguration</value> + <value type="int" key="Qt4ProjectManager.Qt4BuildConfiguration.BuildConfiguration">0</value> + <value type="bool" key="Qt4ProjectManager.Qt4BuildConfiguration.UseShadowBuild">true</value> + </valuemap> + <valuemap type="QVariantMap" key="ProjectExplorer.Target.BuildConfiguration.2"> + <value type="QString" key="ProjectExplorer.BuildConfiguration.BuildDirectory">D:/Qt/project/build-2024kunlun_project_permisson-Desktop_Qt_5_9_4_MSVC2015_64bit-Profile</value> + <valuemap type="QVariantMap" key="ProjectExplorer.BuildConfiguration.BuildStepList.0"> + <valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.0"> + <value type="bool" key="ProjectExplorer.BuildStep.Enabled">true</value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">qmake</value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">QtProjectManager.QMakeBuildStep</value> + <value type="bool" key="QtProjectManager.QMakeBuildStep.LinkQmlDebuggingLibrary">true</value> + <value type="QString" key="QtProjectManager.QMakeBuildStep.QMakeArguments"></value> + <value type="bool" key="QtProjectManager.QMakeBuildStep.QMakeForced">false</value> + <value type="bool" key="QtProjectManager.QMakeBuildStep.SeparateDebugInfo">true</value> + <value type="bool" key="QtProjectManager.QMakeBuildStep.UseQtQuickCompiler">false</value> + </valuemap> + <valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.1"> + <value type="bool" key="ProjectExplorer.BuildStep.Enabled">true</value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Make</value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.MakeStep</value> + <valuelist type="QVariantList" key="Qt4ProjectManager.MakeStep.AutomaticallyAddedMakeArguments"/> + <value type="bool" key="Qt4ProjectManager.MakeStep.Clean">false</value> + <value type="QString" key="Qt4ProjectManager.MakeStep.MakeArguments"></value> + <value type="QString" key="Qt4ProjectManager.MakeStep.MakeCommand"></value> + </valuemap> + <value type="int" key="ProjectExplorer.BuildStepList.StepsCount">2</value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">鏋勫缓</value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.BuildSteps.Build</value> + </valuemap> + <valuemap type="QVariantMap" key="ProjectExplorer.BuildConfiguration.BuildStepList.1"> + <valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.0"> + <value type="bool" key="ProjectExplorer.BuildStep.Enabled">true</value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Make</value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.MakeStep</value> + <valuelist type="QVariantList" key="Qt4ProjectManager.MakeStep.AutomaticallyAddedMakeArguments"/> + <value type="bool" key="Qt4ProjectManager.MakeStep.Clean">true</value> + <value type="QString" key="Qt4ProjectManager.MakeStep.MakeArguments">clean</value> + <value type="QString" key="Qt4ProjectManager.MakeStep.MakeCommand"></value> + </valuemap> + <value type="int" key="ProjectExplorer.BuildStepList.StepsCount">1</value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">娓呯悊</value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.BuildSteps.Clean</value> + </valuemap> + <value type="int" key="ProjectExplorer.BuildConfiguration.BuildStepListCount">2</value> + <value type="bool" key="ProjectExplorer.BuildConfiguration.ClearSystemEnvironment">false</value> + <valuelist type="QVariantList" key="ProjectExplorer.BuildConfiguration.UserEnvironmentChanges"/> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Profile</value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.Qt4BuildConfiguration</value> + <value type="int" key="Qt4ProjectManager.Qt4BuildConfiguration.BuildConfiguration">0</value> + <value type="bool" key="Qt4ProjectManager.Qt4BuildConfiguration.UseShadowBuild">true</value> + </valuemap> + <value type="int" key="ProjectExplorer.Target.BuildConfigurationCount">3</value> + <valuemap type="QVariantMap" key="ProjectExplorer.Target.DeployConfiguration.0"> + <valuemap type="QVariantMap" key="ProjectExplorer.BuildConfiguration.BuildStepList.0"> + <value type="int" key="ProjectExplorer.BuildStepList.StepsCount">0</value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">閮ㄧ讲</value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.BuildSteps.Deploy</value> + </valuemap> + <value type="int" key="ProjectExplorer.BuildConfiguration.BuildStepListCount">1</value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">鍦ㄦ湰鍦伴儴缃�</value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.DefaultDeployConfiguration</value> + </valuemap> + <value type="int" key="ProjectExplorer.Target.DeployConfigurationCount">1</value> + <valuemap type="QVariantMap" key="ProjectExplorer.Target.PluginSettings"/> + <valuemap type="QVariantMap" key="ProjectExplorer.Target.RunConfiguration.0"> + <value type="bool" key="Analyzer.QmlProfiler.AggregateTraces">false</value> + <value type="bool" key="Analyzer.QmlProfiler.FlushEnabled">false</value> + <value type="uint" key="Analyzer.QmlProfiler.FlushInterval">1000</value> + <value type="QString" key="Analyzer.QmlProfiler.LastTraceFile"></value> + <value type="bool" key="Analyzer.QmlProfiler.Settings.UseGlobalSettings">true</value> + <valuelist type="QVariantList" key="Analyzer.Valgrind.AddedSuppressionFiles"/> + <value type="bool" key="Analyzer.Valgrind.Callgrind.CollectBusEvents">false</value> + <value type="bool" key="Analyzer.Valgrind.Callgrind.CollectSystime">false</value> + <value type="bool" key="Analyzer.Valgrind.Callgrind.EnableBranchSim">false</value> + <value type="bool" key="Analyzer.Valgrind.Callgrind.EnableCacheSim">false</value> + <value type="bool" key="Analyzer.Valgrind.Callgrind.EnableEventToolTips">true</value> + <value type="double" key="Analyzer.Valgrind.Callgrind.MinimumCostRatio">0.01</value> + <value type="double" key="Analyzer.Valgrind.Callgrind.VisualisationMinimumCostRatio">10</value> + <value type="bool" key="Analyzer.Valgrind.FilterExternalIssues">true</value> + <value type="int" key="Analyzer.Valgrind.LeakCheckOnFinish">1</value> + <value type="int" key="Analyzer.Valgrind.NumCallers">25</value> + <valuelist type="QVariantList" key="Analyzer.Valgrind.RemovedSuppressionFiles"/> + <value type="int" key="Analyzer.Valgrind.SelfModifyingCodeDetection">1</value> + <value type="bool" key="Analyzer.Valgrind.Settings.UseGlobalSettings">true</value> + <value type="bool" key="Analyzer.Valgrind.ShowReachable">false</value> + <value type="bool" key="Analyzer.Valgrind.TrackOrigins">true</value> + <value type="QString" key="Analyzer.Valgrind.ValgrindExecutable">valgrind</value> + <valuelist type="QVariantList" key="Analyzer.Valgrind.VisibleErrorKinds"> + <value type="int">0</value> + <value type="int">1</value> + <value type="int">2</value> + <value type="int">3</value> + <value type="int">4</value> + <value type="int">5</value> + <value type="int">6</value> + <value type="int">7</value> + <value type="int">8</value> + <value type="int">9</value> + <value type="int">10</value> + <value type="int">11</value> + <value type="int">12</value> + <value type="int">13</value> + <value type="int">14</value> + </valuelist> + <value type="int" key="PE.EnvironmentAspect.Base">-1</value> + <valuelist type="QVariantList" key="PE.EnvironmentAspect.Changes"/> + <value type="QString" key="ProjectExplorer.CustomExecutableRunConfiguration.Arguments"></value> + <value type="QString" key="ProjectExplorer.CustomExecutableRunConfiguration.Executable"></value> + <value type="QString" key="ProjectExplorer.CustomExecutableRunConfiguration.WorkingDirectory">%{buildDir}</value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Custom Executable</value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> + <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.CustomExecutableRunConfiguration</value> + <value type="uint" key="RunConfiguration.QmlDebugServerPort">3768</value> + <value type="bool" key="RunConfiguration.UseCppDebugger">false</value> + <value type="bool" key="RunConfiguration.UseCppDebuggerAuto">true</value> + <value type="bool" key="RunConfiguration.UseMultiProcess">false</value> + <value type="bool" key="RunConfiguration.UseQmlDebugger">false</value> + <value type="bool" key="RunConfiguration.UseQmlDebuggerAuto">true</value> + </valuemap> + <value type="int" key="ProjectExplorer.Target.RunConfigurationCount">1</value> + </valuemap> + </data> + <data> + <variable>ProjectExplorer.Project.TargetCount</variable> + <value type="int">3</value> + </data> + <data> + <variable>ProjectExplorer.Project.Updater.FileVersion</variable> + <value type="int">18</value> + </data> + <data> + <variable>Version</variable> + <value type="int">18</value> + </data> +</qtcreator> diff --git "a/Client/\345\247\234\345\217\257\345\272\232/code/2024kunlun_project_permisson/PmsClientSocket.cpp" "b/Client/\345\247\234\345\217\257\345\272\232/code/2024kunlun_project_permisson/PmsClientSocket.cpp" new file mode 100644 index 0000000..264c552 --- /dev/null +++ "b/Client/\345\247\234\345\217\257\345\272\232/code/2024kunlun_project_permisson/PmsClientSocket.cpp" @@ -0,0 +1,109 @@ +锘�#include "PmsClientSocket.h" + +#include <QMessageBox> + +PmsClientSocket::PmsClientSocket(QObject * parent):QObject(parent) +{ + client = new QTcpSocket(this); + + client->connectToHost(targetIp,port); + if(!client->waitForConnected(3000)){ + + qDebug()<< "QT缃戠粶閫氫俊,杩炴帴鏈嶅姟绔け璐ワ紒"; + return; + } + connectSuccess = true; + qDebug()<< "QT缃戠粶閫氫俊鎴愬姛宸茶繛鎺ユ湇鍔″櫒锛�"; + connect(client,SIGNAL(connected()),this,SLOT(connected_Slot())); + +} + +void PmsClientSocket::queryAllUserAboutUser() +{ + if(connectSuccess){ + QueryPmsRequest req; + client->write((char *)&req,req.head.len); + qDebug() << "鏌ヨ鍏ㄩ儴鏉冮檺璇锋眰鍙戦�佹垚鍔�"; + } + +} +void PmsClientSocket::queryPmsByParam(PmsParam param) +{ + if(connectSuccess){ + QueryPmsRequest req; + strcpy(req.name,param.getName().c_str()); + strcpy(req.permissonType,param.getPermissonType().c_str()); + strcpy(req.userNo,param.getUserNo().c_str()); + client->write((char *)&req,req.head.len); + qDebug() << "鏉′欢鏌ヨ鏉冮檺璇锋眰鍙戦�佹垚鍔�"; + } +} + +void PmsClientSocket::updatePmsByParam(PmsPlusParma param) +{ + UpdatePmsRequest upReq; + upReq.devManage = param.getDevManage(); + upReq.loggerSearch = param.getLoggerSearch(); + upReq.mapMark = param.getMapMark(); + upReq.productPlan = param.getProductPlan(); + upReq.roleId = param.getRoleId(); + client->write((char *)&upReq,upReq.head.len); + qDebug() << "鏇存柊鏉冮檺璇锋眰鍙戦�佹垚鍔�"; +} + +void PmsClientSocket::connected_Slot() +{ + connect(client,SIGNAL(readyRead()),this,SLOT(readyRead_Slot())); +} + +void PmsClientSocket::readyRead_Slot() +{ + QByteArray buf = client->readAll(); + QString recvData = QString::fromLocal8Bit(buf); + qDebug()<< "client鏀跺埌鐨勬暟鎹�" << recvData; + QueryPmsResponse * res; + UpdatePmsResponse * upRes; + int type = *(int *)buf.data(); + if(type == QUERY_PMS_REQ){ + res = (QueryPmsResponse *)buf.data(); + if(res->success){ + vector<PmsQueryResult> vecs; + + for(int i =0;i<100;i++){ + if(*(int *)&res->pmsList[i]){ + PmsRes structRes = res->pmsList[i]; + PmsQueryResult res; + res.setName(string(structRes.name)); + res.setUserNo(string(structRes.userNo)); + res.setRoleId(structRes.roleId); + res.setStartDateTime(string(structRes.startDateTime)); + res.setEndDateTime(string(structRes.endDateTime)); + res.setLoggerSearch(structRes.loggerSearch); + res.setMapMark(structRes.mapMark); + res.setDevManage(structRes.devManage); + res.setProductPlan(structRes.productPlan); + res.setQueryHistory(structRes.queryHistory); + + res.setPermissonType(string(structRes.permissonType)); + + vecs.push_back(res); + + }else break; + } + if(!vecs.empty()){ + emit notifyDateChange(vecs); + } + } + } + if(type == UPDATE_PMS_REQ){ + res = (QueryPmsResponse *)buf.data(); + if(res->success){ + QString dlgTitle = "鏇存柊缁撴灉"; + QString strInfo = "鏉冮檺淇℃伅鏇存柊鎴愬姛"; +// QMessageBox::information(this,dlgTitle,strInfo, +// QMessageBox::Ok, QMessageBox::NoButton); + }else{ +// QMessageBox::warning(this, "鏇存柊缁撴灉", "鏉冮檺淇℃伅鏇存柊澶辫触"); + } + } +} diff --git "a/Client/\345\247\234\345\217\257\345\272\232/code/2024kunlun_project_permisson/PmsClientSocket.h" "b/Client/\345\247\234\345\217\257\345\272\232/code/2024kunlun_project_permisson/PmsClientSocket.h" new file mode 100644 index 0000000..df200ba --- /dev/null +++ "b/Client/\345\247\234\345\217\257\345\272\232/code/2024kunlun_project_permisson/PmsClientSocket.h" @@ -0,0 +1,123 @@ +锘�#ifndef PMSCLINETSOCKET_H +#define PMSCLINETSOCKET_H +#include <QTcpSocket> +#include <string> +#include "pmsqueryresult.h" +#include <vector> +#include "pmsplusparam.h" +#include <QDebug> + +using namespace std; + +struct Head{ + int type; + int len; +}; + +enum option{ + QUERY_PMS_REQ, + UPDATE_PMS_REQ, + QUERY_PMS_RES, + UPDATE_PMS_RES, +}; + + +// 鎸夊憳宸ョ紪鍙枫�佸悕瀛楁垨鑱屼綅鏌ヨ浜哄憳鏉冮檺淇℃伅璇锋眰 +typedef struct QueryPmsRequest{ + Head head; + char userNo[32]; + char name[32]; + char permissonType[32]; + QueryPmsRequest(){ + head.type=QUERY_PMS_REQ; + userNo[32] = {0}; + name[32] = {0}; + permissonType[32] = {0}; + head.len = sizeof(QueryPmsRequest); + } +} QueryPmsRequest; + +// 鎸夎鑹瞚d鏇存柊鏉冮檺淇℃伅璇锋眰 +typedef struct UpdatePmsRequest{ + Head head; + int roleId; + int queryHistory; + int loggerSearch; + int mapMark; + int devManage; + int productPlan; + UpdatePmsRequest(){ + head.type=QUERY_PMS_RES; + head.len = sizeof(UpdatePmsRequest); + } +} UpdatePmsRequest; + +// 鍗曚釜浜哄憳鏉冮檺缁撴瀯浣� +typedef struct UserAboutPms{ + + int queryHistory; + int loggerSearch; + int mapMark; + int devManage; + int productPlan; + int roleId; + char userNo[32]; + char name[32]; + char permissonType[32]; + char startDateTime[32]; + char endDateTime[32]; + +} PmsRes; + +// 鏌ヨ浜哄憳鍜岃鑹蹭俊鎭殑鍝嶅簲缁撴瀯浣� +typedef struct UserAboutPmsResponse{ + Head head; + int success; // 1涓烘垚鍔� ,0涓哄け璐� + PmsRes *pmsList; + UserAboutPmsResponse(){ + head.type=QUERY_PMS_RES; + pmsList = (PmsRes *)malloc(sizeof(PmsRes)*100); + pmsList = {0}; + head.len = sizeof(UserAboutPmsResponse); + } +} QueryPmsResponse; + +// 鏉冮檺鏇存柊缁撴灉鍝嶅簲浣� +typedef struct UpdatePmsResponse{ + Head head; + int success; // 1涓烘垚鍔� ,0涓哄け璐� + UpdatePmsResponse(){ + head.type = UPDATE_PMS_RES; + head.len = sizeof(UpdatePmsResponse); + } + +} UpdatePmsResponse ; + + +class PmsClientSocket : public QObject +{ + Q_OBJECT + + QTcpSocket *client; + + int port=88888; + QString targetIp = "127.0.0.1"; + + bool connectSuccess= false; + +public: + PmsClientSocket(QObject * parent=0); + void queryAllUserAboutUser(); + + void queryPmsByParam(PmsParam param); + + void updatePmsByParam(PmsPlusParma param); +signals: + void notifyDateChange(vector<PmsQueryResult>); + +private slots: + void connected_Slot(); //澹版槑妲藉嚱鏁� + void readyRead_Slot(); +}; + +#endif // PMSCLINETSOCKET_H diff --git "a/Client/\345\247\234\345\217\257\345\272\232/code/2024kunlun_project_permisson/main.cpp" "b/Client/\345\247\234\345\217\257\345\272\232/code/2024kunlun_project_permisson/main.cpp" new file mode 100644 index 0000000..41b03d3 --- /dev/null +++ "b/Client/\345\247\234\345\217\257\345\272\232/code/2024kunlun_project_permisson/main.cpp" @@ -0,0 +1,11 @@ +锘�#include "permissonwindow.h" +#include <QApplication> + +int main(int argc, char *argv[]) +{ + QApplication a(argc, argv); + PermissonWindow w; + w.show(); + + return a.exec(); +} diff --git "a/Client/\345\247\234\345\217\257\345\272\232/code/2024kunlun_project_permisson/mainwindow.cpp" "b/Client/\345\247\234\345\217\257\345\272\232/code/2024kunlun_project_permisson/mainwindow.cpp" new file mode 100644 index 0000000..9a2b266 --- /dev/null +++ "b/Client/\345\247\234\345\217\257\345\272\232/code/2024kunlun_project_permisson/mainwindow.cpp" @@ -0,0 +1,14 @@ +锘�#include "mainwindow.h" +#include "ui_mainwindow.h" + +MainWindow::MainWindow(QWidget *parent) : + QMainWindow(parent), + ui(new Ui::MainWindow) +{ + ui->setupUi(this); +} + +MainWindow::~MainWindow() +{ + delete ui; +} diff --git "a/Client/\345\247\234\345\217\257\345\272\232/code/2024kunlun_project_permisson/mainwindow.h" "b/Client/\345\247\234\345\217\257\345\272\232/code/2024kunlun_project_permisson/mainwindow.h" new file mode 100644 index 0000000..10c706e --- /dev/null +++ "b/Client/\345\247\234\345\217\257\345\272\232/code/2024kunlun_project_permisson/mainwindow.h" @@ -0,0 +1,22 @@ +锘�#ifndef MAINWINDOW_H +#define MAINWINDOW_H + +#include <QMainWindow> + +namespace Ui { +class MainWindow; +} + +class MainWindow : public QMainWindow +{ + Q_OBJECT + +public: + explicit MainWindow(QWidget *parent = 0); + ~MainWindow(); + +private: + Ui::MainWindow *ui; +}; + +#endif // MAINWINDOW_H diff --git "a/Client/\345\247\234\345\217\257\345\272\232/code/2024kunlun_project_permisson/mainwindow.ui" "b/Client/\345\247\234\345\217\257\345\272\232/code/2024kunlun_project_permisson/mainwindow.ui" new file mode 100644 index 0000000..0a06936 --- /dev/null +++ "b/Client/\345\247\234\345\217\257\345\272\232/code/2024kunlun_project_permisson/mainwindow.ui" @@ -0,0 +1,24 @@ +<ui version="4.0"> + <author/> + <comment/> + <exportmacro/> + <class>MainWindow</class> + <widget name="MainWindow" class="QMainWindow"> + <property name="geometry"> + <rect> + <x>0</x> + <y>0</y> + <width>800</width> + <height>600</height> + </rect> + </property> + <property name="windowTitle"> + <string>MainWindow</string> + </property> + <widget name="menubar" class="QMenuBar"/> + <widget name="centralwidget" class="QWidget"/> + <widget name="statusbar" class="QStatusBar"/> + </widget> + <pixmapfunction/> + <connections/> +</ui> diff --git "a/Client/\345\247\234\345\217\257\345\272\232/code/2024kunlun_project_permisson/modeldisplay.cpp" "b/Client/\345\247\234\345\217\257\345\272\232/code/2024kunlun_project_permisson/modeldisplay.cpp" new file mode 100644 index 0000000..e645808 --- /dev/null +++ "b/Client/\345\247\234\345\217\257\345\272\232/code/2024kunlun_project_permisson/modeldisplay.cpp" @@ -0,0 +1,14 @@ +#include "modeldisplay.h" +#include "ui_modeldisplay.h" + +modelDisplay::modelDisplay(QWidget *parent) : + QWidget(parent), + ui(new Ui::modelDisplay) +{ + ui->setupUi(this); +} + +modelDisplay::~modelDisplay() +{ + delete ui; +} diff --git "a/Client/\345\247\234\345\217\257\345\272\232/code/2024kunlun_project_permisson/modeldisplay.h" "b/Client/\345\247\234\345\217\257\345\272\232/code/2024kunlun_project_permisson/modeldisplay.h" new file mode 100644 index 0000000..7d94869 --- /dev/null +++ "b/Client/\345\247\234\345\217\257\345\272\232/code/2024kunlun_project_permisson/modeldisplay.h" @@ -0,0 +1,22 @@ +#ifndef MODELDISPLAY_H +#define MODELDISPLAY_H + +#include <QWidget> + +namespace Ui { +class modelDisplay; +} + +class modelDisplay : public QWidget +{ + Q_OBJECT + +public: + explicit modelDisplay(QWidget *parent = 0); + ~modelDisplay(); + +private: + Ui::modelDisplay *ui; +}; + +#endif // MODELDISPLAY_H diff --git "a/Client/\345\247\234\345\217\257\345\272\232/code/2024kunlun_project_permisson/modeldisplay.ui" "b/Client/\345\247\234\345\217\257\345\272\232/code/2024kunlun_project_permisson/modeldisplay.ui" new file mode 100644 index 0000000..5fe7e47 --- /dev/null +++ "b/Client/\345\247\234\345\217\257\345\272\232/code/2024kunlun_project_permisson/modeldisplay.ui" @@ -0,0 +1,32 @@ +<?xml version="1.0" encoding="UTF-8"?> +<ui version="4.0"> + <class>modelDisplay</class> + <widget class="QWidget" name="modelDisplay"> + <property name="geometry"> + <rect> + <x>0</x> + <y>0</y> + <width>400</width> + <height>300</height> + </rect> + </property> + <property name="windowTitle"> + <string>Form</string> + </property> + <widget class="QLabel" name="label"> + <property name="geometry"> + <rect> + <x>120</x> + <y>160</y> + <width>72</width> + <height>15</height> + </rect> + </property> + <property name="text"> + <string>妯℃��</string> + </property> + </widget> + </widget> + <resources/> + <connections/> +</ui> diff --git "a/Client/\345\247\234\345\217\257\345\272\232/code/2024kunlun_project_permisson/permissondialog.cpp" "b/Client/\345\247\234\345\217\257\345\272\232/code/2024kunlun_project_permisson/permissondialog.cpp" new file mode 100644 index 0000000..258f81e --- /dev/null +++ "b/Client/\345\247\234\345\217\257\345\272\232/code/2024kunlun_project_permisson/permissondialog.cpp" @@ -0,0 +1,86 @@ +锘�#include "permissondialog.h" +#include "ui_permissondialog.h" + +PermissonDialog::PermissonDialog(QWidget *parent,PmsClientSocket * client) : + QDialog(parent), + client(client), + ui(new Ui::PermissonDialog) +{ + ui->setupUi(this); + + map<int,QRadioButton *> map1; + map1[0]=ui->radioButton; + map1[1]=ui->radioButton_2; + map1[2]=ui->radioButton_3; + + map<int,QRadioButton *> map2; + map2[0]=ui->radioButton_4; + map2[1]=ui->radioButton_5; + map2[2]=ui->radioButton_6; + + map<int,QRadioButton *> map3; + map3[0]=ui->radioButton_7; + map3[1]=ui->radioButton_8; + map3[2]=ui->radioButton_9; + + map<int,QRadioButton *> map4; + map4[0]=ui->radioButton_10; + map4[1]=ui->radioButton_11; + map4[2]=ui->radioButton_12; + + map<int,QRadioButton *> map5; + map5[0]=ui->radioButton_13; + map5[1]=ui->radioButton_14; + map5[2]=ui->radioButton_15; + + + btnList.push_back(map1); + btnList.push_back(map2); + btnList.push_back(map3); + btnList.push_back(map4); + btnList.push_back(map5); + +} + +PermissonDialog::~PermissonDialog() +{ + delete ui; +} + +int PermissonDialog::findBoxCheck(map<int, QRadioButton *> map) +{ + for(int i =0;i<map.size();i++){ + if(btnList[0][i]->isChecked()){ + return i; + } + } +} + +void PermissonDialog::recvUserNo(PmsQueryResult res) +{ + + // 濉厖checkbox + btnList[0][res.getQueryHistory()]->setChecked(true); + btnList[1][res.getLoggerSearch()]->setChecked(true); + btnList[2][res.getMapMark()]->setChecked(true); + btnList[3][res.getDevManage()]->setChecked(true); + btnList[4][res.getProductPlan()]->setChecked(true); + +} + + +void PermissonDialog::on_buttonBox_accepted() +{ + qDebug()<< "鍙戦�佹洿鏂拌姹�"; + PmsPlusParma param; + + param.setQueryHistory(findBoxCheck(btnList[0])); + param.setLoggerSearch(findBoxCheck(btnList[1])); + param.setMapMark(findBoxCheck(btnList[2])); + param.setDevManage(findBoxCheck(btnList[3])); + param.setProductPlan(findBoxCheck(btnList[4])); + + + client->updatePmsByParam(param); + +} diff --git "a/Client/\345\247\234\345\217\257\345\272\232/code/2024kunlun_project_permisson/permissondialog.h" "b/Client/\345\247\234\345\217\257\345\272\232/code/2024kunlun_project_permisson/permissondialog.h" new file mode 100644 index 0000000..3ddff06 --- /dev/null +++ "b/Client/\345\247\234\345\217\257\345\272\232/code/2024kunlun_project_permisson/permissondialog.h" @@ -0,0 +1,36 @@ +锘�#ifndef PERMISSONDIALOG_H +#define PERMISSONDIALOG_H + +#include <QDialog> +#include "PmsClientSocket.h" +#include <qradiobutton.h> +#include <vector> +#include <map> +#include <QDebug> +using namespace std; + +namespace Ui { +class PermissonDialog; +} + +class PermissonDialog : public QDialog +{ + Q_OBJECT +public: + explicit PermissonDialog(QWidget *parent,PmsClientSocket * client); + ~PermissonDialog(); +private: + Ui::PermissonDialog *ui; + + PmsClientSocket * client; + + vector<map<int,QRadioButton *>> btnList; + + int findBoxCheck(map<int,QRadioButton *> map); + +private slots: + void recvUserNo(PmsQueryResult pms); + void on_buttonBox_accepted(); +}; + +#endif // PERMISSONDIALOG_H diff --git "a/Client/\345\247\234\345\217\257\345\272\232/code/2024kunlun_project_permisson/permissondialog.ui" "b/Client/\345\247\234\345\217\257\345\272\232/code/2024kunlun_project_permisson/permissondialog.ui" new file mode 100644 index 0000000..2701441 --- /dev/null +++ "b/Client/\345\247\234\345\217\257\345\272\232/code/2024kunlun_project_permisson/permissondialog.ui" @@ -0,0 +1,302 @@ +<?xml version="1.0" encoding="UTF-8"?> +<ui version="4.0"> + <class>PermissonDialog</class> + <widget class="QDialog" name="PermissonDialog"> + <property name="geometry"> + <rect> + <x>0</x> + <y>0</y> + <width>421</width> + <height>361</height> + </rect> + </property> + <property name="windowTitle"> + <string>Dialog</string> + </property> + <layout class="QGridLayout" name="gridLayout_3"> + <item row="0" column="0"> + <layout class="QGridLayout" name="gridLayout_2"> + <item row="0" column="0"> + <layout class="QGridLayout" name="gridLayout"> + <item row="0" column="0"> + <widget class="QGroupBox" name="groupBox"> + <property name="title"> + <string>鍘嗘椂鏌ヨ</string> + </property> + <widget class="QRadioButton" name="radioButton"> + <property name="geometry"> + <rect> + <x>20</x> + <y>20</y> + <width>115</width> + <height>19</height> + </rect> + </property> + <property name="text"> + <string>鏃犳潈闄�</string> + </property> + </widget> + <widget class="QRadioButton" name="radioButton_2"> + <property name="geometry"> + <rect> + <x>150</x> + <y>20</y> + <width>115</width> + <height>19</height> + </rect> + </property> + <property name="text"> + <string>鍙煡鐪�</string> + </property> + </widget> + <widget class="QRadioButton" name="radioButton_3"> + <property name="geometry"> + <rect> + <x>280</x> + <y>20</y> + <width>115</width> + <height>19</height> + </rect> + </property> + <property name="text"> + <string>鍙慨鏀�</string> + </property> + </widget> + </widget> + </item> + <item row="1" column="0"> + <widget class="QGroupBox" name="groupBox_2"> + <property name="title"> + <string>鏃ュ織鏌ヨ</string> + </property> + <widget class="QRadioButton" name="radioButton_4"> + <property name="geometry"> + <rect> + <x>20</x> + <y>20</y> + <width>115</width> + <height>19</height> + </rect> + </property> + <property name="text"> + <string>鏃犳潈闄�</string> + </property> + </widget> + <widget class="QRadioButton" name="radioButton_5"> + <property name="geometry"> + <rect> + <x>150</x> + <y>20</y> + <width>115</width> + <height>19</height> + </rect> + </property> + <property name="text"> + <string>鍙煡鐪�</string> + </property> + </widget> + <widget class="QRadioButton" name="radioButton_6"> + <property name="geometry"> + <rect> + <x>280</x> + <y>20</y> + <width>115</width> + <height>19</height> + </rect> + </property> + <property name="text"> + <string>鍙慨鏀�</string> + </property> + </widget> + </widget> + </item> + <item row="2" column="0"> + <widget class="QGroupBox" name="groupBox_3"> + <property name="title"> + <string>鍦板浘鏍囨敞</string> + </property> + <widget class="QRadioButton" name="radioButton_7"> + <property name="geometry"> + <rect> + <x>20</x> + <y>20</y> + <width>115</width> + <height>19</height> + </rect> + </property> + <property name="text"> + <string>鏃犳潈闄�</string> + </property> + </widget> + <widget class="QRadioButton" name="radioButton_8"> + <property name="geometry"> + <rect> + <x>150</x> + <y>20</y> + <width>115</width> + <height>19</height> + </rect> + </property> + <property name="text"> + <string>鍙煡鐪�</string> + </property> + </widget> + <widget class="QRadioButton" name="radioButton_9"> + <property name="geometry"> + <rect> + <x>280</x> + <y>20</y> + <width>115</width> + <height>19</height> + </rect> + </property> + <property name="text"> + <string>鍙慨鏀�</string> + </property> + </widget> + </widget> + </item> + <item row="3" column="0"> + <widget class="QGroupBox" name="groupBox_4"> + <property name="title"> + <string>璁惧绠$悊</string> + </property> + <widget class="QRadioButton" name="radioButton_10"> + <property name="geometry"> + <rect> + <x>20</x> + <y>20</y> + <width>115</width> + <height>19</height> + </rect> + </property> + <property name="text"> + <string>鏃犳潈闄�</string> + </property> + </widget> + <widget class="QRadioButton" name="radioButton_11"> + <property name="geometry"> + <rect> + <x>150</x> + <y>20</y> + <width>115</width> + <height>19</height> + </rect> + </property> + <property name="text"> + <string>鍙煡鐪�</string> + </property> + </widget> + <widget class="QRadioButton" name="radioButton_12"> + <property name="geometry"> + <rect> + <x>280</x> + <y>20</y> + <width>115</width> + <height>19</height> + </rect> + </property> + <property name="text"> + <string>鍙慨鏀�</string> + </property> + </widget> + </widget> + </item> + <item row="4" column="0"> + <widget class="QGroupBox" name="groupBox_5"> + <property name="title"> + <string>鐢熶骇璁″垝</string> + </property> + <widget class="QRadioButton" name="radioButton_13"> + <property name="geometry"> + <rect> + <x>20</x> + <y>20</y> + <width>115</width> + <height>19</height> + </rect> + </property> + <property name="text"> + <string>鏃犳潈闄�</string> + </property> + </widget> + <widget class="QRadioButton" name="radioButton_14"> + <property name="geometry"> + <rect> + <x>150</x> + <y>20</y> + <width>115</width> + <height>19</height> + </rect> + </property> + <property name="text"> + <string>鍙煡鐪�</string> + </property> + </widget> + <widget class="QRadioButton" name="radioButton_15"> + <property name="geometry"> + <rect> + <x>280</x> + <y>20</y> + <width>115</width> + <height>19</height> + </rect> + </property> + <property name="text"> + <string>鍙慨鏀�</string> + </property> + </widget> + </widget> + </item> + </layout> + </item> + <item row="1" column="0"> + <widget class="QDialogButtonBox" name="buttonBox"> + <property name="orientation"> + <enum>Qt::Horizontal</enum> + </property> + <property name="standardButtons"> + <set>QDialogButtonBox::Cancel|QDialogButtonBox::Ok</set> + </property> + </widget> + </item> + </layout> + </item> + </layout> + </widget> + <resources/> + <connections> + <connection> + <sender>buttonBox</sender> + <signal>accepted()</signal> + <receiver>PermissonDialog</receiver> + <slot>accept()</slot> + <hints> + <hint type="sourcelabel"> + <x>248</x> + <y>254</y> + </hint> + <hint type="destinationlabel"> + <x>157</x> + <y>274</y> + </hint> + </hints> + </connection> + <connection> + <sender>buttonBox</sender> + <signal>rejected()</signal> + <receiver>PermissonDialog</receiver> + <slot>reject()</slot> + <hints> + <hint type="sourcelabel"> + <x>316</x> + <y>260</y> + </hint> + <hint type="destinationlabel"> + <x>286</x> + <y>274</y> + </hint> + </hints> + </connection> + </connections> +</ui> diff --git "a/Client/\345\247\234\345\217\257\345\272\232/code/2024kunlun_project_permisson/permissonwindow.cpp" "b/Client/\345\247\234\345\217\257\345\272\232/code/2024kunlun_project_permisson/permissonwindow.cpp" new file mode 100644 index 0000000..7ba0016 --- /dev/null +++ "b/Client/\345\247\234\345\217\257\345\272\232/code/2024kunlun_project_permisson/permissonwindow.cpp" @@ -0,0 +1,160 @@ +锘�#include "permissonwindow.h" +#include "qcomboxdelegate.h" +#include "ui_permissonwindow.h" + +#include <QDialog> +#include <QMouseEvent> +#include <QPushButton> + +PermissonWindow::PermissonWindow(QWidget *parent) : + QMainWindow(parent), + ui(new Ui::PermissonWindow) +{ + ui->setupUi(this); + clientSocket = new PmsClientSocket; + + dia = new PermissonDialog(this,clientSocket); + + + + connect(this,SIGNAL(sendUserNo(PmsQueryResult)),dia,SLOT(recvUserNo(PmsQueryResult))); + connect(clientSocket,SIGNAL(notifyDateChange(vector<PmsQueryResult>)),this,SLOT(renderItemData(vector<PmsQueryResult>))); + + roleMap["鏅�氶噰鐭垮憳宸�"] = 1; + roleMap["鎶�鏈淮鎶や汉鍛�"] = 2; + roleMap["绯荤粺绠$悊鍛�"] = 3; + roleMap["瀹夊叏绠$悊浜哄憳"] = 4; + + this->setWindowTitle("鏉冮檺绠$悊"); + vector<QString> lableList; + lableList.push_back("鍛樺伐缂栧彿"); + lableList.push_back("濮撳悕"); + lableList.push_back("褰撳ぉ宸ヤ綔鏃堕棿"); + lableList.push_back("褰撳ぉ缁撴潫鏃堕棿"); + lableList.push_back("鑱屼綅"); + + + + m_model = new QStandardItemModel(globalPms.size(),lableList.size(),this); + + ui->tableView->setModel(m_model); + + for(int i=0;i<m_model->rowCount();i++){ + PmsQueryResult curRes = globalPms[i]; + m_model->setItem(i,0,new QStandardItem(QString::fromStdString(curRes.getUserNo()))); + m_model->setItem(i,1,new QStandardItem(QString::fromLocal8Bit(curRes.getName().c_str()))); + m_model->setItem(i,2,new QStandardItem(QString::fromStdString(curRes.getStartDateTime()))); + m_model->setItem(i,3,new QStandardItem(QString::fromStdString(curRes.getEndDateTime()))); + m_model->setItem(i,4,new QStandardItem(QString::fromLocal8Bit(curRes.getPermissonType().c_str()))); + + } + + ui->tableView->horizontalHeader()->setSectionResizeMode(QHeaderView::Stretch); + ui->tableView->verticalHeader()->hide(); + + + QStringList lable; + for(int i=0;i<m_model->columnCount();i++){ + lable << lableList.at(i); + } + + m_model->setHorizontalHeaderLabels(lable); + + QComBoxDelegate * qc = new QComBoxDelegate(this); + + + + ui->tableView->setItemDelegateForColumn(4,qc); + + + m = new QMenu(this); + QAction * ac1 = new QAction("缂栬緫褰撳墠鍛樺伐鏉冮檺"); + + + m->addAction(ac1); + + + ui->tableView->viewport()->installEventFilter(this); + + + + connect(ac1,&QAction::triggered,[=]{ + int row = ui->tableView->currentIndex().row(); + qDebug() << globalPms[row].getDevManage(); + // 鍙戦�佸憳宸ョ紪鍙蜂俊鎭� + emit sendUserNo(globalPms[row]); + + dia->setModal(true); + dia->show(); + }); + + + connect(m_model,SIGNAL(itemChanged(QStandardItem*)),this,SLOT(listenItemChange(QStandardItem*))); + + +} + +bool PermissonWindow::eventFilter(QObject *watch, QEvent *event) +{ + if(watch == ui->tableView->viewport() || watch == ui->tableView->verticalHeader()->viewport() + + || watch == ui->tableView->horizontalHeader()->viewport()){ + if(event->type()==QEvent::MouseButtonPress && ((QMouseEvent *)event)->button()==Qt::RightButton){ + m->exec(QCursor::pos()); + } + + } + return QMainWindow::eventFilter(watch,event); +} + + +PermissonWindow::~PermissonWindow() +{ + delete dbInfo; + delete dia; + delete m_model; + delete m; + delete ui; +} + +void PermissonWindow::on_pushButton_clicked() +{ + qDebug() << "鍙戦�佹煡璇㈣姹�"; + PmsParam pm; + pm.setName(ui->lineEdit->text().toStdString()); + pm.setPermissonType(ui->lineEdit_2->text().toStdString()); + pm.setUserNo(ui->lineEdit_3->text().toStdString()); + + clientSocket->queryPmsByParam(pm); + qDebug() << "鏌ヨ涓�"; + +} + +void PermissonWindow::listenItemChange(QStandardItem *item) +{ + qDebug() << "鏁版嵁寮�濮嬫洿鏂�"; + QString localText = item->text(); + PmsPlusParma pm; + pm.setPermissonType(localText.toStdString()); + pm.setRoleId(roleMap[localText.toStdString()]); + clientSocket->updatePmsByParam(pm); +} + +void PermissonWindow::renderItemData(vector<PmsQueryResult> res) +{ + globalPms = res; + m_model->setRowCount(globalPms.size()); + + for(int i=0;i<m_model->rowCount();i++){ + PmsQueryResult curRes = globalPms[i]; + m_model->setItem(i,0,new QStandardItem(QString::fromStdString(curRes.getUserNo()))); + m_model->setItem(i,1,new QStandardItem(QString::fromLocal8Bit(curRes.getName().c_str()))); + m_model->setItem(i,2,new QStandardItem(QString::fromStdString(curRes.getStartDateTime()))); + m_model->setItem(i,3,new QStandardItem(QString::fromStdString(curRes.getEndDateTime()))); + m_model->setItem(i,4,new QStandardItem(QString::fromLocal8Bit(curRes.getPermissonType().c_str()))); + + } + ui->tableView->horizontalHeader()->setSectionResizeMode(QHeaderView::Stretch); + qDebug() << "鏌ヨ鍒扮殑鏁伴噺 " << globalPms.size(); +} + diff --git "a/Client/\345\247\234\345\217\257\345\272\232/code/2024kunlun_project_permisson/permissonwindow.h" "b/Client/\345\247\234\345\217\257\345\272\232/code/2024kunlun_project_permisson/permissonwindow.h" new file mode 100644 index 0000000..aeb776b --- /dev/null +++ "b/Client/\345\247\234\345\217\257\345\272\232/code/2024kunlun_project_permisson/permissonwindow.h" @@ -0,0 +1,55 @@ +锘�#ifndef PERMISSONWINDOW_H +#define PERMISSONWINDOW_H + +#include <QMainWindow> +#include <QMenu> +#include <qstandarditemmodel.h> +#include <QDebug> +#include <map> +#include "permissondialog.h" +#include "syncdatatodb.h" +#include "PmsClientSocket.h" + + + +using namespace std; + +namespace Ui { +class PermissonWindow; +} + +class PermissonWindow : public QMainWindow +{ + Q_OBJECT +public: + explicit PermissonWindow(QWidget *parent = 0); + ~PermissonWindow(); + + bool eventFilter(QObject *watch, QEvent *event); + +signals: + void sendUserNo(PmsQueryResult); +private slots: + void on_pushButton_clicked(); + + void listenItemChange(QStandardItem * item); + + void renderItemData(vector<PmsQueryResult> res); + + + +private: + Ui::PermissonWindow *ui; + QStandardItemModel * m_model; + QMenu * m; + PermissonDialog *dia; + SyncDataToDB * dbInfo; + map<string,int> roleMap; + + vector<PmsQueryResult> globalPms; + PmsClientSocket * clientSocket; + + +}; + +#endif // PERMISSONWINDOW_H diff --git "a/Client/\345\247\234\345\217\257\345\272\232/code/2024kunlun_project_permisson/permissonwindow.ui" "b/Client/\345\247\234\345\217\257\345\272\232/code/2024kunlun_project_permisson/permissonwindow.ui" new file mode 100644 index 0000000..1e82783 --- /dev/null +++ "b/Client/\345\247\234\345\217\257\345\272\232/code/2024kunlun_project_permisson/permissonwindow.ui" @@ -0,0 +1,86 @@ +<?xml version="1.0" encoding="UTF-8"?> +<ui version="4.0"> + <class>PermissonWindow</class> + <widget class="QMainWindow" name="PermissonWindow"> + <property name="geometry"> + <rect> + <x>0</x> + <y>0</y> + <width>803</width> + <height>461</height> + </rect> + </property> + <property name="windowTitle"> + <string>PermissonWindow</string> + </property> + <widget class="QWidget" name="centralWidget"> + <layout class="QGridLayout" name="gridLayout"> + <item row="0" column="0"> + <layout class="QHBoxLayout" name="horizontalLayout"> + <item> + <widget class="QLabel" name="label"> + <property name="text"> + <string>鐢ㄦ埛鍚�</string> + </property> + </widget> + </item> + <item> + <widget class="QLineEdit" name="lineEdit"/> + </item> + <item> + <widget class="QLabel" name="label_2"> + <property name="text"> + <string>鑱屼綅</string> + </property> + </widget> + </item> + <item> + <widget class="QLineEdit" name="lineEdit_2"/> + </item> + <item> + <widget class="QLabel" name="label_3"> + <property name="text"> + <string>鍛樺伐缂栧彿</string> + </property> + </widget> + </item> + <item> + <widget class="QLineEdit" name="lineEdit_3"/> + </item> + </layout> + </item> + <item row="1" column="0"> + <layout class="QHBoxLayout" name="horizontalLayout_2"> + <item> + <spacer name="horizontalSpacer"> + <property name="orientation"> + <enum>Qt::Horizontal</enum> + </property> + <property name="sizeHint" stdset="0"> + <size> + <width>40</width> + <height>20</height> + </size> + </property> + </spacer> + </item> + <item> + <widget class="QPushButton" name="pushButton"> + <property name="text"> + <string>鏌ヨ</string> + </property> + </widget> + </item> + </layout> + </item> + <item row="2" column="0"> + <widget class="QTableView" name="tableView"/> + </item> + </layout> + </widget> + <widget class="QStatusBar" name="statusBar"/> + </widget> + <layoutdefault spacing="6" margin="11"/> + <resources/> + <connections/> +</ui> diff --git "a/Client/\345\247\234\345\217\257\345\272\232/code/2024kunlun_project_permisson/pmsparam.h" "b/Client/\345\247\234\345\217\257\345\272\232/code/2024kunlun_project_permisson/pmsparam.h" new file mode 100644 index 0000000..0683706 --- /dev/null +++ "b/Client/\345\247\234\345\217\257\345\272\232/code/2024kunlun_project_permisson/pmsparam.h" @@ -0,0 +1,43 @@ +锘�#ifndef PMSPARAM_H +#define PMSPARAM_H +#include <string> +using namespace std; + + +class PmsParam { +protected: + string userNo; + string name; + string permissonType; +public: + void setUserNo(string id){ + this->userNo = id; + } + void setName(string name){ + this->name = name; + } + void setPermissonType(string permissonType){ + this->permissonType = permissonType; + } + + string getUserNo(){ + return userNo; + } + string getName(){ + return name; + } + string getPermissonType(){ + return permissonType; + } + + PmsParam(){ + this->userNo=""; + this->name = ""; + this->permissonType = ""; + } + + +}; + + +#endif // PMSPARAM_H diff --git "a/Client/\345\247\234\345\217\257\345\272\232/code/2024kunlun_project_permisson/pmsplusparam.h" "b/Client/\345\247\234\345\217\257\345\272\232/code/2024kunlun_project_permisson/pmsplusparam.h" new file mode 100644 index 0000000..23885dd --- /dev/null +++ "b/Client/\345\247\234\345\217\257\345\272\232/code/2024kunlun_project_permisson/pmsplusparam.h" @@ -0,0 +1,65 @@ +#ifndef PMSPLUSPARAM_H +#define PMSPLUSPARAM_H +#include "pmsparam.h" + +class PmsPlusParma : public PmsParam{ + int roleId; + + int queryHistory; + int loggerSearch; + int mapMark; + int devManage; + int productPlan; +public: + void setQueryHistory(int val){ + this->queryHistory = val; + } + void setLoggerSearch(int val){ + this->loggerSearch = val; + } + void setMapMark(int val){ + this->mapMark = val; + } + void setDevManage(int val){ + this->devManage = val; + } + void setProductPlan(int val){ + this->productPlan = val; + } + + void setRoleId(int val){ + this->roleId = val; + } + + int getQueryHistory(){ + return queryHistory; + } + int getLoggerSearch(){ + return loggerSearch; + } + int getMapMark(){ + return mapMark; + } + int getDevManage(){ + return devManage; + } + int getProductPlan(){ + return productPlan; + } + + int getRoleId(){ + return roleId; + } + + + PmsPlusParma(){ + roleId = -1; + queryHistory = -1; + loggerSearch = -1; + mapMark = -1; + devManage = -1; + productPlan = -1; + } +}; + +#endif // PMSPLUSPARAM_H diff --git "a/Client/\345\247\234\345\217\257\345\272\232/code/2024kunlun_project_permisson/pmsqueryresult.h" "b/Client/\345\247\234\345\217\257\345\272\232/code/2024kunlun_project_permisson/pmsqueryresult.h" new file mode 100644 index 0000000..e35b54f --- /dev/null +++ "b/Client/\345\247\234\345\217\257\345\272\232/code/2024kunlun_project_permisson/pmsqueryresult.h" @@ -0,0 +1,73 @@ +#ifndef PMSQUERYRESULT_H +#define PMSQUERYRESULT_H + +#include "pmsparam.h" +class PmsQueryResult : public PmsParam{ + string startDateTime; + string endDateTime; + + int queryHistory; + int loggerSearch; + int mapMark; + int devManage; + int productPlan; + + int roleId; +public: + void setStartDateTime(string time){ + this->startDateTime = time; + } + void setEndDateTime(string time){ + this->endDateTime = time; + } + + void setQueryHistory(int val){ + this->queryHistory = val; + } + void setLoggerSearch(int val){ + this->loggerSearch = val; + } + void setMapMark(int val){ + this->mapMark = val; + } + void setDevManage(int val){ + this->devManage = val; + } + void setProductPlan(int val){ + this->productPlan = val; + } + void setRoleId(int val){ + this->roleId = val; + } + + + string getStartDateTime(){ + return startDateTime; + } + string getEndDateTime(){ + return endDateTime; + } + int getQueryHistory(){ + return queryHistory; + } + int getLoggerSearch(){ + return loggerSearch; + } + int getMapMark(){ + return mapMark; + } + int getDevManage(){ + return devManage; + } + int getProductPlan(){ + return productPlan; + } + int getRoleId(){ + return roleId; + } + + +}; + + +#endif // PMSQUERYRESULT_H diff --git "a/Client/\345\247\234\345\217\257\345\272\232/code/2024kunlun_project_permisson/qcomboxdelegate.cpp" "b/Client/\345\247\234\345\217\257\345\272\232/code/2024kunlun_project_permisson/qcomboxdelegate.cpp" new file mode 100644 index 0000000..8eab6b3 --- /dev/null +++ "b/Client/\345\247\234\345\217\257\345\272\232/code/2024kunlun_project_permisson/qcomboxdelegate.cpp" @@ -0,0 +1,40 @@ +锘�#include "qcomboxdelegate.h" + + + +QComBoxDelegate::QComBoxDelegate() +{ + +} + +QComBoxDelegate::QComBoxDelegate(QObject *p):QItemDelegate(p) +{ + +} + +QWidget *QComBoxDelegate::createEditor(QWidget *parent, const QStyleOptionViewItem &option, const QModelIndex &index) const +{ + QComboBox * box = new QComboBox(parent); + QStringList text; + text << "鏅�氶噰鐭垮憳宸�" << "鎶�鏈淮鎶や汉鍛�" << "绯荤粺绠$悊鍛�"<< "瀹夊叏绠$悊浜哄憳"; + box->addItems(text); + + return box; +} + +void QComBoxDelegate::updateEditorGeometry(QWidget *editor, const QStyleOptionViewItem &option, const QModelIndex &index) const +{ + QRect rec = option.rect; + editor->setGeometry(rec); +} + +void QComBoxDelegate::setEditorData(QWidget *editor, const QModelIndex &index) const +{ + +} + +void QComBoxDelegate::setModelData(QWidget *editor, QAbstractItemModel *model, const QModelIndex &index) const +{ + QString val = static_cast<QComboBox *>(editor)->currentText(); + model->setData(index,val); +} diff --git "a/Client/\345\247\234\345\217\257\345\272\232/code/2024kunlun_project_permisson/qcomboxdelegate.h" "b/Client/\345\247\234\345\217\257\345\272\232/code/2024kunlun_project_permisson/qcomboxdelegate.h" new file mode 100644 index 0000000..d9e575e --- /dev/null +++ "b/Client/\345\247\234\345\217\257\345\272\232/code/2024kunlun_project_permisson/qcomboxdelegate.h" @@ -0,0 +1,27 @@ +#ifndef QCOMBOXDELEGATE_H +#define QCOMBOXDELEGATE_H + +#include <QItemDelegate> +#include <QComboBox> +#pragma execution_character_set("utf-8") + +class QComBoxDelegate : public QItemDelegate +{ +public: + QComBoxDelegate(); + QComBoxDelegate(QObject * p=0); + + + // 鍒涘缓缂栬緫鍣� + QWidget * createEditor(QWidget *parent, const QStyleOptionViewItem &option, const QModelIndex &index) const; + + // 鏄剧ず缂栬緫鍣紝鏇存柊鍑犱綍浣嶇疆 + void updateEditorGeometry(QWidget *editor, const QStyleOptionViewItem &option, const QModelIndex &index) const; + + // 璁惧畾缂栬緫鍣ㄦ暟鎹� + void setEditorData(QWidget *editor, const QModelIndex &index) const; + // 璁惧畾妯″瀷鏁版嵁 + void setModelData(QWidget *editor, QAbstractItemModel *model, const QModelIndex &index) const; +}; + +#endif // QCOMBOXDELEGATE_H diff --git "a/Client/\345\247\234\345\217\257\345\272\232/code/2024kunlun_project_permisson/syncdatatodb.cpp" "b/Client/\345\247\234\345\217\257\345\272\232/code/2024kunlun_project_permisson/syncdatatodb.cpp" new file mode 100644 index 0000000..96ca144 --- /dev/null +++ "b/Client/\345\247\234\345\217\257\345\272\232/code/2024kunlun_project_permisson/syncdatatodb.cpp" @@ -0,0 +1,94 @@ +锘�#include "syncdatatodb.h" + + + +vector<PmsQueryResult> SyncDataToDB::queryAllUserAboutUser() +{ + string sql = "SELECT * FROM user_info AS u, employee_permisson AS e WHERE u.role_id=e.id"; + + mysql_real_query(&mysql, sql.c_str(), sql.size()); + res = mysql_store_result(&mysql); + + vector<PmsQueryResult> resv; + while ((row = mysql_fetch_row(res)) != NULL) { + + PmsQueryResult res; + setPmsResult(res,row); + resv.push_back(res); + } + return resv; +} + +vector<PmsQueryResult> SyncDataToDB::queryPmsByParam(PmsParam param) +{ + string sql = "SELECT * FROM user_info AS u, employee_permisson AS e WHERE u.role_id=e.id"; + + if(!param.getUserNo().empty()){ + sql += " and u.user_no='" + param.getUserNo() + "'"; + } + + if(!param.getName().empty()){ + sql += " and u.name='" + param.getName()+ "'"; + } + + if(!param.getPermissonType().empty()){ + sql += " and e.permission_type='" + param.getPermissonType()+ "'"; + } + + qDebug() << "sql璇彞" << QString::fromStdString(sql); + + mysql_real_query(&mysql, sql.c_str(), sql.size()); + res = mysql_store_result(&mysql); + + vector<PmsQueryResult> resv; + while ((row = mysql_fetch_row(res)) != NULL) { + + PmsQueryResult res; + setPmsResult(res,row); + resv.push_back(res); + } + return resv; +} + +int SyncDataToDB::updatePmsByParam(PmsPlusParma param) +{ + + string sql = "update employee_permisson"; + + // 鍙洿鏀硅亴浣� + if(!param.getPermissonType().empty()){ + sql.append(" set permission_type='" + param.getPermissonType())+ "'"; + }else{ + sql.append(" set query_history=") + to_string(param.getQueryHistory()); + sql.append(",logger_search=") + to_string(param.getLoggerSearch()); + sql.append(",map_mark=") + to_string(param.getMapMark()); + sql.append(",dev_manage=") + to_string(param.getDevManage()); + sql.append(",product_plan=") + to_string(param.getProductPlan()); + } + sql.append(" where e.id=" + param.getRoleId()); + + mysql_real_query(&mysql, sql.c_str(), sql.size()); + mysql_store_result(&mysql); + //qDebug() << res->row_count; + return res->row_count; + +} + +void SyncDataToDB::setPmsResult(PmsQueryResult &res, char **row) +{ + res.setName(string(row[1])); + res.setUserNo(string(row[5])); + res.setStartDateTime(string(row[2])); + res.setEndDateTime(string(row[3])); + res.setRoleId(stoi(string(row[4]))); + + res.setPermissonType(string(row[8])); + res.setQueryHistory(stoi(string(row[9]))); + res.setLoggerSearch(stoi(string(row[10]))); + res.setMapMark(stoi(string(row[11]))); + res.setDevManage(stoi(string(row[12]))); + res.setProductPlan(stoi(string(row[13]))); + + + qDebug() << QString::fromStdString(res.getUserNo()); +} diff --git "a/Client/\345\247\234\345\217\257\345\272\232/code/2024kunlun_project_permisson/syncdatatodb.h" "b/Client/\345\247\234\345\217\257\345\272\232/code/2024kunlun_project_permisson/syncdatatodb.h" new file mode 100644 index 0000000..ed52a26 --- /dev/null +++ "b/Client/\345\247\234\345\217\257\345\272\232/code/2024kunlun_project_permisson/syncdatatodb.h" @@ -0,0 +1,48 @@ +锘�#ifndef SYNCDATATODB_H +#define SYNCDATATODB_H + +#include <WinSock2.h> +#include <mysql.h> +#include <string> +#include "pmsqueryresult.h" +#include <vector> +#include "pmsplusparam.h" +#include <QDebug> + +using namespace std; + +class SyncDataToDB{ +private: + MYSQL mysql; + MYSQL_RES * res; + MYSQL_ROW row; + + void DBInit() { + mysql_init(&mysql); + mysql_real_connect(&mysql, "127.0.0.1", "root", "root", "mydb", 3306, NULL, 0); + string sql1 = "set names gbk"; + mysql_real_query(&mysql, sql1.c_str(), sql1.size()); + } + + void DBClose() { + mysql_free_result(res); + mysql_close(&mysql); + } +public: + SyncDataToDB() { + DBInit(); + } + ~SyncDataToDB() { + DBClose(); + } + // 浠庢暟鎹簱鏌ヨ鎵�鏈夊憳宸ョ殑瑙掕壊鏉冮檺淇℃伅 + vector<PmsQueryResult> queryAllUserAboutUser(); + + vector<PmsQueryResult> queryPmsByParam(PmsParam param); + + int updatePmsByParam(PmsPlusParma param); + + void setPmsResult(PmsQueryResult & res,char ** row); +}; + +#endif // SYNCDATATODB_H -- Gitblit v1.8.0