|
enum | Task {
taskNo,
taskCheckAvailable,
taskListPackages1,
taskListPackages2,
taskCheckUpdates,
taskInstall,
taskUninstall,
taskVerifyInstalledPackages
} |
|
enum | PipMode { pipModeDirect,
pipModeRunPipUtf8
} |
|
|
void | pipManagerBusy () |
|
void | outputAvailable (const QString &text, bool success) |
|
void | pipVersion (const QString &version) |
|
void | pipRequestStarted (const PipManager::Task &task, const QString &text, bool outputSilent=false) |
|
void | pipRequestFinished (const PipManager::Task &task, const QString &text, bool success) |
|
|
void | processError (QProcess::ProcessError error) |
|
void | processFinished (int exitCode, QProcess::ExitStatus exitStatus) |
|
void | processReadyReadStandardError () |
|
void | processReadyReadStandardOutput () |
|
|
QStringList | parseGeneralOptions (const PipGeneralOptions &options, bool ignoreRetries=false, bool ignoreVersionCheck=true) const |
|
void | clearBuffers () |
|
ito::RetVal | initPythonIfStandalone () |
|
ito::RetVal | checkCallMode () |
| check if pip can be called via the itom-packages/pipProcess/runPipUtf8.py script or directly
|
|
void | startProcess (const QStringList &arguments) |
| the arguments string list must not contain -m as first entry.
|
|
|
QList< QString > | m_headers |
| string list of names of column headers
|
|
QList< QVariant > | m_alignment |
| list of alignments for the corresponding headers
|
|
QList< PythonPackage > | m_pythonPackages |
| list with installed python packages
|
|
QProcess | m_pipProcess |
|
bool | m_pipAvailable |
|
QByteArray | m_standardOutputBuffer |
|
QByteArray | m_standardErrorBuffer |
|
Task | m_currentTask |
|
PipGeneralOptions | m_generalOptionsCache |
|
QString | m_pythonPath |
|
int | m_pipVersion |
|
wchar_t * | m_pUserDefinedPythonHome |
|
PipMode | m_pipCallMode |
|
QString | m_runPipUtf8Path |
| only valid if m_pipCallMode == pipModeRunPipUtf8
|
|
Enumerator |
---|
pipModeDirect |
directly call pip as process (might cause encoding errors under windows)
call pip via runPipUtf8.py module (uses a non-official interface of pip, but sets the cout and cerr streams to UTF8; recommended under Windows)
|
ito::PipManager::PipManager |
( |
ito::RetVal & |
retval, |
|
|
QObject * |
parent = 0 |
|
) |
| |
constructor
contructor, creating column headers for the tree view
ito::PipManager::~PipManager |
( |
| ) |
|
destructor - clean up, clear header and alignment list
int ito::PipManager::columnCount |
( |
const QModelIndex & |
parent = QModelIndex() | ) |
const |
return column count
- Parameters
-
[in] | parent | parent of current item |
- Returns
- 2 for child elements (instances) and the header size for root elements (plugins)
QVariant ito::PipManager::data |
( |
const QModelIndex & |
index, |
|
|
int |
role |
|
) |
| const |
return data elements for a given row
- Parameters
-
[in] | index | index for which the data elements should be delivered |
[in] | role | the current role of the model |
- Returns
- data of the selected element, depending on the element's row and column (passed in index.row and index.column)
QVariant ito::PipManager::headerData |
( |
int |
section, |
|
|
Qt::Orientation |
orientation, |
|
|
int |
role = Qt::DisplayRole |
|
) |
| const |
return the header / captions for the tree view model
QModelIndex ito::PipManager::index |
( |
int |
row, |
|
|
int |
column, |
|
|
const QModelIndex & |
parent = QModelIndex() |
|
) |
| const |
return current index element
- Parameters
-
[in] | row | row of current element |
[in] | column | column of current element |
[in] | parent | parent of current element |
- Returns
- QModelIndex - element at current index
returns the passed row as index, as the users are arranged in a simple one dimensional list
QModelIndex ito::PipManager::parent |
( |
const QModelIndex & |
index | ) |
const |
return parent element
- Parameters
-
[in] | index | the element's index for which the parent should be returned |
- Returns
- the parent element.
int ito::PipManager::rowCount |
( |
const QModelIndex & |
parent = QModelIndex() | ) |
const |
return number of rows
- Parameters
-
[in] | parent | parent of current item |
- Returns
- returns number of users
The documentation for this class was generated from the following files:
- C:/itom/sources/itom/Qitom/models/pipManager.h
- C:/itom/sources/itom/Qitom/models/pipManager.cpp