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 _SVT_LISTENERBASE_HXX 24 #define _SVT_LISTENERBASE_HXX 25 26 class SvtBroadcaster; 27 class SvtListener; 28 29 class SvtListenerBase 30 { 31 SvtListenerBase *pNext; 32 SvtListenerBase *pLeft, *pRight; 33 SvtBroadcaster *pBroadcaster; 34 SvtListener *pListener; 35 36 public: 37 38 SvtListenerBase( SvtListener& rLst, SvtBroadcaster& rBroadcaster ); 39 ~SvtListenerBase(); 40 GetNext() const41 SvtListenerBase* GetNext() const { return pNext; } SetNext(SvtListenerBase * p)42 void SetNext( SvtListenerBase* p ) { pNext = p; } 43 GetBroadcaster() const44 SvtBroadcaster* GetBroadcaster() const { return pBroadcaster; } GetListener() const45 SvtListener* GetListener() const { return pListener; } 46 GetLeft() const47 SvtListenerBase* GetLeft() const { return pLeft; } GetRight() const48 SvtListenerBase* GetRight() const { return pRight; } 49 }; 50 51 52 #endif 53 54