1 /**************************************************************
2  *
3  * Licensed to the Apache Software Foundation (ASF) under one
4  * or more contributor license agreements.  See the NOTICE file
5  * distributed with this work for additional information
6  * regarding copyright ownership.  The ASF licenses this file
7  * to you under the Apache License, Version 2.0 (the
8  * "License"); you may not use this file except in compliance
9  * with the License.  You may obtain a copy of the License at
10  *
11  *   http://www.apache.org/licenses/LICENSE-2.0
12  *
13  * Unless required by applicable law or agreed to in writing,
14  * software distributed under the License is distributed on an
15  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16  * KIND, either express or implied.  See the License for the
17  * specific language governing permissions and limitations
18  * under the License.
19  *
20  *************************************************************/
21 
22 
23 #ifndef SVTOOLS_TESTTOOL_HXX
24 #define SVTOOLS_TESTTOOL_HXX
25 
26 #include <tools/solar.h>
27 #include <tools/link.hxx>
28 #include <vcl/timer.hxx>
29 
30 class Application;
31 class SvStream;
32 
33 class StatementFlow;
34 class CommunicationManager;
35 class CommunicationLink;
36 #if OSL_DEBUG_LEVEL > 1
37 class EditWindow;
38 #endif
39 class ImplRC;
40 
41 class ImplRemoteControl
42 {
43 	friend class StatementFlow;
44 
45 	sal_Bool         m_bIdleInserted;
46     AutoTimer    m_aIdleTimer;
47     sal_Bool         m_bInsideExecutionLoop;
48 #if OSL_DEBUG_LEVEL > 1
49 	EditWindow *m_pDbgWin;
50 #endif
51 
52 public:
53 	ImplRemoteControl();
54 	~ImplRemoteControl();
55 	sal_Bool QueCommands( sal_uLong nServiceId, SvStream *pIn );
56 	SvStream* GetReturnStream();
57 
58 	DECL_LINK( IdleHdl,   Application* );
59 	DECL_LINK( CommandHdl, Application* );
60 
61 	DECL_LINK( QueCommandsEvent, CommunicationLink* );
62 
63 protected:
64 	CommunicationManager *pServiceMgr;
65 	SvStream *pRetStream;
66 };
67 
68 #endif // SVTOOLS_TESTTOOL_HXX
69