aboutsummaryrefslogtreecommitdiff
path: root/src/greeter.h
diff options
context:
space:
mode:
authorCharles Kerr <charles.kerr@canonical.com>2016-04-25 11:05:22 +0200
committerCharles Kerr <charles.kerr@canonical.com>2016-04-25 11:05:22 +0200
commit7d2fac8f46110a84d8396251cd0f38351b92f6ce (patch)
tree3e692091a9150ffe914505ffdeeede8451a801a1 /src/greeter.h
parent0f5534d22903f73e2d33ea2e29efb2307463bfa4 (diff)
downloadayatana-indicator-display-7d2fac8f46110a84d8396251cd0f38351b92f6ce.tar.gz
ayatana-indicator-display-7d2fac8f46110a84d8396251cd0f38351b92f6ce.tar.bz2
ayatana-indicator-display-7d2fac8f46110a84d8396251cd0f38351b92f6ce.zip
add tracer log messages
Diffstat (limited to 'src/greeter.h')
-rw-r--r--src/greeter.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/greeter.h b/src/greeter.h
index cde1429..f3012f6 100644
--- a/src/greeter.h
+++ b/src/greeter.h
@@ -31,6 +31,10 @@ public:
virtual ~Greeter();
enum class State { UNAVAILABLE, INACTIVE, ACTIVE };
+static inline const char* state_str(const State& state) {
+ static constexpr char const * state_str[] = { "Unavailable", "Inactive", "Active" };
+ return state_str[int(state)];
+}
virtual core::Property<State>& state() =0;
};