#include "../utils/TableFormatter.h"
#include "../utils/CsvFormatter.h"
#include "../utils/JsonFormatter.h"
+#include "../utils/OutputOptions.h"
#include "dbus/DBusMessage.h"
#include "../utils/HumanString.h"
enum class ListMode { ALL, SINGLE, PRE_POST };
- /**
- * Just a collection of some variables defining the output.
- */
- class OutputOptions
- {
- public:
-
- OutputOptions(bool utc, bool iso, bool human)
- : utc(utc), iso(iso), human(human)
- {
- }
-
- const bool utc;
- const bool iso;
- const bool human;
- };
-
-
/**
* Some help for the output, e.g. check if a snapshot is the default or active
* snapshot, check if a snapshot should be skipped in the output or check if the
Limit.cc Limit.h \
TableFormatter.cc TableFormatter.h \
CsvFormatter.cc CsvFormatter.h \
- JsonFormatter.cc JsonFormatter.h
+ JsonFormatter.cc JsonFormatter.h \
+ OutputOptions.h
libutils_la_LIBADD = ../../snapper/libsnapper.la -ltinfo
--- /dev/null
+/*
+ * Copyright (c) [2011-2015] Novell, Inc.
+ * Copyright (c) [2016-2024] SUSE LLC
+ *
+ * All Rights Reserved.
+ *
+ * This program is free software; you can redistribute it and/or modify it
+ * under the terms of version 2 of the GNU General Public License as published
+ * by the Free Software Foundation.
+ *
+ * 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, contact Novell, Inc.
+ *
+ * To contact Novell about this file by physical or electronic mail, you may
+ * find current contact information at www.novell.com.
+ */
+
+
+namespace snapper
+{
+
+ /**
+ * Just a collection of some variables defining the output.
+ */
+ class OutputOptions
+ {
+ public:
+
+ OutputOptions(bool utc, bool iso, bool human)
+ : utc(utc), iso(iso), human(human)
+ {
+ }
+
+ const bool utc;
+ const bool iso;
+ const bool human;
+
+ };
+
+}