2007-03-17 Simon Goodall * configure.ac: Bump version numbers. * Release version 0.1.0 2007-03-04 Simon Goodall * libwfut/IO.cpp, libwfut/IO.h: Fix compiler warning. Added an executable flag to DataStruct and to the queueFile function to set the executable permissions of a file on sucessful download. * libwfut/platform.cpp: Fix error in os_set_executable. * libwftut/WFUT.cpp: Update to new queueFile signature. 2007-03-04 Simon Goodall * libwfut/IO.cpp: Bug fix from Erik where where paths such as /home would fail in the createParentDirs function. * libwfut/platform.cpp, libwfut/platform.h: Added functions to check for file existance and setting world executable permissions. * tools/wfut.cpp: Display usage when no arguments are specified. Delete the tempwfut.xml after the real wfut.xml file has been saved. Use os_exists instead of the local file_exists function. 2007-02-20 Simon Goodall * libwfut/IO.cpp: Added some more error checks. * tools/wfut.cpp: Updated some formatting and comments. 2007-02-20 Simon Goodall * tools/wfut.cpp: Added simple usage information. 2007-02-19 Simon Goodall * libwfut/platform.cpp: Check %TMP%, %TEMP% then "." as possible tmp file locations. Delete Win32 temp files on close. 2007-02-16 Simon Goodall * tools/wfut.cpp: Fix compiler warning. 2007-02-16 Simon Goodall * man/man1/wfut.1, configure.ac, Makefile.am, man/Makefile.am, man/man1/Makefile.am: Added initial man page for wfut. 2007-02-16 Simon Goodall * libwfut/Encoder.cpp, libwfut/Encoder.h: Renamed encode/decode to encodeString and decodeString. Added an encodeURL method to encode strings for suitable use as a URL. * libwfut/FileParser.cpp, libwfut/FileWriter.cpp, libwfut/IO.cpp, tools/wfut.cpp: Updated calls to encode/decode. Make sure urls are properly encoded before storing/using them. 2007-02-16 Kai Blin * configure.ac: Fix installing the wfut binary. * libwfut/FileWriter.cpp, libwfut/FileParser.cpp, libwfut/ChannelWriter.cpp, libwfut/ChannelParser.cpp: Fix tinyxml include now that tinyxml is in the main source. 2007-02-16 Simon Goodall * configure.ac: Removed tinyxml Makefile from generated files list. 2007-02-13 Simon Goodall * libwfut/Makefile.am, libwfut/platform.cpp, libwfut/platform.h, libwfut/IO.cpp, libwfut/WFUT.cpp: Created a platform class with platform specific code. Currently provides a wrapper for mkdir and a fake tmpfile implementation for win32 as the default one only works for administrator accounts. * configure.ac: Remove -ansi as this stops some win32 functions being defined. 2007-02-13 Simon Goodall * Makefile.am: Install pkg-config file. 2007-02-13 Simon Goodall * libwfut/Makefile.am, libwfut/tinyxml.cpp, libwfut/tinystr.cpp, libwfut/tinyxmlerror.cpp, libwfut/tinyxmlparser.cpp, libwfut/tinystr.h, libwfut/tinyxml.h: Added tinyxml to the main source tree to avoid linking problems when built as a static library. * Makefile.am: Remove tinyxml subdir. * configure.ac: Removed tinyxml subdir. Fixed LIBWFUT_LIBS declaration. Added libwfut-0.1.pc to build. * libwfut-0.1.pc.in: Added pkg-config file. 2007-02-11 Simon Goodall * libwfut/IO.cpp: Fixed curl handle leak. 2007-02-11 Simon Goodall * configure.ac: Added check for zlib. 2007-02-11 Simon Goodall * libwfut/IO.cpp, libwfut/IO.h: Added new downloadFile function which takes a FILE * instead of a filename. * libwfut/WFUT.cpp: Reworked the getFileList and getChannelList functions to use more cross-platform functions. The files are now downloaded into a tmpfile and then read into memory before parsing. This avoids using *nix only functions. 2007-02-11 Simon Goodall * libwfut/IO.cpp: Add in win32 check for different usage of mkdir on win32 platforms. 2007-02-10 Simon Goodall * libwfut/WFUT.cpp, libwut/WFUT.h: Added a function to queue a single FileObject for updating. * libwfut/IO.cpp: Some cleanups. 2007-02-10 Simon Goodall * libwfut/WFUT.cpp, libwfut/WFUT.h: Commented the header file. Added an enum to describe the returned error codes. 2007-02-10 Simon Goodall * configure.ac, tools/Makefile.am: Added pkgconfig check for curl. Removed hardcoded link to curl. 2007-02-09 Simon Goodall * configure.ac: Fix version number, remove sigc 1.x check. * libwfut/WFUT.cpp: Return error when failing parse local list. * tools/wfut.cpp: Implement the use of a tmpfile to record files as they are updated. 2007-02-09 Simon Goodall * libwfut/IO.cpp: Fix some spelling errors. * libwfut/WFUT.cpp: Change some of the textual output. * tools/wfut.cpp: Added command line args to specify the system/reference location and a prefix/destination location. Added lots of comments. Actually save the correct file list (local list and successful updates) and make a note of errors. 2007-02-09 Simon Goodall * libwfut/ChannelFileList.h, libwfut/ChannelIO.h, libwfut/ChannelParser.cpp, libwfut/ChannelWriter.cpp, libwfut/Encoder.cpp, libwfut/FileIO.h, libwfut/FileParser.cpp, libwfut/FileWriter.cpp, libwfut/IO.h, libwfut/Makefile.am, libwfut/WFUT.cpp, libwfut/crc32.h, libwfut/header.h, libwfut/types.h: Updated for make distcheck and copyright years. 2007-02-09 Simon Goodall * configure.ac, Makefile.am, tools/Makefile.am: Added a tools subdir. * tools/wfut.cpp: Added a basic command line updater program. * libwfut/IO.cpp, libwfut/IO.h: Download files into a tmp file first, then copy to target location only on a successfull download. Fix createParentDirs so that it will recursively create the required dirs. Changed the download stucture to contain a path prefix and the filename relative to the path so the filename can be used as a key when passed in a signal. * libwfut/WFUT.cpp: Updated for new queueFile syntax. 2007-02-09 Simon Goodall * libwfut/WFUT.cpp, libwfut/WFUT.h: Change functions to return error codes and take Channel Lists as by ref arguments instead. Create a DownloadComplete and DownloadFailed signal for client apps to hook into. 2007-02-09 Simon Goodall * libwfut/Makefile.am, libwfut/Encoder.cpp, libwfut/Encoder.h: Added some function to encode and decode strings so they are suitable for storage in XML files. * libwfut/FileParser.cpp, libwfut/FileWriter.cpp: Use the encode and decode functions. 2007-02-07 Simon Goodall * libwfut/Makefile.am: Add crc32 files to build. * libwfut/WFUT.cpp, libwfut/WFUT.h: Added function to calculate the list of files that need updating. * libwfut/crc32.cpp, libwfut/crc32.h: Created header, fixed compiler errors. 2006-07-12 Simon Goodall * tinyxml/*: Add tinyxml to source. Make it part of the WFUT namespace to avoid potential namespace conflicts with other tinyxml versions. * libwfut/ChannelFileList.h: Wrapper class around FileList to also contain channel name. * libwfut/types.h: Create a FileMap type, mapping filename to a FileObject. * configure.ac, Makefile.am: Added extra dirs. * libwfut/FileIO.h, libwfut/FileParser.cpp, libwfut/FileWriter.cpp, libwfut/WFUT.h, libwfut/WFUT.cpp, tests/test3.cpp: Update for ChannelFileList and read/write dir attribute. * libwfut/crc32.cpp: Use zlib uLong type. 2006-02-12 Simon Goodall * libwfut/WFUT.cpp, libwfut/WFUT.h: Rename class to WFUTClient to avoid clashing with namespace. Change the updateChannel method to take a url and path prefix to add to the filenames and source URLS. Create some temporary callbacks to the IO::DownloadComplete and IO::DownloadFailed signals. Download channel and file lists to a location in /tmp (needs to be made platform independant) before parsing. Implement poll method. It is now possible to download a list of channels, a filelist for a given channel and download all the files into a given location. 2006-02-12 Simon Goodall * libwfut/ChannelParser.cpp: Name is an attribute, not an element. * libwfut/FileParser.cpp: CRC32 is a unsigned long. Fix some parsing problems. * libwfut/types.h: Add WFUT namespace. * libwfut/IO.cpp, libwfut/IO.h: Add function to create dirs if they don't exist. Sets dir perms to 0700. DownloadFailed signal now takes a third string containing an error message. Added downloadFile to download a single file. This function blocks until the download completes or fails. 2006-02-12 Simon Goodall * libwfut/types.h, libwfut/IO.h, libwfut/IO.cpp, libwfut/WFUT.cpp: Add checks for CRC32 value calculation. The IO::queueFile now takes the expected CRC32 value of the downloaded file. Set to 0 to ignore the calculated CRC32 value. 2006-02-12 Simon Goodall * libwfut/IO.cpp: Fix poll function so download failures are reported as such. Fix queueFile to set DataStruct as private data for the handle. The low-level file download code is now fairly complete, however some work is required for better error handling. 2005-11-27 Simon Goodall * Initial ChangeLog entry.