Added return-type json to custom module

This commit is contained in:
Robinhuett
2018-11-01 00:40:44 +01:00
parent 341d3300fa
commit e23fbd0add
2 changed files with 24 additions and 3 deletions

View File

@ -4,6 +4,7 @@
#include <iostream>
#include "util/chrono.hpp"
#include "util/command.hpp"
#include "util/json.hpp"
#include "ALabel.hpp"
namespace waybar::modules {
@ -15,7 +16,8 @@ class Custom : public ALabel {
private:
void delayWorker();
void continuousWorker();
void parseOutput();
void parseOutputRaw();
void parseOutputJson();
const std::string name_;
std::string text_;
@ -24,6 +26,7 @@ class Custom : public ALabel {
std::string prevclass_;
waybar::util::SleeperThread thread_;
waybar::util::command::res output_;
waybar::util::JsonParser parser_;
};
}