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 __com_sun_star_ucb_XDynamicResultSetListener_idl__ 24#define __com_sun_star_ucb_XDynamicResultSetListener_idl__ 25 26#ifndef __com_sun_star_lang_XEventListener_idl__ 27#include <com/sun/star/lang/XEventListener.idl> 28#endif 29 30#ifndef __com_sun_star_ucb_ListEvent_idl__ 31#include <com/sun/star/ucb/ListEvent.idl> 32#endif 33 34//============================================================================= 35 36module com { module sun { module star { module ucb { 37 38//============================================================================= 39/** used to receive notifications from an <type>XDynamicResultSet</type>. 40*/ 41 42published interface XDynamicResultSetListener: com::sun::star::lang::XEventListener 43{ 44 //------------------------------------------------------------------------- 45 /** A method used to propagate changes of a resultset. 46 47 <p>In the first notify-call the listener gets two(!) 48 <type scope="com::sun::star::sdbc">XResultSet</type>s and has to hold 49 them. The <type scope="com::sun::star::sdbc">XResultSet</type>s are 50 implementations of the service <type>ContentResultSet</type>. 51 52 <p>The notified new 53 <type scope="com::sun::star::sdbc">XResultSet</type> will stay valid 54 after returning from this method. The old one will become invalid after 55 returning. 56 57 <p>While in notify-call the listener is allowed to read from old and 58 new resultset, except in the first call, where only the new resultset 59 is valid. 60 61 <p>The Listener is allowed to stay (block) this call, until he really 62 wants to use the new resultset. The only situation, where the listener 63 has to return immediately is while he disposes his broadcaster or while 64 he is removing himself as listener (otherwise you deadlock)!!! 65 66 @param Changes 67 the changes to notify. 68 */ 69 void notify( [in] ListEvent Changes ); 70}; 71 72//============================================================================= 73 74}; }; }; }; 75 76#endif 77