blob: b0a108811b28a182ebef58e6efb5e4118dbd5a9a (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
|
#ifndef STFLPP__H
#define STFLPP__H
extern "C" {
#include <stfl.h>
}
#include <string>
namespace newsbeuter {
class stfl {
public:
class form {
public:
explicit form(const std::string& text);
~form();
const char * run(int timeout);
std::string get(const std::string& name);
void set(const std::string& name, const std::string& value);
std::string get_focus();
void set_focus(const std::string& name);
std::string dump(const std::string& name, const std::string& prefix, int focus);
void modify(const std::string& name, const std::string& mode, const std::string& text);
// std::string lookup(const std::string& path, const std::string& newname);
private:
stfl_form * f;
stfl_ipool * ipool;
};
// static std::string error();
// static void error_action(const std::string& mode);
static void reset();
static std::string quote(const std::string& text);
};
}
#endif
|