diff options
author | Chris Craig <ext-chris.craig@nokia.com> | 2012-02-15 13:27:01 -0500 |
---|---|---|
committer | Andrew Christian <andrew.christian@nokia.com> | 2012-02-15 19:55:36 +0100 |
commit | 3e83f8581b34aa81db584b2199481ba49310210d (patch) | |
tree | 971075309f7be691ab972c0bce32659d66f6ce11 /src | |
parent | 36d6de79d80643cc476b8cacba52e21aa6407243 (diff) |
remove dead declarative code
Change-Id: I2161e47ff95ce3e1eb47c6b66e685c2bd16bb69c
Reviewed-by: Andrew Christian <andrew.christian@nokia.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/declarative/declarativeprocess.cpp | 100 | ||||
-rw-r--r-- | src/declarative/declarativeprocess.h | 37 |
2 files changed, 0 insertions, 137 deletions
diff --git a/src/declarative/declarativeprocess.cpp b/src/declarative/declarativeprocess.cpp deleted file mode 100644 index 47e3524..0000000 --- a/src/declarative/declarativeprocess.cpp +++ /dev/null @@ -1,100 +0,0 @@ -/* - * Copyright (C) 2011 Nokia Corporation - */ - -#include "declarativeprocess.h" - -#include <QDateTime> - -/***************************************************************************************/ - -/*! - \class DeclarativeProcess - \brief The DeclarativeProcess class is a generalized representation of a process. -*/ - -/*! - \property DeclarativeProcess::identifier - \brief the application identifier of the process. -*/ - -/*! - \property DeclarativeProcess::program - \brief the filename of the binary executable that is launched to start up the process. -*/ - -/*! - \property DeclarativeProcess::arguments - \brief the arguments that will be passed to the program upon process startup -*/ - -/*! - \property DeclarativeProcess::environment - \brief a map of the environment variables that will be used by the process -*/ - -/*! - \property DeclarativeProcess::workingDirectory - \brief the directory that will be switched to before launching the process -*/ - -/*! - \property DeclarativeProcess::uid - \brief the user id (uid) of the process. -*/ - -/*! - \property DeclarativeProcess::gid - \brief the group id (gid) of the process. -*/ - -/*! - \property DeclarativeProcess::pid - \brief the process id (PID) of the process. - - Returns 0 if the process has not been started or if this is a "fake" process. -*/ - -/*! - \property DeclarativeProcess::startTime - \brief the start time of the process, measured in milliseconds since the epoch (1st Jan 1970 00:00). - - Returns 0 if process has not been started. -*/ - -/*! - \property DeclarativeProcess::priority - \brief The Unix process priority (niceness). - - Returns the current process priority if the process is running. Otherwise, - it returns the DeclarativeProcess priority setting. You can only set the priority once the - process is running. -*/ - -#if defined(Q_OS_LINUX) -/*! - \property DeclarativeProcess::oomAdjustment - \brief The Unix process /proc/<pid>/oom_score_adj (likelihood of being killed) - - Returns the current OOM adjustment score if the process is running. Otherwise, - it returns the DeclarativeProcess OOM adjustment score setting. You can only set the OOM adjustment - score when the process is running. -*/ -#endif - -/*! - \internal - Constructs a DeclarativeProcess instance with DeclarativeProcess \a info and optional \a parent -*/ -DeclarativeProcess::DeclarativeProcess(ProcessBackend *process, QObject *parent) - : ProcessFrontend(process, parent) -{ -} - -/*! - Destroy this process object. -*/ - -DeclarativeProcess::~DeclarativeProcess() -{ -} diff --git a/src/declarative/declarativeprocess.h b/src/declarative/declarativeprocess.h deleted file mode 100644 index adec779..0000000 --- a/src/declarative/declarativeprocess.h +++ /dev/null @@ -1,37 +0,0 @@ -/* - * Copyright (C) 2011 Nokia Corporation - */ - -#ifndef DECLARATIVE_PROCESS_H -#define DECLARATIVE_PROCESS_H - -#include "processfrontend.h" - -class Q_ADDON_PROCESSMANAGER_EXPORT DeclarativeProcess : public ProcessFrontend -{ - Q_OBJECT - - Q_PROPERTY(QString identifier READ identifier CONSTANT) - Q_PROPERTY(QString program READ program CONSTANT) - Q_PROPERTY(QStringList arguments READ arguments CONSTANT) - Q_PROPERTY(QVariantMap environment READ environment CONSTANT) - Q_PROPERTY(QString workingDirectory READ workingDirectory CONSTANT) - Q_PROPERTY(qint64 uid READ uid CONSTANT) - Q_PROPERTY(qint64 gid READ gid CONSTANT) - - Q_PROPERTY(qint64 pid READ pid NOTIFY started) - Q_PROPERTY(qint64 startTime READ startTime NOTIFY started) - - Q_PROPERTY(int priority READ priority WRITE setPriority NOTIFY priorityChanged) -#if defined(Q_OS_LINUX) - Q_PROPERTY(int oomAdjustment READ oomAdjustment WRITE setOomAdjustment NOTIFY oomAdjustmentChanged) -#endif - -public: - DeclarativeProcess(ProcessBackend *process, QObject *parent=0); - virtual ~DeclarativeProcess(); -}; - -Q_DECLARE_METATYPE(DeclarativeProcess*) - -#endif // DECLARATIVE_PROCESS_H |