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: channel.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 ************************************************************************/
34 #include <tools/list.hxx>
35 #include <tools/urlobj.hxx>
38 DECLARE_LIST(ChannelItemList
,ChannelItem
*)
42 INetURLObject aTransmitter
;
45 String aChannelAgentName
;
48 ULONG nLastSuccUpdDate
;
49 long nLastSuccUpdTime
;
51 BOOL bAgentUpdChannel
;
57 // Set / Get Transmitter
58 void SetTransmitter(const INetURLObject
& rNew
)
59 { aTransmitter
= rNew
; }
60 const INetURLObject
& GetTransmitter() const
61 { return aTransmitter
; }
64 void SetChannel(const String
& rNew
)
66 const String
& GetChannel() const
69 // Set / Get ChannelName
70 void SetChannelName(const String
& rNew
)
71 { aChannelName
= rNew
; }
72 const String
& GetChannelName() const
73 { return aChannelName
; }
75 // Set / Get ChannelAgentName
76 void SetChannelAgentName(const String
& rNew
)
77 { aChannelAgentName
= rNew
; }
78 const String
& GetChannelAgentName() const
79 { return aChannelAgentName
; }
81 // Set / Get UpdatePeriode
82 void SetUpdatePeriode(ULONG nNew
)
83 { nUpdatePeriode
= nNew
; }
84 ULONG
GetUpdatePeriode() const
85 { return nUpdatePeriode
; }
87 // Set / Get LastTimerTick
88 void SetLastTimerTick(ULONG nNew
)
89 { nLastTimerTick
= nNew
; }
90 ULONG
GetLastTimerTick() const
91 { return nLastTimerTick
; }
93 // Set / Get LastSuccUpdDate
94 void SetLastSuccUpdDate(ULONG nNew
)
95 { nLastSuccUpdDate
= nNew
; }
96 ULONG
GetLastSuccUpdDate() const
97 { return nLastSuccUpdDate
; }
99 // Set / Get LastSuccUpdTime
100 void SetLastSuccUpdTime(long nNew
)
101 { nLastSuccUpdTime
= nNew
; }
102 long GetLastSuccUpdTime() const
103 { return nLastSuccUpdTime
; }
105 // Set / Get AgentUpdChannel
106 void SetAgentUpdChannel(BOOL bNew
)
107 { bAgentUpdChannel
= bNew
; }
108 BOOL
GetAgentUpdChannel() const
109 { return bAgentUpdChannel
; }
112 #endif // _CHANNEL_HXX