initial import with basic functionality
This commit is contained in:
commit
7183624f63
5 changed files with 272 additions and 0 deletions
32
include/dokuwiki.h
Normal file
32
include/dokuwiki.h
Normal file
|
@ -0,0 +1,32 @@
|
|||
#pragma once
|
||||
|
||||
#include <string>
|
||||
#include <memory>
|
||||
|
||||
class DokuWiki
|
||||
{
|
||||
public:
|
||||
using error = std::runtime_error;
|
||||
|
||||
struct PageInfo
|
||||
{
|
||||
std::string name;
|
||||
std::string author;
|
||||
std::string timestamp;
|
||||
};
|
||||
|
||||
public:
|
||||
DokuWiki(const std::string &url, const std::string &username, const std::string &password);
|
||||
~DokuWiki();
|
||||
|
||||
std::string getVersion();
|
||||
std::string getTime();
|
||||
std::string getPage(const std::string &pageName);
|
||||
std::string getWikiTitle();
|
||||
PageInfo getPageInfo(const std::string &pageName);
|
||||
|
||||
private:
|
||||
class impl;
|
||||
std::unique_ptr<impl> pimpl;
|
||||
};
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue