From bca1a0d4230f28e254f7ce7bc4fb73c9acf33f0d Mon Sep 17 00:00:00 2001 From: markuspg Date: Tue, 13 Mar 2018 20:04:39 +0100 Subject: [PATCH] Reformat global.h --- src/Lib/global.h | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) mode change 100755 => 100644 src/Lib/global.h diff --git a/src/Lib/global.h b/src/Lib/global.h old mode 100755 new mode 100644 index b5334cd..7f834bd --- a/src/Lib/global.h +++ b/src/Lib/global.h @@ -1,5 +1,5 @@ /* - * Copyright 2014-2016 Markus Prasser + * Copyright 2014-2018 Markus Prasser, Tobias Weiss * * This file is part of Labcontrol. * @@ -25,19 +25,20 @@ //! Opens a terminal for the client enum class state_t : unsigned short int { //! The client is booting but not yet responding - BOOTING, + BOOTING = 1 << 0, //! An error occurred determining the client's state - ERROR, + ERROR = 1 << 1, //! The client is not responding to pings - NOT_RESPONDING, + NOT_RESPONDING = 1 << 2, //! The client is shutting down but not yet stopped responding - SHUTTING_DOWN, + SHUTTING_DOWN = 1 << 3, //! The client's state is not yet defined (should only occur directly after client creation) - UNINITIALIZED, + UNINITIALIZED = 1 << 4, //! The client is responding to pings - RESPONDING, + RESPONDING = 1 << 5, //! The client is running a zLeaf - ZLEAF_RUNNING}; -Q_DECLARE_METATYPE( state_t ) + ZLEAF_RUNNING = 1 << 6, +}; +Q_DECLARE_METATYPE(state_t) #endif // GLOBAL_H