xref: /aoo4110/main/svtools/inc/svtools/testtool.hxx (revision b1cdbd2c)
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 <tools/string.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 RemoteControl
42 {
43 	friend class StatementFlow;
44 
45 	sal_Bool         m_bIdleInserted;
46 #if OSL_DEBUG_LEVEL > 1
47 	EditWindow *m_pDbgWin;
48 #endif
49 	ImplRC* pImplRC;
50 
51 public:
52 	RemoteControl();
53 	~RemoteControl();
54 	sal_Bool QueCommands( sal_uLong nServiceId, SvStream *pIn );
55 	SvStream* GetReturnStream();
56 
57 	DECL_LINK( IdleHdl,   Application* );
58 	DECL_LINK( CommandHdl, Application* );
59 
60 	DECL_LINK( QueCommandsEvent, CommunicationLink* );
61 	sal_uLong nStoredServiceId;
62 	SvStream *pStoredStream;
63 
64 	void ExecuteURL( String &aURL );
65 
66 protected:
67 	CommunicationManager *pServiceMgr;
68 	SvStream *pRetStream;
69 };
70 
71 #endif // SVTOOLS_TESTTOOL_HXX
72