raDIYo 0.4
raDIYo.h
1/***************************************************************************
2
3 source::worx raDIYo
4 Copyright © 2020-2022 c.holzheuer
5 c.holzheuer@sourceworx.org
6
7 This program is free software; you can redistribute it and/or modify
8 it under the terms of the GNU General Public License as published by
9 the Free Software Foundation; either version 2 of the License, or
10 (at your option) any later version.
11
12***************************************************************************/
13
14
15#ifndef RADIYO_H
16#define RADIYO_H
17
18#include <QVector>
19#include <QColor>
20#include <QString>
21
22
118{
119 enum SWSourceType
120 {
121 SWNONE = 0,
122 SWLOCALFILE,
123 SWUSBFILE,
124 SWWEBSTREAM,
125 SWBLUETOOTH
126 };
127
128 SWSourceType sourceType{ SWNONE };
129 QString title;
130 QString urlText;
131 int volume = -1;
132
134 {
135
136 }
137
138 SWPlayableItem( SWSourceType atype, const QString& atitle, const QString& atext )
139 : sourceType( atype), title( atitle ), urlText( atext )
140 {
141
142 }
143
144};
145
146namespace raDIYo
147{
148
149 // misc
150 //#define raDIYo::Version "Version 0.0.01 / 19.12.2020"
151 [[maybe_unused]] static const char* const Version = "raDIYo 0.4.18 / 01.05.2022 © 2020-22 c.holzheuer@sourceworx.org";
152
153 [[maybe_unused]] static const char* const OrgName = "source::worx";
154 [[maybe_unused]] static const char* const DomainName = "sourceworx.org";
155 [[maybe_unused]] static const char* const AppName = "raDIYo";
156
157 [[maybe_unused]] static const char* const KeySongsDir = "SongsDir";
158 [[maybe_unused]] static const char* const SongsDir = "/my.raDIYo/";
159 [[maybe_unused]] static const char* const KeySenderList = "SenderList";
160 [[maybe_unused]] static const char* const ResSenderList = ":/data/radiyo.senderlist.csv";
161
162 // optik, haptik :)
163 [[maybe_unused]] static const char* const FontDir = ":/fonts/";
164
165 [[maybe_unused]] static const char* const NoMedia = "kein Medium verfügbar";
166
167
168 [[maybe_unused]] static const int IdleTimeOut = 5000; // 5 sec
169
170/*
171 * const char* SWALARMHOURS = "Alarm.Hours";
172 const char* SWALARMMINUTES = "Alarm.Minutes";
173 const char* SWALARMWEEKDAYS = "Alarm.Weekdays";
174
175 */
176
177
178
179}
180
181
182QString readResource( const QString& fileName );
183void swMessageOutput( QtMsgType type, const QMessageLogContext &context, const QString &msg);
184
226typedef QVector<QColor> SWColorVec;
227typedef QVector<double> SWDoubleVec;
228
229#endif // RADIYO_H
230