Commit 7c809836 authored by Yuri Chornoivan's avatar Yuri Chornoivan
Browse files

Fix minor Doxygen issues

parent 9460a8b3
......@@ -531,12 +531,12 @@ KAEventPrivate::KAEventPrivate(const KADateTime &dt, const QString &message, con
set(dt, message, bg, fg, f, action, lateCancel, flags, changesPending);
}
KAEvent::KAEvent(const Event::Ptr &e)
KAEvent::KAEvent(const KCalCore::Event::Ptr &e)
: d(new KAEventPrivate(e))
{
}
KAEventPrivate::KAEventPrivate(const Event::Ptr &e)
KAEventPrivate::KAEventPrivate(const KCalCore::Event::Ptr &e)
: mRecurrence(nullptr)
{
set(e);
......@@ -652,7 +652,7 @@ void KAEventPrivate::copy(const KAEventPrivate &event)
}
}
void KAEvent::set(const Event::Ptr &e)
void KAEvent::set(const KCalCore::Event::Ptr &e)
{
d->set(e);
}
......@@ -660,7 +660,7 @@ void KAEvent::set(const Event::Ptr &e)
/******************************************************************************
* Initialise the KAEventPrivate from a KCalCore::Event.
*/
void KAEventPrivate::set(const Event::Ptr &event)
void KAEventPrivate::set(const KCalCore::Event::Ptr &event)
{
startChanges();
// Extract status from the event
......@@ -1495,14 +1495,14 @@ bool KAEventPrivate::updateKCalEvent(const Event::Ptr &ev, KAEvent::UidAction ui
* NOTE: The variant taking a DateTime calculates the offset from mStartDateTime,
* which is not suitable for an alarm in a recurring event.
*/
Alarm::Ptr KAEventPrivate::initKCalAlarm(const Event::Ptr &event, const DateTime &dt, const QStringList &types, AlarmType type) const
Alarm::Ptr KAEventPrivate::initKCalAlarm(const KCalCore::Event::Ptr &event, const DateTime &dt, const QStringList &types, AlarmType type) const
{
const int startOffset = dt.isDateOnly() ? mStartDateTime.secsTo(dt)
: mStartDateTime.calendarKDateTime().secsTo(dt.calendarKDateTime());
return initKCalAlarm(event, startOffset, types, type);
}
Alarm::Ptr KAEventPrivate::initKCalAlarm(const Event::Ptr &event, int startOffsetSecs, const QStringList &types, AlarmType type) const
Alarm::Ptr KAEventPrivate::initKCalAlarm(const KCalCore::Event::Ptr &event, int startOffsetSecs, const QStringList &types, AlarmType type) const
{
QStringList alltypes;
QStringList flags;
......@@ -2918,13 +2918,13 @@ bool KAEvent::setRecurAnnualByPos(int freq, const QVector<MonthPos> &posns, cons
* end = end date/time (invalid to use 'count' instead).
* Reply = false if no recurrence was set up.
*/
bool KAEventPrivate::setRecur(RecurrenceRule::PeriodType recurType, int freq, int count, const QDate &end, KARecurrence::Feb29Type feb29)
bool KAEventPrivate::setRecur(KCalCore::RecurrenceRule::PeriodType recurType, int freq, int count, const QDate &end, KARecurrence::Feb29Type feb29)
{
KADateTime edt = mNextMainDateTime.kDateTime();
edt.setDate(end);
return setRecur(recurType, freq, count, edt, feb29);
}
bool KAEventPrivate::setRecur(RecurrenceRule::PeriodType recurType, int freq, int count, const KADateTime &end, KARecurrence::Feb29Type feb29)
bool KAEventPrivate::setRecur(KCalCore::RecurrenceRule::PeriodType recurType, int freq, int count, const KADateTime &end, KARecurrence::Feb29Type feb29)
{
if (count >= -1 && (count || end.date().isValid())) {
if (!mRecurrence) {
......
......@@ -636,6 +636,7 @@ public:
QString emailAddresses(const QString &sep) const;
/** Concatenate a list of email addresses into a string.
* @param addresses the addresses.
* @param sep separator string to insert between addresses.
*/
static QString joinEmailAddresses(const KCalCore::Person::List &addresses, const QString &sep);
......@@ -1138,6 +1139,7 @@ public:
QString repetitionText(bool brief = false) const;
/** Determine whether the event will occur after the specified date/time.
* @param preDateTime the specified date/time.
* @param includeRepetitions if true and the alarm has a sub-repetition, the
* method will return true if any sub-repetitions
* occur after @p preDateTime.
......@@ -1157,6 +1159,7 @@ public:
/** Get the date/time of the next occurrence of the event, after the specified
* date/time.
* @param preDateTime the specified date/time.
* @param result date/time of next occurrence, or invalid date/time if none.
* @param option how/whether to make allowance for sub-repetitions.
* @see nextRepetition(), setNextOccurrence(), previousOccurrence(), occursAfter()
......@@ -1165,6 +1168,7 @@ public:
/** Get the date/time of the last previous occurrence of the event, before the
* specified date/time.
* @param afterDateTime the specified date/time.
* @param result date/time of previous occurrence, or invalid
* date/time if none.
* @param includeRepetitions if true and the alarm has a sub-repetition, the
......
......@@ -110,7 +110,7 @@ KARecurrence::KARecurrence()
: d(new Private)
{ }
KARecurrence::KARecurrence(const Recurrence &r)
KARecurrence::KARecurrence(const KCalCore::Recurrence &r)
: d(new Private(r))
{
fix();
......@@ -211,7 +211,7 @@ bool KARecurrence::Private::set(Type recurType, int freq, int count, int f29, co
* Initialise a KARecurrence from recurrence parameters.
* Reply = true if successful.
*/
bool KARecurrence::init(RecurrenceRule::PeriodType t, int freq, int count,
bool KARecurrence::init(KCalCore::RecurrenceRule::PeriodType t, int freq, int count,
const KADateTime &start, const KADateTime &end)
{
return d->init(t, freq, count, -1, start, end);
......@@ -480,7 +480,7 @@ void KARecurrence::Private::fix()
* Initialise a KCal::Recurrence to be the same as this instance.
* Additional recurrence rules are created as necessary if it recurs on Feb 29th.
*/
void KARecurrence::writeRecurrence(Recurrence &recur) const
void KARecurrence::writeRecurrence(KCalCore::Recurrence &recur) const
{
d->writeRecurrence(this, recur);
}
......@@ -1274,7 +1274,7 @@ KARecurrence::Type KARecurrence::type() const
/******************************************************************************
* Return the recurrence rule type.
*/
KARecurrence::Type KARecurrence::type(const RecurrenceRule *rrule)
KARecurrence::Type KARecurrence::type(const KCalCore::RecurrenceRule *rrule)
{
switch (Recurrence::recurrenceType(rrule)) {
case Recurrence::rMinutely: return MINUTELY;
......
......@@ -49,7 +49,7 @@ Repetition::Repetition()
{
}
Repetition::Repetition(const Duration &interval, int count)
Repetition::Repetition(const KCalCore::Duration &interval, int count)
: d(new Private(interval, count))
{
}
......@@ -72,7 +72,7 @@ Repetition &Repetition::operator=(const Repetition &other)
return *this;
}
void Repetition::set(const Duration &interval, int count)
void Repetition::set(const KCalCore::Duration &interval, int count)
{
if (!count || interval.isNull()) {
d->mCount = 0;
......@@ -83,7 +83,7 @@ void Repetition::set(const Duration &interval, int count)
}
}
void Repetition::set(const Duration &interval)
void Repetition::set(const KCalCore::Duration &interval)
{
if (d->mCount) {
d->mInterval = interval;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment