Stefan Seyfried
e1e2052edb
system/helpers: disable GetWidth4FB_HW_ACC()
...
...will be removed later
2017-02-14 20:01:55 +01:00
Stefan Seyfried
85bb568d02
helpers: add run_pty() function
...
This runs an external command inside a pty. Running inside a pty,
external commands using stdio(3) will disable stdout buffering when
running from a terminal, which is often desirable.
2017-01-29 21:27:45 +01:00
Jacek Jendrzej
80f7d0a299
helpers: 201103L have to_string
2016-10-24 13:41:23 +02:00
Stefan Seyfried
ae345d11d3
system/helpers: allow to build with c++11 compilers
2016-10-24 09:55:32 +02:00
M. Liebmann
6a9c08ae90
CFileHelpers: Rework FileBuf handling
...
FileBuf: Reserve memory only when it is needed (copyFile)
copyFile: Reserve for small files, only as much memory as is required
2016-09-06 11:32:41 +02:00
M. Liebmann
689bc50a62
src/system/helpers.h:createDir(): Set correct default for mode
2016-09-05 23:46:01 +02:00
M. Liebmann
83a902d524
CFileHelpers: Add DebugInfo functions for displaying error messages..
...
..in lua script functions
2016-09-05 23:46:01 +02:00
M. Liebmann
5198a13282
helpers.cpp: Add cp() function
2016-09-05 23:46:01 +02:00
M. Liebmann
64b5d36c52
CFileHelpers::copyFile: Rewrite mode handling
2016-09-05 23:46:01 +02:00
M. Liebmann
38470a8a80
helpers.cpp: Add itoa() function
2016-09-05 23:46:01 +02:00
M. Liebmann
0d5edc29e6
Fix commit 71674d0f8a
...
- Use indexes for font parameter in formatDeleteMsg() & cutString()
2016-08-13 16:01:00 +02:00
M. Liebmann
71674d0f8a
src/system/helpers.cpp: Add cutString() function
2016-08-12 19:22:48 +02:00
M. Liebmann
53ef02ad2f
src/system/helpers.cpp: Add function Lang2ISO639_1()
2016-03-04 14:15:50 +01:00
M. Liebmann
2c23f339d3
helpers.cpp: Add function SetWith4FB_HW_ACC()
...
align for hw blit on apollo/kronos hw
2016-01-26 09:51:48 +01:00
[CST] Bas
0180d59111
CFileHelpers::createDir: Fix return value
...
Signed-off-by: M. Liebmann <tuxcode.bbg@gmail.com >
2015-10-18 21:39:54 +02:00
M. Liebmann
885f13f6b0
Apollo/Kronos: Display backup options for 'var' and 'root1'...
...
...only if are mounted.
- Using /proc/mounts to find correct mountpoint for backup
2015-09-22 13:41:14 +02:00
Thilo Graf
1b095e725e
CFileHelpers: add function getDirSize()
2015-03-29 22:40:12 +02:00
Thilo Graf
58b7c0e6bf
CFileHelpers: declare removeDir() as static
...
allows use without object
2015-03-29 22:40:12 +02:00
Thilo Graf
c9dd6fac39
system/helpers.cpp: add return value for mySleep()
2015-03-29 22:40:09 +02:00
Thilo Graf
1dcfc52a33
system/helpers: remove mkdirhier(); gui/themes: use createDir()
...
This is a partial revert of
picked commit 431657e35d
.
There were two methods, createDir() and mkdirhier() for the same purpose.
We don't need it twice.
btw: existing function createDir() fixed
2015-03-29 22:39:48 +02:00
Stefan Seyfried
f607fe5fbe
helpers: add "backtick" function for shell-like command
2015-02-09 13:47:32 +01:00
martii
431657e35d
system/helpers: add mkdirhier(); gui/themes: use mkdirhier()
...
Conflicts:
src/system/helpers.h
2014-09-12 15:59:21 +04:00
martii
742760dbd3
gui/dboxinfo: localize (partially based on patch from Benny -- thanks!)
...
Conflicts:
src/gui/dboxinfo.cpp
2014-09-11 18:12:06 +04:00
[CST] Focus
420af7a4dc
neutrino: sync keybind and usermenu code with neutrino-mp, code (C) martii
2014-09-05 17:49:11 +04:00
[CST] Focus
cf91f2eccb
merge neutrino-mp menu/buttons/icons changes, (C) martii
2014-07-17 17:02:25 +04:00
svenhoefer
672257906e
- helpers.cpp: add shortened strftime() function
...
taken from martiis neutrino-mp
2014-05-29 22:26:30 +02:00
[CST] Focus
bef1b79bed
system/helpers.cpp: add split_config_string helper
2014-04-23 17:44:16 +04:00
M. Liebmann
0028ad0d9b
src/system/helpers.cpp: Add htmlEntityDecode() for decode html string
2014-02-26 10:11:40 +01:00
M. Liebmann
21f7c930ae
src/system/helpers.cpp: Add str_replace() function
2014-02-26 10:11:40 +01:00
martii
7826ab0fca
driver/rcinput: implement long key press support (but no rcsim/yWeb support at this time)
...
driver/rcinput: drop unused gettimeofday code
2014-02-25 00:09:14 +01:00
[CST] Focus
097e05c083
system/helpers.cpp: add code to get hdd standby/active status and flush hdd buffers
2014-02-05 14:02:46 +04:00
Stefan Seyfried
e37e425674
helpers: add a function to find an executable in $PATH
2014-01-26 21:43:08 +01:00
Jacek Jendrzej
52741fb1e4
move toEpoch to helpers.cpp, use strptime
2014-01-04 20:48:13 +01:00
Jacek Jendrzej
ececd844fa
use mySleep in CComponentsFrmClock::initClockThread(
...
Signed-off-by: Jacek Jendrzej <crashdvb@googlemail.com >
2013-12-15 17:40:32 +01:00
svenhoefer
57267a28aa
- helpers.cpp: port safe_mkdir() from martii
2013-11-22 12:35:20 +01:00
martii
4a0fdba710
implement yt search history
2013-11-11 17:22:55 +01:00
Michael Liebmann
b645b644b0
Fix compiler warnings (-Wconversion)
2013-10-10 01:58:37 +02:00
Michael Liebmann
36f3579df6
src/system/helpers.cpp: Replace wrong data types in get_fs_usage()
...
- Change from 'long' to 'uint64_t'
- src/Makefile.am: Add -D_FILE_OFFSET_BITS=64 to AM_CPPFLAGS
2013-10-10 01:58:37 +02:00
Jacek Jendrzej
6f07cbe3dd
CUpdateSettings:: allow choose tmp(ramfs,TMPFS_MAGIC) as update dir
2013-10-08 10:10:10 +02:00
Michael Liebmann
5d77f01b5d
helpers.cpp: Add getFileName(), getFileExt(), getNowTimeStr()
2013-08-08 14:09:47 +02:00
Michael Liebmann
767ff03d98
src/system/helpers.cpp: Add getBaseName() and getPathName()
2013-07-03 07:30:09 +02:00
Jacek Jendrzej
947a277a49
src/system/helpers.cpp:-add file_size function
...
Signed-off-by: Jacek Jendrzej <crashdvb@googlemail.com >
2013-04-24 21:35:25 +02:00
Stefan Seyfried
988a8ebec2
helpers: improve my_system function
...
Instead of hardcoding the maximum number of arguments to the
my_system helper, pass a variable argument list.
The function is deliberately source-incompatible with the old
implementation (as opposed to a variant with a sentinel NULL
argument, which would be compatible) to find all users and to
make sure that new future users of this function are not
overlooked during merges with other branches.
Signed-off-by: Jacek Jendrzej <crashdvb@googlemail.com >
2013-03-05 11:58:49 +01:00
micha-bbg
6e1a2dc9cd
* system/helpers.cpp: Adding value 'bsize' as a possible return value
2013-01-01 15:05:21 +01:00
micha-bbg
cddf86725d
* Software Update with apply the settings (Part10)
...
- Blacklist added to exclude files
- Files are marked by a prefixed '-' in the settingsupdate.conf
2012-11-11 08:11:49 +01:00
micha-bbg
690786c37c
* Add file/directory functions to src/system/helpers.cpp
...
- Required for 'update with settings'
2012-10-25 01:10:35 +01:00
svenhoefer
7c01980e94
- system/helpers: rework get_fs_usage()
...
also comment some unuses variables in src/infoviever_bb.{h,cpp}
2012-09-27 12:22:33 +02:00
[CST] Focus
5dc2656b8e
system/helpers.cpp: add function to get total/free mem without cached/buffers
2012-09-21 17:41:28 +04:00
svenhoefer
87f7a224f7
- infoviewerbb: determination of hdd-percentage in a seperate thread
2012-09-19 21:23:50 +02:00
satbaby
87342fd0d9
my_system fix
2012-09-15 11:20:49 +02:00