Commit Graph

14311 Commits

Author SHA1 Message Date
Thilo Graf
2407b36d54 menue.h/cpp: Remove virtual specifier from getOption methods
- Removed the 'const' specifier from CMenuOptionChooser's getOption method.
- Ensured that getOption methods in derived classes do not hide the base class methods.

This should avoid compiler warnings related to method hiding
and ensure that the correct getOption method is used without ambiguity.
Tested and verified that no new warnings or errors are introduced.
2024-07-07 16:54:58 +02:00
Thilo Graf
a14e84d286 msgbox.h: Fixed method hiding issue by using 'virtual' keyword for setTimeOut
This should avoid potential -Woverloaded-virtual warnings.
2024-07-07 12:02:51 +02:00
Thilo Graf
126fd49b33 mb.h: Fixed method overriding issue in CMenuSelector class
- Fixed the getHeight() method in CMenuSelector using the override keyword
  to ensure it correctly overrides the virtual method from CMenuItem.
- Resolved -Woverloaded-virtual warnings related to hidden overloaded
  virtual methods.
2024-07-06 15:52:28 +02:00
Thilo Graf
3b43b066b5 menue.h: Removed 'virtual' keyword from init method in CMenuItem
This change resolves -Woverloaded-virtual warnings.
Ensured that the init method is resolved at compile time,
as the base class version is not intended to be used in derived classes.
2024-07-05 21:40:55 +02:00
Thilo Graf
fff91ea5f3 timermanager.cpp: Fix format specifiers
- Changed format specifiers from %ld to %" PRId64 " for `time_t` variables
  to ensure compatibility across different platforms.
- Cast `time_t` variables to `int64_t` for proper formatting.
- Updated printf statements and debug macros accordingly.
- Fixes some translations and code formatting.
2024-07-05 17:26:08 +02:00
Thilo Graf
e1ee972d75 eitd/sectionsd.cpp: Fix format specifiers for platform independence
- Changed format specifiers from %ld to %" PRId64 " for time-related
  variables to ensure cross-platform compatibility.
- Updated format specifiers from %lx to %" PRIx64 " for consistency
  with 64-bit integers.
- Added casts to `int64_t` for accurate formatting.

This changes should address format warnings and ensure correct behavior on
systems with 64-bit integers.
2024-07-05 17:26:08 +02:00
Thilo Graf
13860167ca eitd/dmx.cpp: Fix format specifiers for platform independence
- Changed format specifiers from %ld to %" PRId64 " for time-related
  variables to ensure cross-platform compatibility.
- Added casts to `int64_t` for accurate formatting.

This should avoid format warnings and ensure correct behavior
on systems with 64-bit integers.
2024-07-05 17:26:08 +02:00
Thilo Graf
f50deeeeb2 eitd/debug.cpp: Fix format specifiers for platform independence
- Changed format specifier from %ld to %" PRId64 " for variables
  of type `__suseconds64_t` to ensure cross-platform compatibility.
- Added casts to `int64_t` for accurate formatting.
- Included `<cinttypes>` for proper format macros.

This should avoid format warnings and ensure correct behavior
on systems where `__suseconds64_t` and similar types are 64-bit integers.
2024-07-05 17:26:08 +02:00
Thilo Graf
a311605013 neutrino.cpp Fix format specifiers for time_t to ensure platform independence
- Changed format specifiers from %ld to %" PRId64 " for time_t variables to ensure compatibility across different platforms.
- Cast time_t variables to int64_t for proper formatting.
- Updated printf and fprintf statements accordingly.

This should resolve format warnings and ensures correct behavior on
systems where time_t is a 64-bit integer.
2024-07-05 17:26:08 +02:00
Thilo Graf
d533372aa8 CLastChannel: fix narrowing conversion warnings in lastchannel.cpp
- Changed _LastCh.timestamp to int64_t for compatibility with tv.tv_sec.
- Updated store method to cast tv.tv_sec to int64_t, preventing warnings.
- Ensured timestamp calculations use int64_t for consistency.

This shoold resolve compilation warnings and improve platform independence.
2024-07-05 17:26:08 +02:00
Thilo Graf
c1fa8595de system/ping.cpp: Conditionally use register keyword for backward compatibility;
remove for C++17 and later where it is not allowed
2024-07-05 17:26:08 +02:00
Thilo Graf
b0bd45c12b lcd4l.cpp: Fix format warnings
- Corrected the format specifiers in snprintf calls to match the data
  types of the arguments.
- Used PRId64 for int64_t types to ensure compatibility across different
  platforms.
- Added explicit type casting to int64_t for time_t variables
  to resolve mismatched format warnings.
2024-07-05 17:26:08 +02:00
Thilo Graf
88b0aa5dbe moviecut.cpp: Fix format warnings in moviecut.cpp
- Corrected the format specifiers in printf calls to match the data types
  of arguments.
- Used PRIi64 for int64_t types to ensure compatibility across
  different platforms.
- Added explicit type casting to int64_t for time_t variables to resolve
  mismatched format warnings.
2024-07-05 17:26:08 +02:00
Thilo Graf
e7438889ac radiotools.cpp: Don't use register keyword with C++17 standard
Conditionally use register keyword for backward compatibility;
remove for C++17 and later where it is not allowed.
2024-07-05 17:26:08 +02:00
Thilo Graf
caf762464b ffmpegdec.cpp: Fix format specifiers for time_t for platform compatibility
- Use PRId64 in printf to format time_t variables correctly.
- Cast time_t variables to int64_t to avoid [-Wformat=] warnings.
2024-07-05 17:26:08 +02:00
Thilo Graf
553375d8aa CUpnpBrowserGui: Fix format specifiers for time_t for platform compatibility
- Use PRId64 in snprintf to format time_t variables correctly.
- This avoids [-Wformat=] warnings and ensures platform-independent code.
2024-07-05 17:26:08 +02:00
Thilo Graf
1e8c9e897e update.cpp: Fix format specifiers for time_t for platform compatibility
- Cast time_t variables to int64_t to match the expected format specifier.

This should fix addresses the warnings about mismatched format specifiers for time_t.
2024-07-05 17:26:08 +02:00
Thilo Graf
e1807715c3 epgview.cpp: Fix warning about ignored 'nodiscard' attribute in show method
Changed the for-loop in the show method of CEpgData class to properly
check both conditions using the logical AND operator.
This should ensure that the return value of 'operator!=' is not ignored,
which addresses the compiler warning about the 'nodiscard' [-Wunused-result].

- Replaced ',' with '&&' in the loop condition.
2024-07-05 17:26:08 +02:00
Thilo Graf
b911d5f73a controlapi.cpp: Fix format warnings and update types in CControlAPI::EpgCGI
- Changed long to time_t for event times.
- Used PRIu64, PRIdMAX, and %lld for formatting and parsing time_t
  and event IDs.
- Updated sscanf and printf calls to handle time_t and uint64_t correctly.
2024-07-05 17:26:08 +02:00
Thilo Graf
7308e50b77 libdvbsub/Debug.cpp: Fix format warnings for __suseconds64_t in Debug.cpp
- Added <inttypes.h> for correct format specifiers.
- Used PRIdMAX for formatting __suseconds64_t in print function.
- Updated sprintf call to handle __suseconds64_t correctly.
2024-07-05 17:26:08 +02:00
Thilo Graf
ed29984d9f audioplayer.cpp: Fix format warnings for time_t in audioplayer.cpp
- Added <inttypes.h> for correct format specifiers.
- Used PRIdMAX for formatting time_t in paintItem and updateTimes functions.
- Updated snprintf calls to handle time_t correctly.
- Minor formatting adjustments for readability.
2024-07-05 17:26:08 +02:00
Thilo Graf
742fc42d0f followscreenings.cpp: Fix format issues for time_t portability
- Added <inttypes.h> for correct format specifiers.
- Used PRIuMAX or time_t handling to resolve [-Wformat=] warnings.
- Updated sscanf and snprintf calls in exec and show functions.
2024-07-05 17:26:08 +02:00
Thilo Graf
f0671d734b controlapi.cpp: ensure type compatibility for time_t in multiple methods
- Updated channelEPGformated to use time_t instead of long for _stoptime.
- Corrected sscanf format specifier in EpgCGI to handle time_t correctly.
- Changed handling of _stoptime in xmltvepgCGI to use time_t.
- Ensured gmtime and localtime functions receive time_t arguments.

These changes ensure compatibility with _TIME_BITS=64 and maintain
proper type usage for time functions, addressing different
definitions and maintaining robustness across kernel and library versions.
2024-07-04 16:08:36 +02:00
Thilo Graf
11b0b2a2fa controlapi.cpp: try to fix build errors if member 'time' is not found
Ensure backward compatibility for rc_sync and channelEPGformated

- Added conditional compilation in rc_sync to check for input_event_sec macro.
- Used input_event_sec and input_event_usec macros if defined.
- Provided fallback to direct timeval members for older versions.
- Minor formatting adjustment in channelEPGformated for consistency.

This should ensure compatibility with both newer and older
kernel versions, different C library implementations,
and possible standard settings of build systems.
Addressing different definitions of the input_event structure maintains
robustness across kernel, library, and build system configurations.
2024-07-04 16:08:36 +02:00
Thilo Graf
637539bdee rcinput: ensure backward compatibility
supplement to commit:

  rcinput: Fix build issues with _TIME_BITS=64

- Ensured compatibility with various definitions of input_event structure
  as per input.h.
- Added conditional compilation to check for input_event_sec macro.
- Used input_event_sec and input_event_usec macros if defined.
- Provided fallback to direct timeval members for versions without
  the macros.

This ensures compatibility with both newer and older kernel versions,
different C library implementations, and possible standard settings of
build systems. Addressing different definitions of the input_event structure
maintains robustness across kernel, library, and build system configurations.
2024-07-04 16:08:36 +02:00
Thilo Graf
a46554db1e rcinput: Fix build issues with _TIME_BITS=64
- Updated rcinput.cpp to use input_event_sec and input_event_usec macros
  for accessing time members of input_event structure.
- Included necessary headers for time functions and structures.
- Ensured compatibility with various definitions of input_event structure
  as per input.h.

This should resolves compilation errors related to accessing time members
of input_event structure when _TIME_BITS=64 is defined.
2024-07-04 16:08:36 +02:00
Thilo Graf
27a9141275 cc_timer.h: Fix missing include for std::string in cc_timer.h
Added the missing #include <string> directive to cc_timer.h to
resolve compilation error due to incomplete type 'std::string'.
Observed with g++ 13.
2024-06-10 10:50:47 +02:00
Thilo Graf
409e21e782 neutrino: Add method to check for empty files in neutrino Lua API
doc:
 -https://wiki.tuxbox-neutrino.org/wiki/Lua:Neutrino-API:empty:de
 -https://wiki.tuxbox-neutrino.org/wiki/Lua:Neutrino-API:empty:en
2024-06-10 08:57:25 +02:00
TangoCash
df918a356f add cmdline option to load xmltv epg
Origin commit data
------------------
Commit: b2ebab61c8
Author: TangoCash <eric@loxat.de>
Date: 2024-06-05 (Wed, 05 Jun 2024)


------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit

It would often be very helpful to know why a commit is there or what
a particular change is good for, or why it is needed, without having to
ask.
2024-06-09 11:27:05 +02:00
TangoCash
d4d6f634d2 fix reload webchannels
Origin commit data
------------------
Commit: f19cf3a8fb
Author: TangoCash <eric@loxat.de>
Date: 2024-06-02 (Sun, 02 Jun 2024)


------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
# Conflicts:
#	src/gui/webchannels_setup.cpp
2024-06-09 11:11:13 +02:00
max_10
7f20e1b4f0 terrestrial.xml: update
Origin commit data
------------------
Commit: a87fb11c82
Author: max_10 <max_10@gmx.de>
Date: 2024-05-21 (Tue, 21 May 2024)

Origin message was:
------------------
- terrestrial.xml: update

------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
2024-05-22 20:23:32 +02:00
max_10
cefc213899 configure.ac: Corrected formatting
addressing formatting issues from recent commits


Origin commit data
------------------
Commit: 1b79a3cd17
Author: max_10 <max_10@gmx.de>
Date: 2024-05-21 (Tue, 21 May 2024)

Origin message was:
------------------
- configure.ac: formatting code

------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
2024-05-22 20:22:43 +02:00
vanhofen
50f96effdc locale: change shoutcast locales
Origin commit data
------------------
Commit: d62b6bce66
Author: vanhofen <vanhofen@gmx.de>
Date: 2024-05-13 (Mon, 13 May 2024)

Origin message was:
------------------
- locale: change shoutcast locales

------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
# Conflicts:
#	data/locale/english.locale
#	data/locale/slovak.locale
2024-05-14 12:19:07 +02:00
vanhofen
26bd0559a4 configure.ac: minor cosmetics
Origin commit data
------------------
Commit: 62cac67fde
Author: vanhofen <vanhofen@gmx.de>
Date: 2024-05-13 (Mon, 13 May 2024)

Origin message was:
------------------
- configure.ac: minor cosmetics

------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
# Conflicts:
#	configure.ac
2024-05-14 12:00:35 +02:00
vanhofen
41081b61fb configure.ac: in shoutcast speach it's not an api key but a developer id
See 10th section in https://www.shoutcast.com/legal/agreements/api#4-license-restrictions


Origin commit data
------------------
Commit: bc49bc4d23
Author: vanhofen <vanhofen@gmx.de>
Date: 2024-05-13 (Mon, 13 May 2024)

Origin message was:
------------------
- configure.ac: in shoutcast speach it's not an api key but a developer id

See 10th section in https://www.shoutcast.com/legal/agreements/api#4-license-restrictions


------------------
This commit was generated by Migit
2024-05-14 11:09:04 +02:00
Thilo Graf
aad2311ebc configure.ac: More API key management security and improve backward compatibility
- GUI management of API keys is now disabled by default for OpenWeather,
  TMDb, OMDb, Shoutcast, and YouTube to enhance security.
  In particular, the risk of accidental activation of GUI-based management
  of API keys should be reduced.
- Introduced warning log messages to inform users about the risks of
  enabling GUI management, which could potentially expose sensitive API
  keys.
- Updated help strings to emphasize safe use of API keys.
- Added notices for users about the possible use of outdated API key
  options.
- Implemented missing backward compatibility for some API option names
  that have changed. This is necessary because build environments
  generated with 'buildenv' do not necessarily adjust automatically to
  the new options. This should prevent the risk of build failures and
  ensure that older configurations remain compatible.

These changes aim to secure configurations better and mitigate the risk
of unintentional exposure of API keys to end users and should avoid build errors.
2024-05-11 23:38:47 +02:00
vanhofen
3021d62d33 configure.ac: shorten/unify AS_HELP_STRINGs
Origin commit data
------------------
Commit: 340490fd76
Author: vanhofen <vanhofen@gmx.de>
Date: 2024-05-04 (Sat, 04 May 2024)

Origin message was:
------------------
- configure.ac: shorten/unify AS_HELP_STRINGs

------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
2024-05-09 21:34:08 +02:00
vanhofen
d3f10dafe5 rename SHOUTCAST_DEV_KEY => SHOUTCAST_DEV_ID
Origin commit data
------------------
Commit: 6559455ce8
Author: vanhofen <vanhofen@gmx.de>
Date: 2024-05-04 (Sat, 04 May 2024)

Origin message was:
------------------
- rename SHOUTCAST_DEV_KEY => SHOUTCAST_DEV_ID

------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
2024-05-09 21:34:06 +02:00
vanhofen
e58aea8b6d rename YOUTUBE_DEV_KEY => YOUTUBE_API_KEY
Origin commit data
------------------
Commit: 4d01fa773a
Author: vanhofen <vanhofen@gmx.de>
Date: 2024-05-04 (Sat, 04 May 2024)

Origin message was:
------------------
- rename YOUTUBE_DEV_KEY => YOUTUBE_API_KEY

------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
# Conflicts:
#	data/locale/slovak.locale
2024-05-09 21:34:03 +02:00
vanhofen
8254c984e3 rename TMDB_DEV_KEY => TMDB_API_KEY
Origin commit data
------------------
Commit: dbb48ff878
Author: vanhofen <vanhofen@gmx.de>
Date: 2024-05-04 (Sat, 04 May 2024)

Origin message was:
------------------
- rename TMDB_DEV_KEY => TMDB_API_KEY

------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
2024-05-09 21:33:59 +02:00
vanhofen
3c1a5dc99c rename WEATHER_DEV_KEY => WEATHER_API_KEY
Origin commit data
------------------
Commit: 7925297e03
Author: vanhofen <vanhofen@gmx.de>
Date: 2024-05-04 (Sat, 04 May 2024)

Origin message was:
------------------
- rename WEATHER_DEV_KEY => WEATHER_API_KEY

------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
2024-05-09 21:33:57 +02:00
Thilo Graf
40271ee154 .gitignore: Add .vscode directory to prevent tracking of IDE settings 2024-05-09 21:33:46 +02:00
Thilo Graf
7000e4af2d opkg_manager: Refactor version info saving logic in COPKGManager
Update logic in COPKGManager::pullPkgData() to handle various
package names including "neutrino-mp", "neutrino", or falling
back to the generic "PACKAGE" if specific names are not found.
2024-05-09 21:33:09 +02:00
vanhofen
d31da80bd8 weather: formatting code using astyle
Origin commit data
------------------
Commit: f63728bbb5
Author: vanhofen <vanhofen@gmx.de>
Date: 2024-05-03 (Fri, 03 May 2024)

Origin message was:
------------------
- weather: formatting code using astyle

------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
2024-05-04 09:23:42 +02:00
vanhofen
69592226da weather-setup: disable api version chooser until api version 3.0 won't work
Origin commit data
------------------
Commit: fedb8d3b68
Author: vanhofen <vanhofen@gmx.de>
Date: 2024-05-03 (Fri, 03 May 2024)

Origin message was:
------------------
- weather-setup: disable api version chooser until api version 3.0 won't work

------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
2024-05-04 09:23:25 +02:00
vanhofen
c3db7b4847 locale: add LOCALE_MENU_HINT_WEATHER_API_VERSION
Origin commit data
------------------
Commit: 4bb0243934
Author: vanhofen <vanhofen@gmx.de>
Date: 2024-05-03 (Fri, 03 May 2024)

Origin message was:
------------------
- locale: add LOCALE_MENU_HINT_WEATHER_API_VERSION

------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
2024-05-04 09:23:03 +02:00
vanhofen
aa95a4338d rename weather-dev-ver => weather-api-version
Origin commit data
------------------
Commit: d083c61dbb
Author: vanhofen <vanhofen@gmx.de>
Date: 2024-05-03 (Fri, 03 May 2024)

Origin message was:
------------------
- rename weather-dev-ver => weather-api-version

------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
2024-05-04 09:23:00 +02:00
TangoCash
27fadb7864 add option to change openweather api to 3.0, since 2.5 will be deactivated in June 2024
Origin commit data
------------------
Commit: 58cf5bf2f1
Author: TangoCash <eric@loxat.de>
Date: 2024-05-03 (Fri, 03 May 2024)


------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
2024-05-04 09:21:55 +02:00
BPanther
beb7c10977 fix rc (thx mohousch)
Origin commit data
------------------
Commit: 2d63f3f32c
Author: BPanther <bpanther_ts@hotmail.com>
Date: 2024-05-01 (Wed, 01 May 2024)


------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
2024-05-04 09:19:03 +02:00
BPanther
bca0d06e60 yWeb: /control/getchannelinfo changed.
Line 1: servicename
Line 2: epg now
Line 3: epg now duration X/Y
Line 4: epg next


Origin commit data
------------------
Commit: 866fc19dd0
Author: BPanther <bpanther_ts@hotmail.com>
Date: 2024-04-30 (Tue, 30 Apr 2024)



------------------
This commit was generated by Migit
2024-05-04 09:18:19 +02:00