xref: /aoo42x/main/shell/source/win32/SysShExec.hxx (revision ed2f6d3b)
1*ed2f6d3bSAndrew Rist /**************************************************************
2cdf0e10cSrcweir  *
3*ed2f6d3bSAndrew Rist  * Licensed to the Apache Software Foundation (ASF) under one
4*ed2f6d3bSAndrew Rist  * or more contributor license agreements.  See the NOTICE file
5*ed2f6d3bSAndrew Rist  * distributed with this work for additional information
6*ed2f6d3bSAndrew Rist  * regarding copyright ownership.  The ASF licenses this file
7*ed2f6d3bSAndrew Rist  * to you under the Apache License, Version 2.0 (the
8*ed2f6d3bSAndrew Rist  * "License"); you may not use this file except in compliance
9*ed2f6d3bSAndrew Rist  * with the License.  You may obtain a copy of the License at
10*ed2f6d3bSAndrew Rist  *
11*ed2f6d3bSAndrew Rist  *   http://www.apache.org/licenses/LICENSE-2.0
12*ed2f6d3bSAndrew Rist  *
13*ed2f6d3bSAndrew Rist  * Unless required by applicable law or agreed to in writing,
14*ed2f6d3bSAndrew Rist  * software distributed under the License is distributed on an
15*ed2f6d3bSAndrew Rist  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16*ed2f6d3bSAndrew Rist  * KIND, either express or implied.  See the License for the
17*ed2f6d3bSAndrew Rist  * specific language governing permissions and limitations
18*ed2f6d3bSAndrew Rist  * under the License.
19*ed2f6d3bSAndrew Rist  *
20*ed2f6d3bSAndrew Rist  *************************************************************/
21*ed2f6d3bSAndrew Rist 
22*ed2f6d3bSAndrew Rist 
23cdf0e10cSrcweir 
24cdf0e10cSrcweir #ifndef _SYSSHEXEC_HXX_
25cdf0e10cSrcweir #define _SYSSHEXEC_HXX_
26cdf0e10cSrcweir 
27cdf0e10cSrcweir //_______________________________________________________________________________________________________________________
28cdf0e10cSrcweir //	includes of other projects
29cdf0e10cSrcweir //_______________________________________________________________________________________________________________________
30cdf0e10cSrcweir 
31cdf0e10cSrcweir #include <cppuhelper/compbase2.hxx>
32cdf0e10cSrcweir #include <osl/mutex.hxx>
33cdf0e10cSrcweir #include <com/sun/star/lang/XServiceInfo.hpp>
34cdf0e10cSrcweir 
35cdf0e10cSrcweir #ifndef _COM_SUN_STAR_SYS_SHELL_XSYSTEMSHELLEXECUTE_HPP_
36cdf0e10cSrcweir #include <com/sun/star/system/XSystemShellExecute.hpp>
37cdf0e10cSrcweir #endif
38cdf0e10cSrcweir 
39cdf0e10cSrcweir //----------------------------------------------------------
40cdf0e10cSrcweir // class declaration
41cdf0e10cSrcweir //----------------------------------------------------------
42cdf0e10cSrcweir 
43cdf0e10cSrcweir class CSysShExecBase
44cdf0e10cSrcweir {
45cdf0e10cSrcweir protected:
46cdf0e10cSrcweir     osl::Mutex  m_aMutex;
47cdf0e10cSrcweir };
48cdf0e10cSrcweir 
49cdf0e10cSrcweir class CSysShExec :
50cdf0e10cSrcweir     public CSysShExecBase,
51cdf0e10cSrcweir 	public  cppu::WeakComponentImplHelper2<
52cdf0e10cSrcweir             com::sun::star::system::XSystemShellExecute,
53cdf0e10cSrcweir 			com::sun::star::lang::XServiceInfo >
54cdf0e10cSrcweir {
55cdf0e10cSrcweir public:
56cdf0e10cSrcweir     CSysShExec( );
57cdf0e10cSrcweir 
58cdf0e10cSrcweir 	//------------------------------------------------
59cdf0e10cSrcweir 	// XSystemShellExecute
60cdf0e10cSrcweir 	//------------------------------------------------
61cdf0e10cSrcweir 
62cdf0e10cSrcweir     virtual void SAL_CALL execute( const ::rtl::OUString& aCommand, const ::rtl::OUString& aParameter, sal_Int32 nFlags )
63cdf0e10cSrcweir         throw (::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::system::SystemShellExecuteException, ::com::sun::star::uno::RuntimeException);
64cdf0e10cSrcweir 
65cdf0e10cSrcweir 	//------------------------------------------------
66cdf0e10cSrcweir 	// XServiceInfo
67cdf0e10cSrcweir 	//------------------------------------------------
68cdf0e10cSrcweir 
69cdf0e10cSrcweir 	virtual ::rtl::OUString SAL_CALL getImplementationName(	 )
70cdf0e10cSrcweir 		throw(::com::sun::star::uno::RuntimeException);
71cdf0e10cSrcweir 
72cdf0e10cSrcweir 	virtual sal_Bool SAL_CALL supportsService( const ::rtl::OUString& ServiceName )
73cdf0e10cSrcweir 		throw(::com::sun::star::uno::RuntimeException);
74cdf0e10cSrcweir 
75cdf0e10cSrcweir 	virtual ::com::sun::star::uno::Sequence< ::rtl::OUString > SAL_CALL getSupportedServiceNames(  )
76cdf0e10cSrcweir 		throw(::com::sun::star::uno::RuntimeException);
77cdf0e10cSrcweir };
78cdf0e10cSrcweir 
79cdf0e10cSrcweir #endif
80