summaryrefslogtreecommitdiff
path: root/automation/source/testtool/comm_bas.hxx
diff options
context:
space:
mode:
authorMichael Stahl <mstahl@redhat.com>2012-01-28 20:52:45 +0100
committerMichael Stahl <mstahl@redhat.com>2012-01-28 20:52:45 +0100
commit2e626373db2412ac22e8c5c27a60d11cd29e875b (patch)
tree9e9f67205cd5b72f1031721273e1534a3a1e5b0f /automation/source/testtool/comm_bas.hxx
parentf7ee7bbd5174b084f018c2ec94d8c70c98ee04da (diff)
replace obsolete "master" branch with README that points at new repoHEADmaster-deletedmaster
Diffstat (limited to 'automation/source/testtool/comm_bas.hxx')
-rw-r--r--automation/source/testtool/comm_bas.hxx121
1 files changed, 0 insertions, 121 deletions
diff --git a/automation/source/testtool/comm_bas.hxx b/automation/source/testtool/comm_bas.hxx
deleted file mode 100644
index 99d54a427..000000000
--- a/automation/source/testtool/comm_bas.hxx
+++ /dev/null
@@ -1,121 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*************************************************************************
- *
- * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
- * Copyright 2000, 2010 Oracle and/or its affiliates.
- *
- * OpenOffice.org - a multi-platform office productivity suite
- *
- * This file is part of OpenOffice.org.
- *
- * OpenOffice.org is free software: you can redistribute it and/or modify
- * it under the terms of the GNU Lesser General Public License version 3
- * only, as published by the Free Software Foundation.
- *
- * OpenOffice.org is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU Lesser General Public License version 3 for more details
- * (a copy is included in the LICENSE file that accompanied this code).
- *
- * You should have received a copy of the GNU Lesser General Public License
- * version 3 along with OpenOffice.org. If not, see
- * <http://www.openoffice.org/license.html>
- * for a copy of the LGPLv3 License.
- *
- ************************************************************************/
-
-#ifndef _COMM_BAS_HXX
-#define _COMM_BAS_HXX
-
-#include <basic/sbxfac.hxx>
-#include <basic/sbxvar.hxx>
-#include <basic/sbxobj.hxx>
-
-class CommunicationManagerClientViaSocket;
-class CommunicationLink;
-
-class CommunicationWrapper : public SbxObject // Einer f�r Manager und Links
-{
- // Definition eines Tabelleneintrags. Dies wird hier gemacht,
- // da dadurch die Methoden und Properties als private deklariert
- // werden koennen.
-#if defined ( ICC ) || defined ( C50 )
-public:
-#endif
- typedef void( CommunicationWrapper::*pMeth )
- ( SbxVariable* pThis, SbxArray* pArgs, sal_Bool bWrite );
-#if defined ( ICC )
-private:
-#endif
-
- struct Methods {
- const char* pName; // Name des Eintrags
- SbxDataType eType; // Datentyp
- pMeth pFunc; // Function Pointer
- short nArgs; // Argumente und Flags
- };
- static Methods aManagerMethods[]; // Methodentabelle
- static Methods aLinkMethods[]; // Methodentabelle
- Methods *m_pMethods; // Aktuelle Methodentabelle
-
- // Methoden
- // Manager
- void MStartCommunication( SbxVariable* pVar, SbxArray* pPar, sal_Bool bWrite );
- void MStopAllCommunication( SbxVariable* pVar, SbxArray* pPar, sal_Bool bWrite );
- void MIsCommunicationRunning( SbxVariable* pVar, SbxArray* pPar, sal_Bool bWrite );
- void MGetMyName( SbxVariable* pVar, SbxArray* pPar, sal_Bool bWrite );
- void MIsLinkValid( SbxVariable* pVar, SbxArray* pPar, sal_Bool bWrite );
- void MSetCommunicationEventHandler( SbxVariable* pVar, SbxArray* pPar, sal_Bool bWrite );
-
- // Link
- void LStopCommunication( SbxVariable* pVar, SbxArray* pPar, sal_Bool bWrite );
- void LGetMyName( SbxVariable* pVar, SbxArray* pPar, sal_Bool bWrite );
- void LGetHostName( SbxVariable* pVar, SbxArray* pPar, sal_Bool bWrite );
- void LSend( SbxVariable* pVar, SbxArray* pPar, sal_Bool bWrite );
- void LGetString( SbxVariable* pVar, SbxArray* pPar, sal_Bool bWrite );
-
- // Interne Member und Methoden
- CommunicationManagerClientViaSocket *m_pManager;
- CommunicationLink *m_pLink;
- sal_Bool m_bIsManager; // Ist es kein Manager, so ist es ein Link
-
- // Kram f�r Manager
- DECL_LINK( Open, CommunicationLink* );
- DECL_LINK( Close, CommunicationLink* );
- DECL_LINK( Data, CommunicationLink* );
- void Events( String aType, CommunicationLink* pLink );
- sal_Bool m_bCatchOpen;
- CommunicationLink *m_pNewLink;
- String m_aEventHandlerName;
-
- using SbxVariable::GetInfo;
- // Infoblock auffuellen
- SbxInfo* GetInfo( short nIdx );
-
- // Broadcaster Notification
- virtual void SFX_NOTIFY( SfxBroadcaster& rBC, const TypeId& rBCType,
- const SfxHint& rHint, const TypeId& rHintType );
-public:
- CommunicationWrapper( const String& );
- CommunicationWrapper( CommunicationLink *pThisLink );
- ~CommunicationWrapper();
- // Suchen eines Elements
- virtual SbxVariable* Find( const String&, SbxClassType );
-
- CommunicationLink* GetCommunicationLink() { return m_pLink; }
-};
-
-
-// Die dazugehoerige Factory:
-
-class CommunicationFactory : public SbxFactory
-{
-public:
- virtual SbxObject* CreateObject( const String& );
-};
-
-#endif
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */