calendar/base/backend/libical/calDuration.h
author eslint <eslint@bugzilla.kewis.ch>
Fri, 08 Jul 2016 11:14:45 +0200
changeset 25939 b1be8f5e02be13b1fb3ea3734c095e0e4f784b3a
parent 22208 94adb5945ec3147c246b55b123676c324274fd25
child 32162 fea261d7ea3c434ff8146c1c3134d306906cd068
permissions -rw-r--r--
Bug 1280898 - Set up eslint for calendar files - initial rules and minimal automatic fixes. r=MakeMyDay MozReview-Commit-ID: 5UnTP50Iqtv

/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/* This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this
 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */

#ifndef CALDURATION_H_
#define CALDURATION_H_

#include "calIDuration.h"

extern "C" {
    #include "ical.h"
}

class calDuration final : public calIDurationLibical
{
public:
    calDuration ();
    calDuration (const calDuration& cdt);
    calDuration (const struct icaldurationtype * const aDurationPtr);

    // nsISupports interface
    NS_DECL_ISUPPORTS

    // calIDateTime interface
    NS_DECL_CALIDURATION
    NS_DECL_CALIDURATIONLIBICAL

protected:
    ~calDuration() {}
    bool mImmutable;

    struct icaldurationtype mDuration;

    void FromIcalDuration(const struct icaldurationtype * const icald);
};

#endif /* CALDURATION_H_ */