1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: chanapi.hxx,v $
12 * This file is part of OpenOffice.org.
14 * OpenOffice.org is free software: you can redistribute it and/or modify
15 * it under the terms of the GNU Lesser General Public License version 3
16 * only, as published by the Free Software Foundation.
18 * OpenOffice.org is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 * GNU Lesser General Public License version 3 for more details
22 * (a copy is included in the LICENSE file that accompanied this code).
24 * You should have received a copy of the GNU Lesser General Public License
25 * version 3 along with OpenOffice.org. If not, see
26 * <http://www.openoffice.org/license.html>
27 * for a copy of the LGPLv3 License.
29 ************************************************************************/
35 #include <tools/list.hxx>
36 #include <tools/chapi.hxx>
38 #ifndef _INETSES_HXX //autogen
39 #include <inet/inetsess.hxx>
42 class ChannelAgentItem
;
47 DECLARE_LIST(GetChObjList
, GetChannelObj
*);
49 class ChannelApi
: public ChApi
51 INetSessionRef xINetSession
;
53 ChannelAgentItem
* pChAgent
;
54 ChannelList
* pChannelList
;
56 GetChObjList
* pGetChObjList
;
58 DECL_LINK(CloseAgentEvt
, void*);
59 DECL_LINK(CloseChannelObjEvt
, void*);
60 DECL_LINK(GetChannelObjNotify
, GetChannelObj
*);
62 ChannelApi( ChannelAgentItem
* pAgent
, INetSession
* pISess
,
63 ChannelList
* pChLst
);
67 void SetLastSuccUpd();
69 void GetChannelObject( const INetURLObject
& rURL
, RequestType eStreamType
,
70 const String
& rFileName
);
71 void AddChannelItem( const String
& aChName
, const INetURLObject
& aTransmitter
,
72 const String
& aChannel
, USHORT nUpdPeriode
,
73 const String
& rChAgentName
);
74 void DelChannelItem( const String
& aChName
);
75 void SetChTransmitter( const String
& aChName
, const String
& rNewVal
);
76 void SetChannel( const String
& aChName
, const String
& rNewVal
);
77 void SetChannelName( const String
& aChName
, const String
& rNewVal
);
78 void SetChUpdPeriode( const String
& aChName
, USHORT nUpdPeriode
);
79 void SetChannelAgentName( const String
& aChName
, const String
& rNewVal
);
81 void SetUpdateTransmitter(ChannelAgentItem
* pAgent
, const INetURLObject
& rTransmitter
);