Skip to content

Commit

Permalink
Add relatedUid methods to CalendarItem (#1596)
Browse files Browse the repository at this point in the history
  • Loading branch information
pbek committed Jan 19, 2020
1 parent ec1cb2d commit 3a74456
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/entities/calendaritem.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,10 @@ QString CalendarItem::getUid() const {
return this->uid;
}

QString CalendarItem::getRelatedUid() const {
return this->relatedUid;
}

QString CalendarItem::getDescription() {
return this->description;
}
Expand Down Expand Up @@ -104,6 +108,10 @@ void CalendarItem::setUid(QString text) {
this->uid = text;
}

void CalendarItem::setRelatedUid(QString text) {
this->relatedUid = text;
}

void CalendarItem::setCreated(QDateTime dateTime) {
this->created = dateTime;
}
Expand Down
3 changes: 3 additions & 0 deletions src/entities/calendaritem.h
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ class CalendarItem
void setDescription(QString text);
bool updateWithICSData(QString icsData);
QString getUid() const;
QString getRelatedUid() const;
static CalendarItem fetchByUid(QString uid);
int getPriority();
QString generateNewICSData();
Expand All @@ -56,6 +57,7 @@ class CalendarItem
static CalendarItem createNewTodoItem(QString summary, QString calendar);
void setUrl(QUrl url);
void setUid(QString text);
void setRelatedUid(QString text);
void setModified(QDateTime dateTime);
void setCreated(QDateTime dateTime);
void setCompleted(bool value);
Expand All @@ -80,6 +82,7 @@ class CalendarItem
QString description;
QString calendar;
QString uid;
QString relatedUid;
QString icsData;
QString etag;
QString lastModifiedString;
Expand Down

0 comments on commit 3a74456

Please sign in to comment.