gecko-dev/calendar/modules/core/inc/nsLayerCollection.h

75 lines
2.1 KiB
C
Raw Normal View History

1998-09-15 19:09:36 +00:00
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
*
1999-11-02 06:13:48 +00:00
* The contents of this file are subject to the Netscape Public
* License Version 1.1 (the "License"); you may not use this file
* except in compliance with the License. You may obtain a copy of
* the License at http://www.mozilla.org/NPL/
1998-09-15 19:09:36 +00:00
*
1999-11-02 06:13:48 +00:00
* Software distributed under the License is distributed on an "AS
* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
* implied. See the License for the specific language governing
* rights and limitations under the License.
1998-09-15 19:09:36 +00:00
*
1999-11-02 06:13:48 +00:00
* The Original Code is mozilla.org code.
*
* The Initial Developer of the Original Code is Netscape
1998-09-15 19:09:36 +00:00
* Communications Corporation. Portions created by Netscape are
1999-11-02 06:13:48 +00:00
* Copyright (C) 1998 Netscape Communications Corporation. All
* Rights Reserved.
*
* Contributor(s):
1998-09-15 19:09:36 +00:00
*/
#ifndef nsLayerCollection_h___
#define nsLayerCollection_h___
1998-09-17 19:21:04 +00:00
#include "nscalexport.h"
1998-09-15 19:09:36 +00:00
#include "nsILayer.h"
#include "nsILayerCollection.h"
#include "nsIArray.h"
1998-09-15 19:09:36 +00:00
1998-09-24 18:41:30 +00:00
1998-09-17 19:21:04 +00:00
class NS_CALENDAR nsLayerCollection : public nsILayerCollection,
1998-09-15 19:09:36 +00:00
nsILayer
{
1998-09-24 18:41:30 +00:00
1998-09-15 19:09:36 +00:00
public:
nsLayerCollection(nsISupports* outer);
~nsLayerCollection();
NS_DECL_ISUPPORTS
NS_IMETHOD Init();
NS_IMETHOD CreateIterator(nsIIterator ** aIterator) ;
NS_IMETHOD AddLayer(nsILayer * aLayer);
NS_IMETHOD RemoveLayer(nsILayer * aLayer);
1998-10-02 16:56:30 +00:00
NS_IMETHOD SetShell(nsCalendarShell* aShell);
1998-09-18 22:54:48 +00:00
NS_IMETHOD SetCurl(const JulianString& s);
NS_IMETHOD GetCurl(JulianString& s);
1998-09-24 18:41:30 +00:00
/**
* Check to see if any layer matches the supplied curl.
* In this case, matching means that the host and CSID
* values are equal.
* @param s the curl
* @return NS_OK on success
*/
NS_IMETHOD URLMatch(const JulianString& aCurl, PRBool& aMatch);
1998-09-18 22:54:48 +00:00
NS_IMETHOD SetCal(NSCalendar* aCal);
NS_IMETHOD GetCal(NSCalendar*& aCal);
NS_IMETHOD FetchEventsByRange(
DateTime* aStart,
DateTime* aStop, JulianPtrArray* aL
1998-09-18 22:54:48 +00:00
);
1998-10-31 00:55:23 +00:00
NS_IMETHOD StoreEvent(VEvent& addEvent);
private:
nsIArray * mLayers ;
1998-09-24 18:41:30 +00:00
nsCalendarShell * mpShell;
1998-09-15 19:09:36 +00:00
};
#endif //nsLayerCollection_h___