summaryrefslogtreecommitdiffstats
path: root/src/include/utils.h
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2022-05-30 19:40:31 +0900
committerSlávek Banko <slavek.banko@axis.cz>2022-05-30 21:55:12 +0200
commit9d7329284fd42187092c829ae6ed030561002776 (patch)
tree1d53503d17938eca725caee7ff783fccf52ca509 /src/include/utils.h
parentfac82f62f156c76cb4b23c313111283b30a778b5 (diff)
downloadtderadio-9d7329284fd42187092c829ae6ed030561002776.tar.gz
tderadio-9d7329284fd42187092c829ae6ed030561002776.zip
Standardize folder structure.
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it> (cherry picked from commit d95a4fea540b371fa86493d069fdbd54f33c5b40)
Diffstat (limited to 'src/include/utils.h')
-rw-r--r--src/include/utils.h47
1 files changed, 47 insertions, 0 deletions
diff --git a/src/include/utils.h b/src/include/utils.h
new file mode 100644
index 0000000..c446c82
--- /dev/null
+++ b/src/include/utils.h
@@ -0,0 +1,47 @@
+/***************************************************************************
+ utils.h - description
+ -------------------
+ begin : Sun Feb 3 2002
+ copyright : (C) 2002 by Martin Witte / Frank Schwanz
+ email : witte@kawo1.rwth-aachen.de / schwanz@fh-brandenburg.de
+ ***************************************************************************/
+
+/***************************************************************************
+ * *
+ * 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 2 of the License, or *
+ * (at your option) any later version. *
+ * *
+ ***************************************************************************/
+
+#ifndef KRADIO_UTILS_H
+#define KRADIO_UTILS_H
+
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
+using namespace std;
+
+#include <tdeconfig.h>
+#include <tdelocale.h>
+#include <kdebug.h>
+#include <tqstring.h>
+#define __USE_ISOC99 1
+#include <math.h>
+
+//extern const char *mixerChannelLabels[];
+//extern const char *mixerChannelNames[];
+
+extern TQString XMLEscape (const TQString &s);
+TQString xmlOpenTag (const TQString &tag, bool newline = true);
+TQString xmlTag (const TQString &tag, const TQString &s, bool newline = true);
+TQString xmlTag (const TQString &tag, int i, bool newline = true);
+TQString xmlTag (const TQString &tag, float f, bool newline = true);
+TQString xmlCloseTag (const TQString &tag, bool newline = true);
+
+template<class T1, class T2> inline T1 min (T1 a, T2 b) { return a < b ? a : b; }
+template<class T1, class T2> inline T1 max (T1 a, T2 b) { return a < b ? b : a; }
+
+#endif