sync master with lastest vba changes
[ooovba.git] / goodies / inc / chanapi.hxx
blobfe183b8e743f1f8dad6fd45beee1369b604c544a
1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 *
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: chanapi.hxx,v $
10 * $Revision: 1.3 $
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 ************************************************************************/
31 #ifndef _CHANAPI_HXX
32 #define _CHANAPI_HXX
35 #include <tools/list.hxx>
36 #include <tools/chapi.hxx>
38 #ifndef _INETSES_HXX //autogen
39 #include <inet/inetsess.hxx>
40 #endif
42 class ChannelAgentItem;
43 class ChannelList;
44 class INetURLObject;
45 class GetChannelObj;
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*);
61 public:
62 ChannelApi( ChannelAgentItem* pAgent, INetSession* pISess,
63 ChannelList* pChLst );
64 ~ChannelApi();
66 void ShutDownAgent();
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);
84 #endif //_CHANAPI_HXX