Commit 342ce127 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Adapt to KCalendarCore namespace change

parent f969aa47
...@@ -65,7 +65,7 @@ BlogPost::BlogPost(const QString &postId) ...@@ -65,7 +65,7 @@ BlogPost::BlogPost(const QString &postId)
d_ptr->mStatus = New; d_ptr->mStatus = New;
} }
BlogPost::BlogPost(const KCalCore::Journal::Ptr &journal) BlogPost::BlogPost(const KCalendarCore::Journal::Ptr &journal)
: d_ptr(new BlogPostPrivate) : d_ptr(new BlogPostPrivate)
{ {
Q_ASSERT(journal); Q_ASSERT(journal);
...@@ -103,7 +103,7 @@ BlogPost::~BlogPost() ...@@ -103,7 +103,7 @@ BlogPost::~BlogPost()
delete d_ptr; delete d_ptr;
} }
KCalCore::Journal::Ptr BlogPost::journal(const Blog &blog) const KCalendarCore::Journal::Ptr BlogPost::journal(const Blog &blog) const
{ {
QString url = blog.url().url(); QString url = blog.url().url();
QString username = blog.username(); QString username = blog.username();
...@@ -111,7 +111,7 @@ KCalCore::Journal::Ptr BlogPost::journal(const Blog &blog) const ...@@ -111,7 +111,7 @@ KCalCore::Journal::Ptr BlogPost::journal(const Blog &blog) const
// Generate unique ID. Should be unique enough... // Generate unique ID. Should be unique enough...
QString id = QStringLiteral("kblog-") + url + QLatin1Char('-') + blogId + QLatin1Char('-') + username + QString id = QStringLiteral("kblog-") + url + QLatin1Char('-') + blogId + QLatin1Char('-') + username +
QLatin1Char('-') + d_ptr->mPostId; QLatin1Char('-') + d_ptr->mPostId;
KCalCore::Journal::Ptr journal(new KCalCore::Journal()); KCalendarCore::Journal::Ptr journal(new KCalendarCore::Journal());
journal->setUid(id); journal->setUid(id);
journal->setSummary(d_ptr->mTitle); journal->setSummary(d_ptr->mTitle);
journal->setCategories(d_ptr->mCategories); journal->setCategories(d_ptr->mCategories);
......
...@@ -26,7 +26,7 @@ ...@@ -26,7 +26,7 @@
#include <kblog_export.h> #include <kblog_export.h>
#include <QUrl> #include <QUrl>
#include <kcalcore/journal.h> #include <kcalendarcore/journal.h>
#include <QtAlgorithms> #include <QtAlgorithms>
class QStringList; class QStringList;
...@@ -81,7 +81,7 @@ public: ...@@ -81,7 +81,7 @@ public:
/** Constructor to create a blog post from a KCalCore Journal. /** Constructor to create a blog post from a KCalCore Journal.
@param journal The journal to use to create the post. Must not be null. @param journal The journal to use to create the post. Must not be null.
*/ */
explicit BlogPost(const KCalCore::Journal::Ptr &journal); explicit BlogPost(const KCalendarCore::Journal::Ptr &journal);
/** /**
Virtual default destructor. Virtual default destructor.
...@@ -93,7 +93,7 @@ public: ...@@ -93,7 +93,7 @@ public:
@param blog The blog object to convert. @param blog The blog object to convert.
@return journal @return journal
*/ */
KCalCore::Journal::Ptr journal(const Blog &blog) const; KCalendarCore::Journal::Ptr journal(const Blog &blog) const;
/** /**
Returns the ID used by the journal in creation, if created from a journal. Returns the ID used by the journal in creation, if created from a journal.
......
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