1*f8e4aa35SAndrew Rist /**************************************************************
2cdf0e10cSrcweir  *
3*f8e4aa35SAndrew Rist  * Licensed to the Apache Software Foundation (ASF) under one
4*f8e4aa35SAndrew Rist  * or more contributor license agreements.  See the NOTICE file
5*f8e4aa35SAndrew Rist  * distributed with this work for additional information
6*f8e4aa35SAndrew Rist  * regarding copyright ownership.  The ASF licenses this file
7*f8e4aa35SAndrew Rist  * to you under the Apache License, Version 2.0 (the
8*f8e4aa35SAndrew Rist  * "License"); you may not use this file except in compliance
9*f8e4aa35SAndrew Rist  * with the License.  You may obtain a copy of the License at
10*f8e4aa35SAndrew Rist  *
11*f8e4aa35SAndrew Rist  *   http://www.apache.org/licenses/LICENSE-2.0
12*f8e4aa35SAndrew Rist  *
13*f8e4aa35SAndrew Rist  * Unless required by applicable law or agreed to in writing,
14*f8e4aa35SAndrew Rist  * software distributed under the License is distributed on an
15*f8e4aa35SAndrew Rist  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16*f8e4aa35SAndrew Rist  * KIND, either express or implied.  See the License for the
17*f8e4aa35SAndrew Rist  * specific language governing permissions and limitations
18*f8e4aa35SAndrew Rist  * under the License.
19*f8e4aa35SAndrew Rist  *
20*f8e4aa35SAndrew Rist  *************************************************************/
21*f8e4aa35SAndrew Rist 
22*f8e4aa35SAndrew Rist 
23cdf0e10cSrcweir 
24cdf0e10cSrcweir #ifndef INCLUDED_TESTTOOLS_SOURCE_BRIDGETEST_CURRENTCONTEXTCHECKER_HXX
25cdf0e10cSrcweir #define INCLUDED_TESTTOOLS_SOURCE_BRIDGETEST_CURRENTCONTEXTCHECKER_HXX
26cdf0e10cSrcweir 
27cdf0e10cSrcweir #include "sal/config.h"
28cdf0e10cSrcweir #include "com/sun/star/uno/Reference.hxx"
29cdf0e10cSrcweir #include "com/sun/star/uno/RuntimeException.hpp"
30cdf0e10cSrcweir #include "cppuhelper/implbase1.hxx"
31cdf0e10cSrcweir #ifndef OSL_DIAGNOSE_HXX_INCLUDED
32cdf0e10cSrcweir #include "osl/diagnose.hxx"
33cdf0e10cSrcweir #endif
34cdf0e10cSrcweir #include "sal/types.h"
35cdf0e10cSrcweir #include "test/testtools/bridgetest/XCurrentContextChecker.hpp"
36cdf0e10cSrcweir 
37cdf0e10cSrcweir namespace testtools { namespace bridgetest {
38cdf0e10cSrcweir 
39cdf0e10cSrcweir class CurrentContextChecker:
40cdf0e10cSrcweir     public ::osl::DebugBase< CurrentContextChecker >,
41cdf0e10cSrcweir     public ::cppu::WeakImplHelper1<
42cdf0e10cSrcweir         ::test::testtools::bridgetest::XCurrentContextChecker >
43cdf0e10cSrcweir {
44cdf0e10cSrcweir public:
45cdf0e10cSrcweir     CurrentContextChecker();
46cdf0e10cSrcweir 
47cdf0e10cSrcweir     virtual ~CurrentContextChecker();
48cdf0e10cSrcweir 
49cdf0e10cSrcweir     virtual ::sal_Bool SAL_CALL perform(
50cdf0e10cSrcweir         ::com::sun::star::uno::Reference<
51cdf0e10cSrcweir             ::test::testtools::bridgetest::XCurrentContextChecker > const &
52cdf0e10cSrcweir             other,
53cdf0e10cSrcweir         ::sal_Int32 setSteps, ::sal_Int32 checkSteps)
54cdf0e10cSrcweir         throw (::com::sun::star::uno::RuntimeException);
55cdf0e10cSrcweir 
56cdf0e10cSrcweir private:
57cdf0e10cSrcweir     CurrentContextChecker(CurrentContextChecker &); // not defined
58cdf0e10cSrcweir     void operator =(CurrentContextChecker &); // not defined
59cdf0e10cSrcweir 
60cdf0e10cSrcweir     bool performCheck(
61cdf0e10cSrcweir         ::com::sun::star::uno::Reference<
62cdf0e10cSrcweir             ::test::testtools::bridgetest::XCurrentContextChecker > const &
63cdf0e10cSrcweir             other,
64cdf0e10cSrcweir         ::sal_Int32 setSteps, ::sal_Int32 checkSteps);
65cdf0e10cSrcweir };
66cdf0e10cSrcweir 
67cdf0e10cSrcweir } }
68cdf0e10cSrcweir 
69cdf0e10cSrcweir #endif
70