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 _SERVER_HXX 24 #define _SERVER_HXX 25 26 /*#include <vos/thread.hxx> 27 #ifndef _STD_NO_NAMESPACE 28 namespace vos 29 { 30 #endif 31 class OAcceptorSocket; 32 #ifndef _STD_NO_NAMESPACE 33 } 34 #endif 35 */ 36 37 #include "editwin.hxx" 38 #include <automation/communi.hxx> 39 40 #define TT_PORT_NOT_INITIALIZED sal_uLong(0xFFFFFFFF) // Eigentlich ja noch mehr, aber soll mal reichen 41 #define TT_NO_PORT_DEFINED 0 42 43 class RemoteControlCommunicationManager : public CommunicationManagerServerViaSocket 44 { 45 #if OSL_DEBUG_LEVEL > 1 46 EditWindow *m_pDbgWin; 47 #endif 48 String aOriginalWinCaption; 49 String aAdditionalWinCaption; 50 sal_Bool bIsPortValid; 51 DECL_LINK( SetWinCaption, Timer* = NULL); 52 Timer* pTimer; 53 virtual void InfoMsg( InfoString aMsg ); 54 static sal_uLong nPortIs; 55 static sal_Bool bQuiet; 56 57 public: 58 #if OSL_DEBUG_LEVEL > 1 59 RemoteControlCommunicationManager( EditWindow * pDbgWin ); 60 #else 61 RemoteControlCommunicationManager(); 62 #endif 63 ~RemoteControlCommunicationManager(); 64 65 virtual void ConnectionOpened( CommunicationLink* pCL ); 66 virtual void ConnectionClosed( CommunicationLink* pCL ); 67 68 static sal_uLong GetPort(); 69 static sal_uInt16 nComm; 70 71 #if OSL_DEBUG_LEVEL > 1 72 // virtual void DataReceived( CommunicationLink* pCL ); 73 #endif 74 75 }; 76 77 #endif 78