This repository has been archived on 2024-12-15. You can view files and clone it, but cannot push or open issues or pull requests.
libdokuwiki/source/dokuwiki.cpp
2018-03-29 21:20:25 +02:00

59 lines
1.2 KiB
C++

#include "dokuwiki.h"
#include "dokuwiki.impl.h"
#include <xmlrpc-c/client.hpp>
#include <iostream>
DokuWiki::DokuWiki(const std::string &url, const std::string &username, const std::string &password)
: pimpl{std::make_unique<impl>(url, username, password)}
{
}
DokuWiki::~DokuWiki() = default;
std::string DokuWiki::getVersion()
{
return pimpl->getVersion();
}
std::string DokuWiki::getTime()
{
return pimpl->getTime();
}
std::string DokuWiki::getPage(const std::string &pageName)
{
return pimpl->getPage(pageName);
}
std::string DokuWiki::getWikiTitle()
{
return pimpl->getWikiTitle();
}
DokuWiki::PageInfo DokuWiki::getPageInfo(const std::string &pageName)
{
return pimpl->getPageInfo(pageName);
}
bool DokuWiki::pageExists(const std::string &pageName)
{
return pimpl->pageExists(pageName);
}
void DokuWiki::putPage(const std::string &pageName, const std::string &content)
{
pimpl->putPage(pageName, content);
}
void DokuWiki::addPage(const std::string &pageName, const std::string &content)
{
pimpl->addPage(pageName, content);
}
void DokuWiki::appendToPage(const std::string &pageName, const std::string &content)
{
pimpl->appendToPage(pageName, content);
}