mirror of
https://github.com/polybar/polybar.git
synced 2024-11-18 13:55:11 -05:00
f5169abde2
* Remove unsupported.hpp * Rename names.hpp to types.hpp * Replace macro by function * Add missing cassert include in controller.cpp
25 lines
530 B
C++
25 lines
530 B
C++
#pragma once
|
|
|
|
#include "modules/meta/timer_module.hpp"
|
|
#include "modules/meta/types.hpp"
|
|
|
|
POLYBAR_NS
|
|
|
|
namespace modules {
|
|
class counter_module : public timer_module<counter_module> {
|
|
public:
|
|
explicit counter_module(const bar_settings&, string, const config&);
|
|
|
|
bool update();
|
|
bool build(builder* builder, const string& tag) const;
|
|
|
|
static constexpr auto TYPE = COUNTER_TYPE;
|
|
|
|
private:
|
|
static constexpr auto TAG_COUNTER = "<counter>";
|
|
|
|
int m_counter{0};
|
|
};
|
|
} // namespace modules
|
|
|
|
POLYBAR_NS_END
|