Andrey Prygunkov
cdf6068db5
#172 : using vector instead of raw dynamic array in queue manager
2016-02-23 22:03:30 +01:00
Andrey Prygunkov
b910d123eb
#143 : store EditItem directly in container
...
instead of pointer to object.
2016-02-17 22:03:33 +01:00
Andrey Prygunkov
c96d2259ce
#168 : unique smart pointers for local variables
2016-02-17 22:03:33 +01:00
Andrey Prygunkov
d803330e3f
#167 : more stack objects
2016-02-17 22:03:20 +01:00
Andrey Prygunkov
1162c89e77
#167 : prefer stack objects
2016-02-17 22:02:41 +01:00
Andrey Prygunkov
74f2ab8963
#162 : removed support for multiple paths
...
in options “DestDir” and “CategoryX.DestDir”.
2016-02-02 21:38:45 +01:00
Andrey Prygunkov
c1ac38d10b
#162 : multiple destination paths for categories
...
in option “CategoryX.DestDir”.
2016-01-30 18:32:29 +01:00
Andrey Prygunkov
6e763f3573
#126 : small optimization
2016-01-23 18:41:58 +01:00
Andrey Prygunkov
ff69fbbeb9
#136 : avoid double slashes in paths
...
Extra long path names are not normalized automatically by Windows and
therefore must contain paths in canonical form.
2016-01-23 14:23:53 +01:00
Andrey Prygunkov
080bd22d77
#141 : ignore hidden files and directories in NzbDir
...
The files and directories whose names start with dot are now ignored by
the scanner of incoming nzb directory.
2016-01-17 12:58:43 +01:00
Andrey Prygunkov
8f84132218
#156 : new class "CharBuffer" for temporary buffers
...
Replaced everywhere plain “char”-buffers with new class. Avoid using
“malloc/free”.
2016-01-17 00:06:27 +01:00
Andrey Prygunkov
17024eb0e5
#126 : replaced "char*" with "CString" at few more places
2016-01-16 16:31:45 +01:00
Andrey Prygunkov
da0a0f3105
refactor: removed unneeded code
2016-01-14 19:47:12 +01:00
Andrey Prygunkov
98cd5a8dbc
refactor: removed unneeded checks
2016-01-14 19:46:49 +01:00
Andrey Prygunkov
0ee644d252
#154 : use lambdas when deleting elements from containers
2016-01-14 19:42:49 +01:00
Andrey Prygunkov
ac1bd3d07c
#154 : use lambdas when sorting containers
2016-01-13 20:09:36 +01:00
Andrey Prygunkov
ef4a72d383
#152 : eliminated dereferences in for-range loops using “begin()” and “end()” template functions in “nzbget.h”
2016-01-13 19:44:40 +01:00
Andrey Prygunkov
b32b4c0691
#152 : for-range loops with iterators
2016-01-12 00:30:17 +01:00
Andrey Prygunkov
0732cb4b8b
closes #147 : par-check doesn't ignore files from option "ExtCleanupDisk"
...
Only files listed in option ParIgnoreExt are ignored.
2016-01-09 21:44:01 +01:00
Andrey Prygunkov
32400a810f
#143 : store download objects directly in containers
...
…where possible.
2016-01-08 22:29:44 +01:00
Andrey Prygunkov
09dde2b82f
#143 : store Scanner objects directly in container
2016-01-07 00:07:06 +01:00
Andrey Prygunkov
f6587d3299
#143 : store Script objects and templates directly in container
2016-01-05 23:47:59 +01:00
Andrey Prygunkov
6885082299
#143 : store volume stat objects directly in container
2016-01-05 18:57:15 +01:00
Andrey Prygunkov
476dae8c1e
#143 : store feed objects directly in containers
2016-01-04 22:43:56 +01:00
Andrey Prygunkov
81f2c7825d
#143 : store Message directly in container
...
…instead of pointer to object.
2016-01-03 20:49:30 +01:00
Andrey Prygunkov
be852d0a9b
#143 : using <CString> instead of <char*> in containers
2016-01-03 19:58:11 +01:00
Andrey Prygunkov
69c995359b
#126 : time formatting functions
2016-01-01 15:56:53 +01:00
Andrey Prygunkov
3e89638b39
refactor: replaced "time(NULL)" with an utility function
2016-01-01 14:57:48 +01:00
Andrey Prygunkov
94b7ef8a37
#138 : fixed compilation error on Windows
2015-12-30 16:41:28 +01:00
Andrey Prygunkov
04c3e0d263
#138 : use "nullptr" instead of "NULL"
2015-12-30 16:35:07 +01:00
Andrey Prygunkov
d8a2d79240
#136 : handling of Unicode paths with MSXML
...
- when parsing nzb-files (option NzbDir);
- when parsing rss feeds (option TempDir).
2015-12-28 18:34:47 +01:00
Andrey Prygunkov
e11dfb62d0
#136 : Unicode-Windows-API for file operations
...
- internally all paths are handled in UTF8;
- all paths are stored in config-file in UTF8;
- when calling file access Windows API functions the paths are
converted to wide-chars and Unicode-API is used;
- extra long paths are prefixed with “\\?\” (extended path format).
2015-12-28 10:56:11 +01:00
Andrey Prygunkov
c68ba306fe
#131 : using enum for file mode in function DiskFile::Open
2015-12-26 17:19:12 +01:00
Andrey Prygunkov
6840ef4439
#131 : routing a few more remaining function calls through module "FileSystem"
...
“rename”, “remove” and “rmdir”.
2015-12-25 22:55:46 +01:00
Andrey Prygunkov
dce6f0c9a3
#131 : new class DiskFile to wrap "FILE*"-functions
2015-12-25 18:11:50 +01:00
Andrey Prygunkov
eae6fd5d91
#131 : wrapped function "remove" into module FileSystem
...
under name “DeleteFile”.
2015-12-24 18:34:15 +01:00
Andrey Prygunkov
321c7efa41
#130 : moved parts from module "Util" into new module "FileSystem"
2015-12-22 22:01:03 +01:00
Andrey Prygunkov
19ce3bf69b
#130 : improved class DirBrowser
...
It doesn’t return filenames ‘.’ and ‘..’ (for current and parent
directories) anymore, eliminating the need to check and ignore these
names on each usage of the class.
2015-12-21 20:54:21 +01:00
Andrey Prygunkov
99d8cee0db
#126 : class BString supports initialization via assignment
...
which makes the code clearer.
2015-12-20 23:46:22 +01:00
Andrey Prygunkov
d87d6ac2ac
#126 : using CString for ref-parameters and return values
...
1) for parameters use references to CString instead of pointers to
buffers;
2) when returning strings use CString instead of pointer to char buffer
which caller needs to deallocate;
3) use BString even more.
2015-12-20 16:27:01 +01:00
Andrey Prygunkov
9e2d8544da
#126 : full use of class BString
...
1) replaced characters arrays with class BString through the whole
program. The string formatting code has become much cleaner.
2) class Util returns error message via CString instead of character
buffers.
3) few more places to use CString.
2015-12-19 18:43:52 +01:00
Andrey Prygunkov
4ba432dee3
#126 : fixed: corrupted files when article cache was active
2015-12-18 23:47:18 +01:00
Andrey Prygunkov
6d33d83d20
#126 : using GCC attributes to detect formatting errors
...
also eliminated warnings found with activated detection.
2015-12-13 18:28:48 +01:00
Andrey Prygunkov
ecc7fc9695
#126 : extended string classes
...
- Append/AppendFmt-methods;
- CString stores length internally for faster appends;
- removed class StringBuilder, replaced usages with CString;
- binding to existing C-style null-terminated strings with methods
Bind/Unbind.
2015-12-13 16:02:57 +01:00
Andrey Prygunkov
558fce9b47
#126 : replaced C-style strings with class "CString"
...
: replaced all data members.
2015-12-12 16:36:25 +01:00
Andrey Prygunkov
4e4816c3c8
#116 : use size specific integer types
2015-11-21 00:02:22 +01:00
Andrey Prygunkov
ec17d119a1
#115 : put all external headers together
...
into “nzbget.h”
2015-11-19 23:51:02 +01:00
Andrey Prygunkov
70ccfd9802
normalized whitespace formatting
...
1) removed trailing spaces and tabs;
2) replaced occasional leading spaces with tabs.
2015-11-05 23:45:19 +01:00
Andrey Prygunkov
a9a6f1e2d4
#103 : manual corrections of variable names
2015-11-03 23:33:21 +01:00
Andrey Prygunkov
bf49f16d7c
#103 : renamed global variables
2015-11-01 21:42:35 +01:00