Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
shellhelpers.h File Reference

(649afe5b3398634bb9e464891ffa8f01c3bd05ff)

#include "hdc.h"
#include <QtCore/qbytearray.h>
#include <QtCore/qstring.h>
#include <QtCore/private/qexpected_p.h>
#include <optional>
Include dependency graph for shellhelpers.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Enumerations

enum class  BundleState { Installed , NotInstalled , Unknown }
enum class  DeviceFileState { Present , Absent , Unknown }
enum class  ProcessState { Running , NotRunning , Unknown }

Functions

void forceStopBundle (const Hdc &hdc, const QString &bundleName)
ProcessState queryProcessState (const Hdc &hdc, const QString &bundleName)
QString readDeviceFile (const Hdc &hdc, const QString &devicePath)
q23::expected< QByteArray, QString > copyDeviceFile (const Hdc &hdc, const QString &devicePath, const QString &localPath)
DeviceFileState queryDeviceFileState (const Hdc &hdc, const QString &devicePath)
std::optional< QString > answeredShell (const Hdc &hdc, const QStringList &command)
BundleState queryBundleState (const Hdc &hdc, const QString &bundleName)

Enumeration Type Documentation

◆ BundleState

enum class BundleState
strong
Enumerator
Installed 
NotInstalled 
Unknown 

Definition at line 17 of file shellhelpers.h.

◆ DeviceFileState

enum class DeviceFileState
strong
Enumerator
Present 
Absent 
Unknown 

Definition at line 18 of file shellhelpers.h.

◆ ProcessState

enum class ProcessState
strong
Enumerator
Running 
NotRunning 
Unknown 

Definition at line 19 of file shellhelpers.h.

Function Documentation

◆ answeredShell()

std::optional< QString > answeredShell ( const Hdc & hdc,
const QStringList & command )

Definition at line 72 of file shellhelpers.cpp.

◆ copyDeviceFile()

q23::expected< QByteArray, QString > copyDeviceFile ( const Hdc & hdc,
const QString & devicePath,
const QString & localPath )

Definition at line 37 of file shellhelpers.cpp.

◆ forceStopBundle()

void forceStopBundle ( const Hdc & hdc,
const QString & bundleName )

Definition at line 15 of file shellhelpers.cpp.

◆ queryBundleState()

BundleState queryBundleState ( const Hdc & hdc,
const QString & bundleName )

Definition at line 83 of file shellhelpers.cpp.

References Installed, NotInstalled, and Unknown.

◆ queryDeviceFileState()

DeviceFileState queryDeviceFileState ( const Hdc & hdc,
const QString & devicePath )

Definition at line 58 of file shellhelpers.cpp.

References Absent, Present, and Unknown.

◆ queryProcessState()

ProcessState queryProcessState ( const Hdc & hdc,
const QString & bundleName )

Definition at line 20 of file shellhelpers.cpp.

References NotRunning, Running, and Unknown.

◆ readDeviceFile()

QString readDeviceFile ( const Hdc & hdc,
const QString & devicePath )

Definition at line 94 of file shellhelpers.cpp.