Files
Mozilla/mozilla/calendar/modules/util/inc/nsDuration.h
jsun%netscape.com d9b95f11c1 Renamed several classes that had Julian in front.
Changed them to nsCal.
i.e. Julian_Duration -> nsCalDuration.
     JulianRecurrenceID -> nsCalRecurrenceID.


git-svn-id: svn://10.0.0.236/trunk@11263 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-28 20:46:22 +00:00

62 lines
1.6 KiB
C++

/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
* Reserved.
*/
#ifndef nsDuration_h___
#define nsDuration_h___
#include "nsIDuration.h"
#include "jdefines.h"
#include "unistring.h"
#include "duration.h"
#include "datetime.h"
class nsDuration : public nsIDuration
{
public:
nsDuration();
NS_DECL_ISUPPORTS
NS_IMETHOD Init() ;
NS_IMETHOD_(PRUint32) GetYear();
NS_IMETHOD_(PRUint32) GetMonth();
NS_IMETHOD_(PRUint32) GetDay();
NS_IMETHOD_(PRUint32) GetHour();
NS_IMETHOD_(PRUint32) GetMinute();
NS_IMETHOD_(PRUint32) GetSecond();
NS_IMETHOD SetYear(PRUint32 aYear);
NS_IMETHOD SetMonth(PRUint32 aMonth);
NS_IMETHOD SetDay(PRUint32 aDay);
NS_IMETHOD SetHour(PRUint32 aHour);
NS_IMETHOD SetMinute(PRUint32 aMinute);
NS_IMETHOD SetSecond(PRUint32 aSecond);
NS_IMETHOD_(nsCalDuration&) GetDuration();
protected:
~nsDuration();
private:
nsCalDuration * mDuration;
};
#endif /* nsDuration_h___ */