michael@0: /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ michael@0: /* This Source Code Form is subject to the terms of the Mozilla Public michael@0: * License, v. 2.0. If a copy of the MPL was not distributed with this michael@0: * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ michael@0: michael@0: /* michael@0: ** C++ interval times (ref: prinrval.h) michael@0: ** michael@0: ** An interval is a period of time. The start of the interval (epoch) michael@0: ** must be defined by the application. The unit of time of an interval michael@0: ** is platform dependent, therefore so is the maximum interval that is michael@0: ** representable. However, that interval is never less that ~12 hours. michael@0: */ michael@0: michael@0: #include "rcinrval.h" michael@0: michael@0: RCInterval::~RCInterval() { } michael@0: michael@0: RCInterval::RCInterval(RCInterval::RCReservedInterval special): RCBase() michael@0: { michael@0: switch (special) michael@0: { michael@0: case RCInterval::now: michael@0: interval = PR_IntervalNow(); michael@0: break; michael@0: case RCInterval::no_timeout: michael@0: interval = PR_INTERVAL_NO_TIMEOUT; michael@0: break; michael@0: case RCInterval::no_wait: michael@0: interval = PR_INTERVAL_NO_WAIT; michael@0: break; michael@0: default: michael@0: break; michael@0: } michael@0: } /* RCInterval::RCInterval */ michael@0: michael@0: /* rcinrval.cpp */