暫無描述

Reinhard Russinger 88feba4a4a sync 7 年之前
example d40145311d example fixed 7 年之前
.gitignore b7b38053f4 start 8 年之前
README.md 5fc205099e README.md changed 7 年之前
application.cpp 4a99aa53e0 baseclassnamee changed from Application to ApplicahtionLaunch due to possible conflicts with Qt baseclassess 7 年之前
application.h 4a99aa53e0 baseclassnamee changed from Application to ApplicahtionLaunch due to possible conflicts with Qt baseclassess 7 年之前
applicationlauncher.cpp b7b38053f4 start 8 年之前
applicationlauncher.h b7b38053f4 start 8 年之前
applicationlauncher.pro 416fff5a11 typeinfos added 7 年之前
applicationlauncher.qmltypes 4a99aa53e0 baseclassnamee changed from Application to ApplicahtionLaunch due to possible conflicts with Qt baseclassess 7 年之前
applicationlauncher_plugin.cpp 4a99aa53e0 baseclassnamee changed from Application to ApplicahtionLaunch due to possible conflicts with Qt baseclassess 7 年之前
applicationlauncher_plugin.h 7108a95faf Test und Verfeinerungen, erster Wurf , Besipiel mit IP ADresseingabe 8 年之前
qmldir 416fff5a11 typeinfos added 7 年之前

README.md

Application Launcher

App Launcher plugin for QT Qml


import ApplicationLauncher 1.0

.....

    ApplicationLaunch {
        id: testScripts
        appName: "cat"
        arguments: "/etc/passwd"

        onAppFinished: {
            console.debug("AppFinished :");
            console.debug("appError : " + exitError + " appStatus : " + exitStatus + " appCode " + exitCode );
            console.debug("stdERR :" + stdERR);
            console.debug("stdOUT :" + stdOUT);
        }

        onAppStarted: {
            console.debug("appStarted :");
            console.debug("appError : " + exitError + " appStatus : " + exitStatus + " appCode " + exitCode );

        }

        onAppError: {
            console.debug("appError : " + exitError + " appStatus : " + exitStatus + " appCode " + exitCode );

        }
    }

......

  • Properties

    • appName : Executeable (with or without parameters!)
    • arguments : arguments if not given with appName
    • stdERR : output of stderr as QString
    • stdOUT : output as QString
    • outFName : copy stdout to outFName when set
    • exitError
    • exitStatus
    • exitCode
  • Events

    • onAppFinished : app has ended properties are available
    • onAppStarted : app has started
    • onAppError : error on start or in app
  • Methods

    • launchScript() : start application (is started async and not in main event queue)