Commit Graph
84 Commits
Author SHA1 Message Date
Juan Carlos CornejoandKlaas Freitag 486bb0f5ef Missed this file in last commit. 2012-02-15 08:55:15 +01:00
Juan Carlos CornejoandKlaas Freitag 5541ec44a9 Recover from error if trying to upload a file that is already locked. 2012-02-15 08:55:15 +01:00
Juan Carlos CornejoandKlaas Freitag 01629d5d4b Implemented locking and unlocking of a file automatically when a put statement is requested. 2012-02-15 08:55:15 +01:00
Juan Carlos CornejoandKlaas Freitag efee4de678 Updated instructions for building. Make sure that if you have build the
program prior to this, to re-run qmake and do a Clean All. This is
because of a large change in the way KWallet is handled.
2012-02-15 08:55:15 +01:00
Juan Carlos CornejoandKlaas Freitag 23cb3ed30b Added a README file with compilation instructions. One thing I did not
make clear when I made a change to the password manager is that by
default no password manager is enabled. You must enable Kwallet by
adding the argument "DEFINES += OC_USE_KWALLET" to the qmake build step.
2012-02-15 08:55:15 +01:00
Juan Carlos CornejoandKlaas Freitag f9e19d85c1 Implemented locking/unlocking in QWebDAV. 2012-02-15 08:55:15 +01:00
Juan Carlos CornejoandKlaas Freitag c4cdb9cc26 Fix compilation error 2012-02-15 08:55:15 +01:00
Juan Carlos CornejoandKlaas Freitag 0b75747aed Ooops, added an extra } to last commit. Now fixed. 2012-02-15 08:55:15 +01:00
Juan Carlos CornejoandKlaas Freitag e7c6882aea Silence QWebDav complaining about delete requests. 2012-02-15 08:55:15 +01:00
Juan Carlos CornejoandKlaas Freitag 39b1ce7189 Default to saving password to database if no valid wallet is available. 2012-02-15 08:55:15 +01:00
Juan Carlos CornejoandKlaas Freitag 9f2925a41f Check to see if KDE or Gnome is running (currently Gnome keyring still
not implemented).
2012-02-15 08:55:15 +01:00
Juan Carlos CornejoandKlaas Freitag a4a8fa10d5 Reorganized the password manager in order to implement other support for
Gnome Keyring, OS X key chain and something for windows.
2012-02-15 08:55:15 +01:00
Juan Carlos CornejoandKlaas Freitag 99492b1f4e Fixed kwallet header location. Thanks Pavel! 2012-02-15 08:55:15 +01:00
Juan Carlos CornejoandKlaas Freitag 57f10a9cee Updated to fix bug where it would not work well with owncloud being a
subdirectory on a remote host.
2012-02-15 08:55:15 +01:00
Juan Carlos CornejoandKlaas Freitag 454ca25f11 Consolidated all menu configuration into one screen. All are now in the
configurations window.
2012-02-15 08:55:15 +01:00
Juan Carlos CornejoandKlaas Freitag fcee6235a3 Renamed the desktop file to match that of the executable 2012-02-15 08:55:15 +01:00
Juan Carlos CornejoandKlaas Freitag 20a24f680e Added a What's New message box that also warns users of the beta nature
of the software.
2012-02-15 08:55:15 +01:00
Juan Carlos CornejoandKlaas Freitag 1a63ad67f0 Fixed a bug where at startup, the client attempted to re-download
already deleted files.
2012-02-15 08:55:14 +01:00
Juan Carlos CornejoandKlaas Freitag 8be1e86eec Updated internal filter lists. 2012-02-15 08:55:14 +01:00
Juan Carlos CornejoandKlaas Freitag b5075b26ae Minor debugging output silenced 2012-02-15 08:55:14 +01:00
Juan Carlos CornejoandKlaas Freitag 0fd2df2e40 Implemented the global filter list. 2012-02-15 08:55:14 +01:00
Juan Carlos CornejoandKlaas Freitag bb5c50e1d4 Ooops, in the last commit I accidentally disabled the recently added
feature :D Now is enabled again.
2012-02-15 08:55:14 +01:00
Juan Carlos CornejoandKlaas Freitag c653a203de Implemented a global included list. This list are common temporary and
lock files that should be ignored. The user can enable and disable them
if they so wish.

Additionally, set the ground for a later inclusion of a global list,
which the user enters and applies to all accounts.
2012-02-15 08:55:14 +01:00
Juan Carlos CornejoandKlaas Freitag 9505b119b1 Added the ability to quit mid-sync (even if paused). 2012-02-15 08:55:14 +01:00
Juan Carlos CornejoandKlaas Freitag 309d3a0adc Re-enable show/hide on start setting that accidentally got bypassed when
I moved loadApplicationSettings() further up in the queue.
2012-02-15 08:55:14 +01:00
Juan Carlos CornejoandKlaas Freitag 867b247af5 Implemented a soft pause. Meaning, it will pause as soon as it finishes
transfering the current transfer. Further tests need to be made to see
if SabreDAV can successfully resume a transfer paused midway.
2012-02-15 08:55:14 +01:00
Juan Carlos CornejoandKlaas Freitag ff9a6826ac Changed he database, and updated all references to the database where
appropriate. Paving the ground for implementing a pause/resume feature.
2012-02-15 08:55:14 +01:00
Juan Carlos CornejoandKlaas Freitag 76ca736e43 Changing paths due to the new directory structure 2012-02-15 08:55:14 +01:00
Juan Carlos CornejoandKlaas Freitag de07b02950 Moved everything under the owncloud_sync_qt directory in preparation for
merge onto the OwnCloud clients repository
2012-02-15 08:55:14 +01:00
Juan Carlos CornejoandKlaas Freitag c34d585a6c Changed the default debugging option from only printing to the terminal
to allowing a configuration that will display it in the SyncWindow also.

Now, instead of calling qDebug(), one would call syncDebug() with the same
syntax as qDebug().
2012-02-15 08:55:14 +01:00
Juan Carlos CornejoandKlaas Freitag 7bcbeb6578 Updated account editing/creation page to be more clear about the format of
the hostname.
2012-02-15 08:55:14 +01:00
Juan Carlos CornejoandKlaas Freitag d14150b910 A quick fix to try to get 32 bit libraries loaded when compiling under 32 bits, rather than the 64 libraries 2012-02-15 08:55:14 +01:00
Juan Carlos CornejoandKlaas Freitag b43d452a99 Uploads to a temp file name, then renames it after the upload. 2012-02-15 08:55:14 +01:00
Juan Carlos CornejoandKlaas Freitag 125a0e2cfc Removing (hopefully) the last of the memory bugs. This time in file
upload and download.
2012-02-15 08:55:14 +01:00
Juan Carlos CornejoandKlaas Freitag 1db4fc9fd4 Forgot this minor change in the last commit. This is needed otherwise the memory is not really freed :D 2012-02-15 08:55:14 +01:00
Juan Carlos CornejoandKlaas Freitag 44fdffce41 Fixed another memory leak. This time when uploading files. 2012-02-15 08:55:14 +01:00
Juan Carlos CornejoandKlaas Freitag e655ce7547 Bump patch version to 0.5.2 2012-02-15 08:55:14 +01:00
Juan Carlos CornejoandKlaas Freitag 5b441314f1 Some code clean up removing old commented code. 2012-02-15 08:55:14 +01:00
Juan Carlos CornejoandKlaas Freitag b171f33e59 Fix a bug where if the local directory specified does not exist, create
it.
2012-02-15 08:55:14 +01:00
Juan Carlos CornejoandKlaas Freitag cfa98f9f88 Realized I was leaking memory every time a WebDAV request was made to
list the directory. Ooops.  This should be fixed now!
2012-02-15 08:55:14 +01:00
Juan Carlos CornejoandKlaas Freitag 535aa119f7 Minor bug fix dealing with paths 2012-02-15 08:55:13 +01:00
Juan Carlos CornejoandKlaas Freitag f481c02876 Fixed a small bug that prevented creating the properly named local
directory.
2012-02-15 08:55:13 +01:00
Juan Carlos CornejoandKlaas Freitag a0b3249419 Fixed bug where local files and directories where not properly deleted.
Also added proper parent to the QMessageBox
2012-02-15 08:55:13 +01:00
Juan Carlos CornejoandKlaas Freitag da60594a5e Bump patch version to 0.5.1 (despite the fact that last changes were
big, they *were* mostly bugfixes).
2012-02-15 08:55:13 +01:00
Juan Carlos CornejoandKlaas Freitag 18d32bda91 Major bugfixes.
1) Fixed a bug that prevented directories on the server to be properly
deleted.

2) Fixed a bug that would cause files and directories to be deleted
often, and then re-uploaded. This was due to a missing comparison.

3) Serialized the directory creation, making sure that it was successful
before trying to create the next one, which may have been a
subdirectory.

4) Fixed the issue with the GUI freezing when it was waiting for a sync
to happen if the user tried to quit.

5) Fixed an issue that if a directory existed with the same Remote or
Local directory name, weird stuff would happen! This was due to an
incorrect comparison.

6) Fixed the issue where the system tray icon would not change when a
conflict occurred. (Apparently I had accidentally removed this when I
made the change to multiple accounts).

7) Added two new buttons to clear the log and clear & save the log.
Useful when debugging :) But useful in general, I suppose.

Possibly some other fixes, but now I forget them exactly. Probably just
some lost pointers and the like that I found :)
2012-02-15 08:55:13 +01:00
Juan Carlos CornejoandKlaas Freitag a006cc170e Bump version to 0.5.0 2012-02-15 08:55:13 +01:00
Juan Carlos CornejoandKlaas Freitag 929b6afa1a Implemented KWallet password storage for Linux. On Linux they are no
longer saved to the database file.
2012-02-15 08:55:13 +01:00
Juan Carlos CornejoandKlaas Freitag ed4fc09592 Updating the files that belong to this project in QtCreator. 2012-02-15 08:55:13 +01:00
Juan Carlos CornejoandKlaas Freitag 2c3373d7d9 Contacted the author of the sqlite3_util.cpp function and found out
it was placed in the public domain. Made the changes to the header
and cpp file to reflect that.

Also renamed LICENSE to COPYING-GPL and made not of the overall
project license in COPYING
2012-02-15 08:55:13 +01:00
Juan Carlos CornejoandKlaas Freitag ccd96a5edd Bump patch version to 0.4.3 2012-02-15 08:55:13 +01:00
Juan Carlos CornejoandKlaas Freitag 11836e4788 Reimplemented the file progress that apparently I accidentally disabled
when I made the change to multiple accounts.  Should be working again.
2012-02-15 08:55:13 +01:00
Juan Carlos CornejoandKlaas Freitag 6e2986a16d Implemented a proper timeout for the network requests. If it times out,
it will continue where it left off on the next sync cycle.

Also removed a bug that prevented the program from closing if the
requests timed out.
2012-02-15 08:55:13 +01:00
Juan Carlos CornejoandKlaas Freitag 2b746ba6ec Clean up of some debug codes and output.
Made sure that all messages sent to the GUI (not the command line) use
the tr() function for proper translation later (if needed).
2012-02-15 08:55:13 +01:00
Juan Carlos CornejoandKlaas Freitag ec9cadd474 Bump patch version to 0.4.2 2012-02-15 08:55:13 +01:00
Juan Carlos CornejoandKlaas Freitag 1581ea3135 Fixed typo on database name. Should be filters, not filter. 2012-02-15 08:55:13 +01:00
Juan Carlos CornejoandKlaas Freitag 2ee038b207 Fixed a bug that allowed one to enter filters before the account was created. Now the filters list is disabled until one saves the account.
Also, fixed a small bug in which new accounts would display the last used filters.
2012-02-15 08:55:13 +01:00
Juan Carlos CornejoandKlaas Freitag 6b43bbb989 Changed the desktop file to point to the new correct installation
location of /usr/bin
2012-02-15 08:55:13 +01:00
Juan Carlos CornejoandKlaas Freitag 61708eab0a Added two missing images to the repository. 2012-02-15 08:55:13 +01:00
Juan Carlos CornejoandKlaas Freitag 42004a3377 Fixed the installation path for owncloud_sync to be in /usr/bin by
default.

Bumped version number to 0.4.1
2012-02-15 08:55:13 +01:00
Juan Carlos CornejoandKlaas Freitag 0e004ec570 Fixed a bug in the conflict resolution screen. I accidentally selected
the wrong table when I made the change to allow multiple accounts.

Minor GUI enhancements on the conflict resolution screen.
2012-02-15 08:55:13 +01:00
Juan Carlos CornejoandKlaas Freitag a9ba915972 Added a menu option to select the default behavior of when the user
closes the window.

By the fault, the window is hidden when the window is closed. But the
user may change it to their likings.
2012-02-15 08:55:13 +01:00
Juan Carlos CornejoandKlaas Freitag 9b9b7b17ef Added ability to remove an account. User must enable the button from the
menu bar in order to remove the account.  Note, files will not be
deleted but all synchronization information will be lost.
2012-02-15 08:55:13 +01:00
Juan Carlos CornejoandKlaas Freitag 84e60b20cd Made the hide on start configurable. Now a user checks the checkbox in
the menu to decide if they want to hide the window at start or not.
Note, the window will show if no accounts are configured, regardless of
the user setting.
2012-02-15 08:55:13 +01:00
Juan Carlos CornejoandKlaas Freitag 7601e2f52c Added a context menu to the tray icon and the application. Now clicking
the close button will hide the application window. One must go to the
menu on either the tray icon or the application menu to quit.
2012-02-15 08:55:13 +01:00
Juan Carlos CornejoandKlaas Freitag c1568f52ed Added notice indicating why program will exit if another instance is
running.

Also, minor changes to what OwnCloudSync class sends to the log.
2012-02-15 08:55:12 +01:00
Juan Carlos CornejoandKlaas Freitag dce757f94f Minor typo fix on the license. Removed reference to Foobar, the default
template name for the program.
2012-02-15 08:55:12 +01:00
Juan Carlos CornejoandKlaas Freitag 71c3c93500 Added the GPL copyright notice ontop of *most* libraries. I still have
to figure out what the sqlite3_util file is.
2012-02-15 08:55:12 +01:00
Juan Carlos CornejoandKlaas Freitag 3d4d8081b3 Minor UI improvements. Status bar now has more information, window title
now reflects the program name and there is at tool tip on the system
tray icon.
2012-02-15 08:55:12 +01:00
Juan Carlos CornejoandKlaas Freitag af0f00d115 Added versioning information (it was about time). Currently set to
version 0.3 and this is displayed in the status bar.
2012-02-15 08:55:12 +01:00
Juan Carlos CornejoandKlaas Freitag dd1b49aed1 Added a confirmation when the user closes the window if he/she wants to
truly quit.
2012-02-15 08:55:12 +01:00
Juan Carlos CornejoandKlaas Freitag fabf7532ef Implemented file filters. The only wildcard accepted is *. 2012-02-15 08:55:12 +01:00
Juan Carlos CornejoandKlaas Freitag 856d257adc Fixed the debugging option that saved logs after every 10th sync.
Changed that a more manageable 1000 syncs.
2012-02-15 08:55:12 +01:00
Juan Carlos CornejoandKlaas Freitag a4da328368 A drastic change required to allow for multiple accounts, and choosing
server folder to sync. It turned out to be harder than anticipated.

But now multiple accounts can be created (no way to remove them yet,
that wil come next).

On account configuration page, one can now select the remote file server
to sync. Leave blank to sync root folder.
2012-02-15 08:55:12 +01:00
Juan Carlos CornejoandKlaas Freitag c11ea04c96 Fixed bug that prevented files from being deleted properly accross all
clients. It had to do with not setting the found variable properly.

Additionally, more output is added to the log regarding file deltion
both locally and server wise.
2012-02-15 08:55:12 +01:00
Juan Carlos CornejoandKlaas Freitag 602e6914a4 Now the username, password and hostname are checked before a
synchronization is attempted.
2012-02-15 08:55:12 +01:00
Juan Carlos CornejoandKlaas Freitag fb53edfd41 Logs are now saved to file and cleared from the screen every 1000th sync 2012-02-15 08:55:12 +01:00
Juan Carlos CornejoandKlaas Freitag 3f0ccf1748 Implemented a user required conflict resolution when files where edited
locally AND in the server.  The files will not be updated until the user
selects which of the two files is the newest one. Note that at this
time, other clients may be updating the server. So the client should
take caution to select the proper new file.

The server file is downloaded to disk and prepended with _ocs_conflict.
so that the user can open both files and compare accordingly.

A message appears notifying the user of the conflict, and the clouds
turn red. They will not be reverted back to blue until all conflicts are
cleared.
2012-02-15 08:55:12 +01:00
Juan Carlos CornejoandKlaas Freitag 6265ed0ab9 Autohide window if SystemTray is available and we are fully configured. 2012-02-15 08:55:12 +01:00
Juan Carlos CornejoandKlaas Freitag add4cf24e3 Implemented a file dialog for choosing the Sync Directory.
Disable and enable save button as appropriate.
2012-02-15 08:55:12 +01:00
Juan Carlos CornejoandKlaas Freitag 41c9e90852 Implemented a trick to allow only one instance of the application to
run. This should hopefully prevent corruption of the sync directory.
2012-02-15 08:55:12 +01:00
Juan Carlos CornejoandKlaas Freitag 07685110b9 Implemented file deletion. Now files are deleted on both sides when one
side deletes theirs. This does not yet implement file moving. If files
are moved, it will just reupload or download them because it will treat
them as new files.

A minor bug fix also. Now the watcher is removed for files that are
being downloaded or deleted. Then added again if appropriate. This
prevented the watcher from annoucing a change and attempting to upload
the changes to the server.
2012-02-15 08:55:12 +01:00
Juan Carlos CornejoandKlaas Freitag 5e3a475a87 Found a function online at
http://www.qtcentre.org/threads/36131-Attempting-to-use-Sqlite-backup-api-from-driver-handle-fails
on a post by chemmalion that allows one to save a memory sqlite3 database to file.

This is really neat because now the strain on the hardrive is gone!

This version loads the database on startup and saves it every 3 minutes to disk.
The database is saved upon closing the program as well.
2012-02-15 08:55:12 +01:00
Juan Carlos CornejoandKlaas Freitag da7795437b Major fixes in this version. Apparently there were a lot of bugs in
comparing files between the server.  Now it is more reasonable.

Also, less use of the hardisk because now I implemented a
QFileSystemWatch instance. This is much better and lets me know of file
changes. Though, there is still a strain on the HD due to the constant
SQLite access that I use.

I can't figure out a nice way to find out what files were added (removed
will be fore later) without listing the entire directory and comparing
against the DB.
2012-02-15 08:55:12 +01:00
Juan Carlos CornejoandKlaas Freitag cb1740ee4a Initial commit.
This version does synchronization, but does not tolerate any file deletions.
It will chew your files up!!

May contain bugs!!
2012-02-15 08:55:12 +01:00