1
0
mirror of https://github.com/Llewellynvdm/conky.git synced 2025-02-06 05:58:36 +00:00
conky/src/display-http.cc

68 lines
1.6 KiB
C++
Raw Normal View History

/*
*
* Conky, a system monitor, based on torsmo
*
* Please see COPYING for details
*
* Copyright (C) 2010 Pavel Labath et al.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
*/
#include <config.h>
#include "conky.h"
#include "display-http.hh"
#include <iostream>
#include <sstream>
#include <unordered_map>
namespace conky {
namespace {
#ifdef BUILD_HTTP
conky::display_output_http http_output;
#else
conky::disabled_display_output http_output_disabled("http", "BUILD_HTTP");
#endif
} // namespace
namespace priv {} // namespace priv
#ifdef BUILD_HTTP
display_output_http::display_output_http() : display_output_base("http") {
priority = 1;
}
bool display_output_http::detect() {
/* TODO:
if (out_to_http.get(*state)) {
std::cerr << "Display output '" << name << "' enabled in config." <<
std::endl; return true;
}
*/
return false;
}
bool display_output_http::initialize() { return false; }
bool display_output_http::shutdown() { return false; }
#endif
} // namespace conky