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

55 lines
1.0 KiB
C++
Raw Normal View History

#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);
}
2018-03-29 18:30:30 +00:00
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);
}