1d1766043SAndrew Rist/************************************************************** 2*27a62f1fSAriel Constenla-Haile * 3d1766043SAndrew Rist * Licensed to the Apache Software Foundation (ASF) under one 4d1766043SAndrew Rist * or more contributor license agreements. See the NOTICE file 5d1766043SAndrew Rist * distributed with this work for additional information 6d1766043SAndrew Rist * regarding copyright ownership. The ASF licenses this file 7d1766043SAndrew Rist * to you under the Apache License, Version 2.0 (the 8d1766043SAndrew Rist * "License"); you may not use this file except in compliance 9d1766043SAndrew Rist * with the License. You may obtain a copy of the License at 10*27a62f1fSAriel Constenla-Haile * 11d1766043SAndrew Rist * http://www.apache.org/licenses/LICENSE-2.0 12*27a62f1fSAriel Constenla-Haile * 13d1766043SAndrew Rist * Unless required by applicable law or agreed to in writing, 14d1766043SAndrew Rist * software distributed under the License is distributed on an 15d1766043SAndrew Rist * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16d1766043SAndrew Rist * KIND, either express or implied. See the License for the 17d1766043SAndrew Rist * specific language governing permissions and limitations 18d1766043SAndrew Rist * under the License. 19*27a62f1fSAriel Constenla-Haile * 20d1766043SAndrew Rist *************************************************************/ 21d1766043SAndrew Rist 22cdf0e10cSrcweir#ifndef __com_sun_star_system_XSystemShellExecute_idl__ 23cdf0e10cSrcweir#define __com_sun_star_system_XSystemShellExecute_idl__ 24cdf0e10cSrcweir 25cdf0e10cSrcweir#include <com/sun/star/uno/XInterface.idl> 26cdf0e10cSrcweir#include <com/sun/star/lang/IllegalArgumentException.idl> 27cdf0e10cSrcweir#include <com/sun/star/system/SystemShellExecuteException.idl> 28cdf0e10cSrcweir 29cdf0e10cSrcweirmodule com { module sun { module star { module system { 30cdf0e10cSrcweir 31cdf0e10cSrcweir/** Specifies an interface for executing a system command. 32cdf0e10cSrcweir*/ 33*27a62f1fSAriel Constenla-Hailepublished interface XSystemShellExecute 34cdf0e10cSrcweir{ 35*27a62f1fSAriel Constenla-Haile /** Executes an abitrary system command. 36*27a62f1fSAriel Constenla-Haile 37*27a62f1fSAriel Constenla-Haile @param aCommand 38*27a62f1fSAriel Constenla-Haile Specifies the command to execute. 39*27a62f1fSAriel Constenla-Haile <p>This may be an executable file or a document which is registered with 40*27a62f1fSAriel Constenla-Haile an application on a specific platform, so that the platform knows what 41*27a62f1fSAriel Constenla-Haile application to launch for that document.</p> 42*27a62f1fSAriel Constenla-Haile <p>If the command specifies a path to an executable, etc, this has to be 43*27a62f1fSAriel Constenla-Haile a system specific path.</p> 44*27a62f1fSAriel Constenla-Haile 45*27a62f1fSAriel Constenla-Haile @param aParameter 46*27a62f1fSAriel Constenla-Haile Specifies a list of space separated parameters. 47*27a62f1fSAriel Constenla-Haile <p>The method does not validate the given parameters, but only passes it 48*27a62f1fSAriel Constenla-Haile as a parameter to the specified command.</p> 49*27a62f1fSAriel Constenla-Haile 50*27a62f1fSAriel Constenla-Haile @param nFlags 51*27a62f1fSAriel Constenla-Haile A combination of <type>SystemShellExecuteFlags</type> specifying different 52*27a62f1fSAriel Constenla-Haile flags to control the execution of this method. 53*27a62f1fSAriel Constenla-Haile 54*27a62f1fSAriel Constenla-Haile @throws com::sun::star::lang::IllegalArgumentException 55*27a62f1fSAriel Constenla-Haile when the specified flags are wrong or exclude each other. 56*27a62f1fSAriel Constenla-Haile 57*27a62f1fSAriel Constenla-Haile @throws com::sun::star::sys::SystemExecuteException 58*27a62f1fSAriel Constenla-Haile in the case of errors when trying to executed the specified command. 59*27a62f1fSAriel Constenla-Haile */ 60*27a62f1fSAriel Constenla-Haile void execute( [in] string sCommand, 61*27a62f1fSAriel Constenla-Haile [in] string sParameter, 62*27a62f1fSAriel Constenla-Haile [in] long nFlags ) 63*27a62f1fSAriel Constenla-Haile raises( ::com::sun::star::lang::IllegalArgumentException, 64*27a62f1fSAriel Constenla-Haile ::com::sun::star::system::SystemShellExecuteException ); 65cdf0e10cSrcweir}; 66cdf0e10cSrcweir 67cdf0e10cSrcweir}; }; }; }; 68cdf0e10cSrcweir 69cdf0e10cSrcweir#endif 70