24#include <com/sun/star/task/XJob.hpp>
25#include <com/sun/star/lang/XServiceInfo.hpp>
26#include <com/sun/star/uno/XComponentContext.hpp>
39class ShellJob final :
public ::cppu::WeakImplHelper< css::lang::XServiceInfo,css::task::XJob >
46 css::uno::Reference< css::uno::XComponentContext >
m_xContext;
57 ShellJob(css::uno::Reference< css::uno::XComponentContext > xContext);
76 virtual css::uno::Any SAL_CALL
execute(
const css::uno::Sequence< css::beans::NamedValue >& lArguments)
override;
119 const css::uno::Sequence< OUString >& lArguments ,
120 bool bCheckExitCode);
implements a job component which can be used to execute system shell commands.
css::uno::Reference< css::uno::XComponentContext > m_xContext
reference to a uno service manager.
ShellJob(css::uno::Reference< css::uno::XComponentContext > xContext)
create new instance of this class.
OUString impl_substituteCommandVariables(const OUString &sCommand)
substitute all might existing placeholder variables within the configured command.
virtual ~ShellJob() override
does nothing real ...
virtual sal_Bool SAL_CALL supportsService(const OUString &sServiceName) override
virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override
bool impl_execute(const OUString &sCommand, const css::uno::Sequence< OUString > &lArguments, bool bCheckExitCode)
executes the command.
static css::uno::Any impl_generateAnswer4Deactivation()
generate a return value for method execute() which will force deactivation of this job for further re...
virtual css::uno::Any SAL_CALL execute(const css::uno::Sequence< css::beans::NamedValue > &lArguments) override
virtual OUString SAL_CALL getImplementationName() override